aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.config/hypr/user/binds.conf
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /linux/home/.config/hypr/user/binds.conf
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to 'linux/home/.config/hypr/user/binds.conf')
-rw-r--r--linux/home/.config/hypr/user/binds.conf167
1 files changed, 167 insertions, 0 deletions
diff --git a/linux/home/.config/hypr/user/binds.conf b/linux/home/.config/hypr/user/binds.conf
new file mode 100644
index 0000000..a337a0e
--- /dev/null
+++ b/linux/home/.config/hypr/user/binds.conf
@@ -0,0 +1,167 @@
+# Window Manager keybindings
+
+# Scratchpad
+bind = SUPER, semicolon, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh
+bind = SUPER, X, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh
+#bind = SUPER, semicolon, exec, ~/.scripts/scratchpad
+#bind = SUPER, X, exec, ~/.scripts/scratchpad
+
+# HUD
+bind = SUPER, E, exec, ~/.scripts/heads-up-display
+
+# Package manager Terminal
+bind = SUPER, Q, exec, ~/.scripts/pac
+
+# Mouse binds
+bindm = SUPER, mouse:272, movewindow
+bindm = SUPER, mouse:273, resizewindow
+bind = SUPER, mouse_down, workspace, e-1
+bind = SUPER, mouse_up, workspace, e+1
+
+# Screenshot binds
+bind = , Print, exec,~/.scripts/screenshot_full
+bind = ALT, Print, exec,~/.scripts/screenshot
+
+# Application binds
+$term=wezterm
+bind = SUPER, T, exec, $term -e tmux new-session -A -s term
+bind = SUPER, Enter, exec, $term -e tmux new-session -A -s term
+bind = SUPER, W, exec, $browser
+#bind = SUPER, G, exec, $notepad
+
+# ags
+bind = SUPER_SHIFT, R, exec, ags -q; ags; notify-send "ags reloaded"
+bind=SUPER, Space, exec, ags -t launcher
+bind=,XF86PowerOff, exec, ags -t powermenu
+bind=SUPER, escape, exec, ags -t powermenu
+bind=SUPER, Tab, exec, ags -t overview
+#bind = SUPER, Space, exec, ags -r "toggleLauncher()"
+
+# Clipboard
+bind = SUPER, V, exec, pkill wofi || cliphist list | wofi --dmenu -p clippick -l top_right -x -15 -y 10 -n | cliphist decode | wl-copy
+
+
+# Hyprland keys
+bind=SUPER_SHIFT,Escape,exec,hyprctl reload; notify-send "Config Reloaded"
+bind = SUPER, D, killactive,
+#bind = SUPER_SHIFT, S, movetoworkspace,special
+#bind = SUPER, S, togglespecialworkspace,
+
+
+# Other dispatchers
+bind = ALT, Tab, cyclenext
+bind = SUPER, C, cyclenext
+bind = SUPER, F, fullscreen
+#bind = SUPER, T, exec, hyprctl dispatch centerwindow none
+bind = SUPER, M, fullscreen, 1
+bind = SUPER_SHIFT, M, fakefullscreen
+
+
+bind = SUPER, P, pseudo,
+bind = SUPER, S, togglefloating,
+bind = SUPER_SHIFT, G, togglegroup,
+bind = SUPER, tab, changegroupactive,
+bind = SUPER_SHIFT, I, togglesplit, # dwindle
+
+
+# Move window with SUPER + Shift + arrow keys
+# [↑]
+# [←] [↓] [→]
+bind = SUPER_SHIFT, left, movewindow, l
+bind = SUPER_SHIFT, right, movewindow, r
+bind = SUPER_SHIFT, up, movewindow, u
+bind = SUPER_SHIFT, down, movewindow, d
+bind = SUPER_SHIFT, H, movewindow, l
+bind = SUPER_SHIFT, L, movewindow, r
+bind = SUPER_SHIFT, K, movewindow, u
+bind = SUPER_SHIFT, J, movewindow, d
+
+# Move window focus with SUPER + arrow keys
+# [↑]
+# [←] [↓] [→]
+bind = SUPER, left, movefocus, l
+bind = SUPER, right, movefocus, r
+bind = SUPER, up, movefocus, u
+bind = SUPER, down, movefocus, d
+bind = SUPER, H, movefocus, l
+bind = SUPER, L, movefocus, r
+bind = SUPER, K, movefocus, u
+bind = SUPER, J, movefocus, d
+
+# Move To a workspaces
+bind = SUPER, 1, workspace, 1
+bind = SUPER, 2, workspace, 2
+bind = SUPER, 3, workspace, 3
+bind = SUPER, 4, workspace, 4
+bind = SUPER, 5, workspace, 5
+bind = SUPER, 6, workspace, 6
+bind = SUPER, 7, workspace, 7
+bind = SUPER, 8, workspace, 8
+bind = SUPER, 9, workspace, 9
+
+# Move windows between workspaces
+bind = SUPER_SHIFT, 1, movetoworkspace, 1
+bind = SUPER_SHIFT, 2, movetoworkspace, 2
+bind = SUPER_SHIFT, 3, movetoworkspace, 3
+bind = SUPER_SHIFT, 4, movetoworkspace, 4
+bind = SUPER_SHIFT, 5, movetoworkspace, 5
+bind = SUPER_SHIFT, 6, movetoworkspace, 6
+bind = SUPER_SHIFT, 7, movetoworkspace, 7
+bind = SUPER_SHIFT, 8, movetoworkspace, 8
+bind = SUPER_SHIFT, 9, movetoworkspace, 9
+
+
+# Use this to get thw XF86 bind (FN + Fx combination) for your keyboard
+# xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'
+
+# Volume Control
+#binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%
+#binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1%
+bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
+bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
+bind = ALT, down, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
+bind = ALT, up, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
+
+# Media Control
+bind = , XF86AudioMedia, exec, playerctl play-pause
+bind = , XF86AudioPlay, exec, playerctl play-pause
+bind = , XF86AudioStop, exec, playerctl stop
+bind = , XF86AudioPrev, exec, playerctl previous
+bind = , XF86AudioNext, exec, playerctl next
+
+# Use arrow keys as multimedia keys
+bind = ALT_SHIFT, left, exec, playerctl previous
+bind = ALT_SHIFT, up, exec, playerctl play-pause
+bind = ALT_SHIFT, right, exec, playerctl next
+
+# Brightness Control
+binde = , XF86MonBrightnessUp, exec, light -A 1
+binde = , XF86MonBrightnessDown, exec, light -U 1
+
+bind = ALT, left, exec, brightnessctl set 10%- # Screen brightness down FN+F7
+bind = ALT, right, exec, brightnessctl set 10%+ # Screen brightness up FN+F8
+
+# Screensaver key
+bind = , XF86ScreenSaver, exec,~/.scripts/lock
+
+bind = SUPER_SHIFT, Y, exec, spotify
+bind = SUPER_SHIFT, D, exec, discord
+bind = SUPER , W, exec, firefox
+bind = SUPER_SHIFT, B, exec, rofi-rbw
+
+# Others
+#bind = , XF86Mail, exec,$gmail
+#bind = , XF86HomePage, exec, $explorer ~/
+#bind = , XF86Calculator, exec, qalculate-gtk
+#bind = , XF86Search, exec, wofi
+
+$mainMod = SUPER
+bind = $mainMod, tilde, exec, ~/.scripts/translate.sh
+bind = $mainMod CONTROL, k, exec, ~/.scripts/killmenu
+
+
+
+# trigger when the switch is turning on
+# bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor ", 1920x1080@60, auto, 1"
+# trigger when the switch is turning off
+bindl = , switch:off:Lid Switch, exec, playerctl --all-players stop; ~/.scripts/lock; systemctl suspend