Lithium sway conf
This commit is contained in:
parent
6830fb26e1
commit
7f86f592b3
2 changed files with 39 additions and 32 deletions
|
@ -37,9 +37,10 @@
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
displayManager = {
|
displayManager = {
|
||||||
defaultSession = "sway-uwsm";
|
sddm = {
|
||||||
autoLogin.enable = true;
|
enable = true;
|
||||||
autoLogin.user = "vili";
|
wayland.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
|
@ -50,6 +51,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
# rtkit is optional but recommended
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|
|
@ -104,19 +104,25 @@ let
|
||||||
for_window [window_type="notification"] floating enable
|
for_window [window_type="notification"] floating enable
|
||||||
|
|
||||||
# Screen brightness controls
|
# Screen brightness controls
|
||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||||
|
|
||||||
|
# Volume
|
||||||
|
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%'
|
||||||
|
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -1%'
|
||||||
|
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||||
|
|
||||||
bindsym $mod+Return exec "alacritty --config-file ${alacritty-conf}"
|
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"
|
bindsym $mod+d exec --no-startup-id "rofi -theme 'Arc-Dark' -show combi -combi-modes 'run' -modes combi"
|
||||||
|
|
||||||
set $mode_system "(l)ock, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
|
set $mode_system "(l)ock, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"
|
||||||
bindsym $mod+Shift+p mode $mode_system
|
bindsym $mod+Shift+p mode $mode_system
|
||||||
mode $mode_system {
|
mode $mode_system {
|
||||||
bindsym l exec --no-startup-id swaylock, mode "default"
|
bindsym l exec --no-startup-id swaylock, mode "default"
|
||||||
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
|
bindsym s exec --no-startup-id "swaylock; systemctl suspend", mode "default"
|
||||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||||
bindsym r exec --no-startup-id systemctl reboot, 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 Shift+s exec --no-startup-id systemctl poweroff, mode "default"
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
|
@ -276,14 +282,14 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.etc."sway/config".source = sway-conf;
|
environment.etc."sway/config".source = sway-conf;
|
||||||
programs = {
|
programs.sway = {
|
||||||
sway = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
brightnessctl
|
brightnessctl
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
pulseaudio
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
swaylock
|
swaylock
|
||||||
swayrbar
|
swayrbar
|
||||||
|
@ -294,13 +300,4 @@ in
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
uwsm = {
|
|
||||||
enable = true;
|
|
||||||
waylandCompositors.sway = {
|
|
||||||
prettyName = "Sway";
|
|
||||||
comment = "Sway compositor managed by UWSM";
|
|
||||||
binPath = "/run/current-system/sw/bin/sway";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue