diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-24 15:58:05 +0800 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-24 15:58:05 +0800 |
commit | 261279f2f4b682762dbf61380aab654ffba31bef (patch) | |
tree | d17e9f7c68b65d451a88bb64aae129b1a4500bec | |
parent | 4a7e9cafd914ed7070102c6af5fc3837f28b82d8 (diff) | |
download | nixos-configuration-261279f2f4b682762dbf61380aab654ffba31bef.tar.gz nixos-configuration-261279f2f4b682762dbf61380aab654ffba31bef.tar.bz2 nixos-configuration-261279f2f4b682762dbf61380aab654ffba31bef.zip |
feat: add keybind definitions in Hyprland config
XF86Audio controls: using wpctl
special workspaces: add move to workspace
-rw-r--r-- | home-manager/stvnliu/hypr/hyprland.nix | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/home-manager/stvnliu/hypr/hyprland.nix b/home-manager/stvnliu/hypr/hyprland.nix index e17c81d..7b4e5fd 100644 --- a/home-manager/stvnliu/hypr/hyprland.nix +++ b/home-manager/stvnliu/hypr/hyprland.nix @@ -24,8 +24,7 @@ exec-once = 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 = { disable_hyprland_logo = true; @@ -33,20 +32,29 @@ font_family = "monospace"; }; "$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 = [ ", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area" + + # special workspace keybinds "$mod, S, togglespecialworkspace" - "$mod, F10, exec, ${pkgs.pamixer} --increase 10" - "$mod, F9, exec, ${pkgs.pamixer} --decrease 10" + "$mod SHIFT, S, movetoworkspace, special" + + # keysyms for util functions + # Example volume button that allows press and hold, volume limited to 150% "$mod, Q, killactive" "$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" # firefox quickstart "$mod, F, exec, ${pkgs.firefox}/bin/firefox" "$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm" # 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 |