feat: add keybind definitions in Hyprland config

XF86Audio controls: using wpctl
special workspaces: add move to workspace
This commit is contained in:
Zhongheng Liu 2024-08-24 15:58:05 +08:00
commit 261279f2f4
No known key found for this signature in database

View file

@ -24,8 +24,7 @@
exec-once = exec-once =
config.myAutostartCommands config.myAutostartCommands
++ [ ++ [
'' "[workspace special silent] ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}"
[workspace special silent] ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}''
]; ];
misc = { misc = {
disable_hyprland_logo = true; disable_hyprland_logo = true;
@ -33,20 +32,29 @@
font_family = "monospace"; font_family = "monospace";
}; };
"$mod" = "SUPER"; "$mod" = "SUPER";
binde = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+"
# Example volume button that will activate even while an input inhibitor is active
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
];
bind = bind =
[ [
", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area" ", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area"
# special workspace keybinds
"$mod, S, togglespecialworkspace" "$mod, S, togglespecialworkspace"
"$mod, F10, exec, ${pkgs.pamixer} --increase 10" "$mod SHIFT, S, movetoworkspace, special"
"$mod, F9, exec, ${pkgs.pamixer} --decrease 10"
# keysyms for util functions
# Example volume button that allows press and hold, volume limited to 150%
"$mod, Q, killactive" "$mod, Q, killactive"
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" "$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
# firefox quickstart # firefox quickstart
"$mod, F, exec, ${pkgs.firefox}/bin/firefox" "$mod, F, exec, ${pkgs.firefox}/bin/firefox"
"$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm" "$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm"
# foot terminal # foot terminal
'' "$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}"
$mod, Return, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}''
] ]
++ ( ++ (
# workspaces # workspaces