From bb6458650aa39b0465cf24fae1894bfc74a59446 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 18 Aug 2025 18:52:22 -0400 Subject: add hyprland binds --- hyprland/binds.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 hyprland/binds.nix (limited to 'hyprland/binds.nix') diff --git a/hyprland/binds.nix b/hyprland/binds.nix new file mode 100644 index 0000000..fc089b6 --- /dev/null +++ b/hyprland/binds.nix @@ -0,0 +1,48 @@ +{ config, pkgs, ... }: + +{ + +imports = [ + ./binds.nix +]; + wayland.windowManager.hyprland = { + "$mod" = "SUPER"; + + bind = [ + "$mod, f, exec, ghostty" + "$mod, d, exec, brave" + "$mod, space, exec, pkill rofi || rofi -show drun" + ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'" + ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'" + ", XF86AudioNext, exec, playerctl next && notify-send 'Next Song'" + ", XF86AudioPrev, exec, playerctl previous && notify-send 'Previous Song'" + ", XF86AudioPlay, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'" + ", XF86AudioStop, exec, playerctl stop && notify-send 'Music Stopped'" + ", F10, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'" + ", F11, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'" + ", F9, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'" + ", F6, exec, playerctl next && notify-send 'Next Song'" + ", F5, exec, playerctl previous && notify-send 'Previous Song'" + ", F7, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'" + ", F8, exec, playerctl stop && notify-send 'Music Stopped'" + ] + ++ ( + # workspaces + builtins.concatLists ( + builtins.genList ( + i: + let + ws = i + 1; + in + [ + "$mod, code:1${toString i}, workspace, ${toString ws}" + "$mod SHIFT, code:1${toString i}, movetoWorkspace, ${toString ws}" + ] + ) 9 + ) + ); + }; + }; + +} -- cgit v1.3.1