From eb440bde5c7f41ee1732061f64ec94bb50a1ebaf Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Thu, 15 Aug 2024 13:49:30 -0300 Subject: [PATCH] chore: Update hyprland configuration with keybindings for dolphin, firefox, and codium --- home/desktops/hyprland/default.nix | 37 +++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/home/desktops/hyprland/default.nix b/home/desktops/hyprland/default.nix index fa29e55..530f58a 100644 --- a/home/desktops/hyprland/default.nix +++ b/home/desktops/hyprland/default.nix @@ -12,9 +12,11 @@ systemd.enable = true; settings = { - "$mod" = "SUPER"; + "$mainMod" = "SUPER"; "$terminal" = "kitty"; - "$launcher" = "rofi"; + "$fileManager" = "dolphin"; + "$browser" = "firefox"; + "$editor" = "codium"; exec-once = [ # run once on startup @@ -22,10 +24,28 @@ ]; bind = [ - ",$mod, exec, $launcher" - "$mod, q, quit" - "$mod, r, restart" - "$mod, Enter, exec, $terminal" + # Launch Bindings + "$mainMod, T, exec, $terminal" + "$mainMod, B, exec, $browser" + "$mainMod, C, exec, $editor" + "$mainMod, Q, killactive," + "$mainMod, M, exit," + "$mainMod, F, exec, $fileManager" + "$mainMod, W, togglefloating," + + # Volume and Media Controls + ", XF86AudioRaiseVolume, exec, pamixer -i 5" + ", XF86AudioLowerVolume, exec, pamixer -d 5" + ", XF86AudioMicMute, exec, pamixer --default-source -m" + ", XF86AudioMute, exec, pamixer -t" + ", XF86AudioPlay, exec, playerctl play-pause" + ", XF86AudioPause, exec, playerctl play-pause" + ", XF86AudioNext, exec, playerctl next" + ", XF86AudioPrev, exec, playerctl previous" + + # Brightness + ", XF86MonBrightnessUp, exec, brightnessctl s +5%" + ", XF86MonBrightnessDown, exec, brightnessctl s 5%-" ]; bindm = [ @@ -34,6 +54,11 @@ "$mod, mouse:273, resizewindow" "$mod ALT, mouse:272, resizewindow" ]; + + gestures = { + "workspace_swipe" = true; + "workspace_swipe_fingers" = 3; + }; }; }; programs.ags = {