xf86 keys
This commit is contained in:
+7
-62
@@ -72,7 +72,7 @@
|
||||
"$term" = "${pkgs.kitty}/bin/kitty";
|
||||
"$menu" = "${pkgs.wofi}/bin/wofi --show run";
|
||||
"$lock" = "${pkgs.hyprlock}/bin/hyprlock -n";
|
||||
/*
|
||||
|
||||
bind = [
|
||||
"$mod SHIFT, RETURN, exec, $term"
|
||||
"$mod SHIFT, C, killactive"
|
||||
@@ -96,68 +96,13 @@
|
||||
"$mod SHIFT, 3, movetoworkspace, 3"
|
||||
"$mod SHIFT, 4, movetoworkspace, 4"
|
||||
|
||||
{
|
||||
key = "XF86MonBrightnessUp";
|
||||
mods = "";
|
||||
command = "light -A 10";
|
||||
}
|
||||
{
|
||||
key = "XF86MonBrightnessDown";
|
||||
mods = "";
|
||||
command = "light -U 10";
|
||||
}
|
||||
", XF86MonBrightnessUp, exec, light -A 10"
|
||||
", XF86MonBrightnessDown, exec, light -U 10"
|
||||
|
||||
{
|
||||
key = "XF86AudioRaiseVolume";
|
||||
mods = "";
|
||||
command = "wpctl set-volume @DEFAULT_SINK@ 5%+";
|
||||
}
|
||||
{
|
||||
key = "XF86AudioLowerVolume";
|
||||
mods = "";
|
||||
command = "wpctl set-volume @DEFAULT_SINK@ 5%-";
|
||||
}
|
||||
{
|
||||
key = "XF86AudioMute";
|
||||
mods = "";
|
||||
command = "wpctl set-mute @DEFAULT_SINK@ toggle";
|
||||
}
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%-"
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle"
|
||||
];
|
||||
*/
|
||||
bind = [
|
||||
# standard $mod keybindings
|
||||
{ key = "RETURN"; mods = "$mod SHIFT"; command = "$term"; }
|
||||
{ key = "C"; mods = "$mod SHIFT"; command = "killactive"; }
|
||||
{ key = "Q"; mods = "$mod SHIFT"; command = "exit"; }
|
||||
{ key = "P"; mods = "$mod"; command = "$menu"; }
|
||||
|
||||
{ key = "L"; mods = "$mod"; command = "$lock"; }
|
||||
|
||||
{ key = "H"; mods = "$mod"; command = "movefocus,l"; }
|
||||
{ key = "J"; mods = "$mod"; command = "movefocus,r"; }
|
||||
{ key = "K"; mods = "$mod"; command = "movefocus,u"; }
|
||||
{ key = "L"; mods = "$mod"; command = "movefocus,d"; }
|
||||
|
||||
# workspace switching
|
||||
{ key = "1"; mods = "$mod"; command = "workspace,1"; }
|
||||
{ key = "2"; mods = "$mod"; command = "workspace,2"; }
|
||||
{ key = "3"; mods = "$mod"; command = "workspace,3"; }
|
||||
{ key = "4"; mods = "$mod"; command = "workspace,4"; }
|
||||
|
||||
{ key = "1"; mods = "$mod SHIFT"; command = "movetoworkspace,1"; }
|
||||
{ key = "2"; mods = "$mod SHIFT"; command = "movetoworkspace,2"; }
|
||||
{ key = "3"; mods = "$mod SHIFT"; command = "movetoworkspace,3"; }
|
||||
{ key = "4"; mods = "$mod SHIFT"; command = "movetoworkspace,4"; }
|
||||
|
||||
# brightness keys
|
||||
{ key = "XF86MonBrightnessUp"; mods = ""; command = "light -A 10"; }
|
||||
{ key = "XF86MonBrightnessDown"; mods = ""; command = "light -U 10"; }
|
||||
|
||||
# volume keys (PipeWire)
|
||||
{ key = "XF86AudioRaiseVolume"; mods = ""; command = "wpctl set-volume @DEFAULT_SINK@ 5%+"; }
|
||||
{ key = "XF86AudioLowerVolume"; mods = ""; command = "wpctl set-volume @DEFAULT_SINK@ 5%-"; }
|
||||
{ key = "XF86AudioMute"; mods = ""; command = "wpctl set-mute @DEFAULT_SINK@ toggle"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user