Clean up sway keybindings
This commit is contained in:
parent
624b1c0ac2
commit
25563873ad
2 changed files with 15 additions and 16 deletions
|
@ -3,8 +3,6 @@
|
||||||
environment.systemPackages = with pkgs;
|
environment.systemPackages = with pkgs;
|
||||||
[ # Utilities
|
[ # Utilities
|
||||||
freetype
|
freetype
|
||||||
light
|
|
||||||
xorg.xbacklight
|
|
||||||
feh
|
feh
|
||||||
redshift
|
redshift
|
||||||
numlockx # TODO: Does this work?
|
numlockx # TODO: Does this work?
|
||||||
|
|
|
@ -79,7 +79,11 @@
|
||||||
"13" = [{ class = "^Spotify$"; }];
|
"13" = [{ class = "^Spotify$"; }];
|
||||||
};
|
};
|
||||||
|
|
||||||
keybindings = let mod = wayland.windowManager.sway.config.modifier;
|
keybindings = let
|
||||||
|
mod = wayland.windowManager.sway.config.modifier;
|
||||||
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
|
pamixer = "${pkgs.pamixer}/bin/pamixer";
|
||||||
|
light = "${pkgs.light}/bin/light";
|
||||||
in lib.mkOptionDefault {
|
in lib.mkOptionDefault {
|
||||||
"${mod}+p" = "exec passbemenu";
|
"${mod}+p" = "exec passbemenu";
|
||||||
"${mod}+x" = "move workspace to output right";
|
"${mod}+x" = "move workspace to output right";
|
||||||
|
@ -103,23 +107,20 @@
|
||||||
"Ctrl+mod1+Shift+L" = "exec ${pkgs.systemd}/bin/systemctl suspend";
|
"Ctrl+mod1+Shift+L" = "exec ${pkgs.systemd}/bin/systemctl suspend";
|
||||||
|
|
||||||
# pulse audio volume control
|
# pulse audio volume control
|
||||||
XF86AudioLowerVolume =
|
XF86AudioLowerVolume = "exec ${pamixer} --decrease 3";
|
||||||
"exec pactl set-sink-volume '@DEFAULT_SINK@' '-3%'";
|
XF86AudioRaiseVolume = "exec ${pamixer} --increase 3";
|
||||||
XF86AudioRaiseVolume =
|
XF86AudioMute = "exec ${pamixer} --toggle-mute";
|
||||||
"exec pactl set-sink-volume '@DEFAULT_SINK@' '+3%'";
|
XF86AudioMicMute = "exec ${pamixer} --default-source --toggle-mute";
|
||||||
XF86AudioMute = "exec pactl set-sink-mute '@DEFAULT_SINK@' 'toggle'";
|
|
||||||
XF86AudioMicMute =
|
|
||||||
"exec pactl set-source-mute '@DEFAULT_SOURCE@' 'toggle'";
|
|
||||||
|
|
||||||
# Spotify control
|
# Spotify control
|
||||||
XF86AudioPause = "exec playerctl play-pause";
|
XF86AudioPause = "exec ${playerctl} play-pause";
|
||||||
XF86AudioPlay = "exec playerctl play-pause";
|
XF86AudioPlay = "exec ${playerctl} play-pause";
|
||||||
XF86AudioNext = "exec playerctl next";
|
XF86AudioNext = "exec ${playerctl} next";
|
||||||
XF86AudioPrev = "exec playerctl previous";
|
XF86AudioPrev = "exec ${playerctl} previous";
|
||||||
|
|
||||||
# screen brightness
|
# screen brightness
|
||||||
XF86MonBrightnessUp = "exec light -A 10";
|
XF86MonBrightnessUp = "exec ${light} -A 10";
|
||||||
XF86MonBrightnessDown = "exec light -U 5";
|
XF86MonBrightnessDown = "exec ${light} -U 5";
|
||||||
|
|
||||||
# screenshot
|
# screenshot
|
||||||
Print = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
|
Print = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
|
||||||
|
|
Loading…
Add table
Reference in a new issue