Lithium sway conf

This commit is contained in:
Vili Sinervä 2025-02-16 22:58:44 +02:00
parent 2c96b6f98d
commit 98abace782
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 12 additions and 16 deletions

View file

@ -36,13 +36,19 @@
];
services = {
displayManager = {
sddm = {
enable = true;
wayland.enable = true;
greetd = {
enable = true;
settings = {
initial_session = {
command = "${pkgs.sway}/bin/sway";
user = "vili";
};
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
printing.enable = true;
avahi = {
enable = true;
@ -51,15 +57,6 @@
};
};
programs.uwsm = {
enable = true;
waylandCompositors.sway = {
prettyName = "Sway";
comment = "Sway compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/sway";
};
};
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {

View file

@ -114,14 +114,13 @@ let
bindsym $mod+Return exec "alacritty --config-file ${alacritty-conf}"
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
set $mode_system "(l)ock, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
set $mode_system "(l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
bindsym $mod+Shift+p mode $mode_system
mode $mode_system {
bindsym l exec --no-startup-id swaylock, mode "default"
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym e exec --no-startup-id loginctl terminate-session self, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"