diff --git a/modules/hm/keybindings.conf b/modules/hm/keybindings.conf index a6cd34b..2370f42 100644 --- a/modules/hm/keybindings.conf +++ b/modules/hm/keybindings.conf @@ -1,7 +1,24 @@ -#*  Variables  -$mainMod = ALT_L +## █▄▀ █▀▀ █▄█ █▄▄ █ █▄░█ █▀▄ █ █▄░█ █▀▀ █▀ +## █░█ ██▄ ░█░ █▄█ █ █░▀█ █▄▀ █ █░▀█ █▄█ ▄█ -# Window Management +# see https://wiki.hyprland.org/configuring/keywords/ for more +# example binds: https://wiki.hyprland.org/configuring/binds/ for more + +# Grouping of binds for easier management +# $d=[Group Name|Subgroup Name1|Subgroup Name2|...] +# This is only for organization purposes (not a real Hyprland variable) + +#*  Variables  +$mainMod = ALT_L # Use Left Alt as main modifier + +# Optional: Assign your preferred apps (uncomment if needed) +# $TERMINAL = kitty +# $EDITOR = code +# $EXPLORER = dolphin +# $BROWSER = firefox +# $scrPath = ~/.config/hypr/scripts # adjust if your scripts are elsewhere + +$wm=Window Management $d=[$wm] bindd = $mainMod, Q, $d close focused window, exec, $scrPath/dontkillsteam.sh bindd = Alt, F4, $d close focused window, exec, $scrPath/dontkillsteam.sh @@ -12,13 +29,12 @@ bindd = Shift, F11, $d toggle fullscreen, fullscreen bindd = $mainMod, L, $d lock screen, exec, lockscreen.sh bindd = $mainMod Shift, F, $d toggle pin on focused window, exec, $scrPath/windowpin.sh bindd = Control Alt, Delete, $d logout menu, exec, $scrPath/logoutlaunch.sh +bindd = Alt_R, Control_R, $d toggle waybar and reload config, exec, hyde-shell waybar --hide -# Group Navigation $d=[$wm|Group Navigation] bindd = $mainMod Shift, H, $d change active group backwards, changegroupactive, b bindd = $mainMod Shift, L, $d change active group forwards, changegroupactive, f -# Focus Navigation $d=[$wm|Change focus] bindd = $mainMod, Left, $d focus left, movefocus, l bindd = $mainMod, Right, $d focus right, movefocus, r @@ -26,62 +42,129 @@ bindd = $mainMod, Up, $d focus up, movefocus, u bindd = $mainMod, Down, $d focus down, movefocus, d bindd = ALT, Tab, $d Cycle focus, cyclenext -# Resize $d=[$wm|Resize Active Window] bindde = $mainMod Shift, Right, $d resize window right, resizeactive, 30 0 bindde = $mainMod Shift, Left, $d resize window left, resizeactive, -30 0 bindde = $mainMod Shift, Up, $d resize window up, resizeactive, 0 -30 bindde = $mainMod Shift, Down, $d resize window down, resizeactive, 0 30 -$l=Launcher -$d=[$l|Apps] -bindd = $mainMod, T, $d terminal emulator , exec, $TERMINAL -#bindd = $mainMod Alt, T, $d dropdown terminal , exec, hyde-shell pypr toggle console -bindd = $mainMod, E, $d file explorer , exec, $EXPLORER -bindd = $mainMod, C, $d text editor , exec, $EDITOR -bindd = $mainMod, B, $d web browser , exec, $BROWSER -bindd = Control Shift, Escape, $d system monitor , exec, $scrPath/sysmonlaunch.sh - -$d=[$l|Rofi menus] -$rofi-launch=$scrPath/rofilaunch.sh -bindd = $mainMod, A, $d application finder , exec, pkill -x rofi || $rofi-launch d -bindd = $mainMod, TAB, $d window switcher , exec, pkill -x rofi || $rofi-launch w -bindd = $mainMod Shift, E, $d file finder , exec, pkill -x rofi || $rofi-launch f -bindd = $mainMod, slash, $d keybindings hint, exec, pkill -x rofi || $scrPath/keybinds_hint.sh c # launch keybinds hint -bindd = $mainMod, comma, $d emoji picker , exec, pkill -x rofi || $scrPath/emoji-picker.sh # launch emoji picker -bindd = $mainMod, period, $d glyph picker , exec, pkill -x rofi || $scrPath/glyph-picker.sh # launch glyph picker -bindd = $mainMod, V, $d clipboard , exec, pkill -x rofi || $scrPath/cliphist.sh -c # launch clipboard, -bindd = $mainMod Shift, V, $d clipboard manager , exec, pkill -x rofi || $scrPath/cliphist.sh # launch clipboard Manager -bindd = $mainMod Shift, A, $d select rofi launcher , exec, pkill -x rofi || $scrPath/rofiselect.sh # launch select menu - -# Move window across workspace — ⚠️ IntelliJ 충돌 회피 $d=[$wm|Move active window across workspace] $moveactivewindow=grep -q "true" <<< $(hyprctl activewindow -j | jq -r .floating) && hyprctl dispatch moveactive -bindde = $mainMod Ctrl Shift, Left, Move active window left, exec, $moveactivewindow -30 0 || hyprctl dispatch movewindow l -bindde = $mainMod Ctrl Shift, Right, Move active window right, exec, $moveactivewindow 30 0 || hyprctl dispatch movewindow r +bindde = $mainMod Ctrl Shift, Left, Move active window to the left, exec, $moveactivewindow -30 0 || hyprctl dispatch movewindow l +bindde = $mainMod Ctrl Shift, Right, Move active window to the right, exec, $moveactivewindow 30 0 || hyprctl dispatch movewindow r bindde = $mainMod Ctrl Shift, Up, Move active window up, exec, $moveactivewindow 0 -30 || hyprctl dispatch movewindow u bindde = $mainMod Ctrl Shift, Down, Move active window down, exec, $moveactivewindow 0 30 || hyprctl dispatch movewindow d -# Workspace Navigation — ⚠️ IntelliJ Ctrl+Alt+←/→ 충돌 회피 +$d=[$wm|Move & Resize with mouse] +binddm = $mainMod, mouse:272, $d hold to move window, movewindow +binddm = $mainMod, mouse:273, $d hold to resize window, resizewindow +binddm = $mainMod, Z, $d hold to move window, movewindow +binddm = $mainMod, X, $d hold to resize window, resizewindow + +$d=[$wm] +bindd = $mainMod, J, $d toggle split, togglesplit + +$l=Launcher +$d=[$l|Apps] +bindd = $mainMod, T, $d terminal emulator, exec, $TERMINAL +bindd = $mainMod Alt, T, $d dropdown terminal, exec, hyde-shell pypr toggle console +bindd = $mainMod, E, $d file explorer, exec, $EXPLORER +bindd = $mainMod, C, $d text editor, exec, $EDITOR +bindd = $mainMod, B, $d web browser, exec, $BROWSER +bindd = Control Shift, Escape, $d system monitor, exec, $scrPath/sysmonlaunch.sh + +$d=[$l|Rofi menus] +$rofi-launch=$scrPath/rofilaunch.sh +bindd = $mainMod, A, $d application finder, exec, pkill -x rofi || $rofi-launch d +bindd = $mainMod, TAB, $d window switcher, exec, pkill -x rofi || $rofi-launch w +bindd = $mainMod Shift, E, $d file finder, exec, pkill -x rofi || $rofi-launch f +bindd = $mainMod, slash, $d keybindings hint, exec, pkill -x rofi || $scrPath/keybinds_hint.sh c +bindd = $mainMod, comma, $d emoji picker, exec, pkill -x rofi || $scrPath/emoji-picker.sh +bindd = $mainMod, period, $d glyph picker, exec, pkill -x rofi || $scrPath/glyph-picker.sh +bindd = $mainMod, V, $d clipboard, exec, pkill -x rofi || $scrPath/cliphist.sh -c +bindd = $mainMod Shift, V, $d clipboard manager, exec, pkill -x rofi || $scrPath/cliphist.sh +bindd = $mainMod Shift, A, $d select rofi launcher, exec, pkill -x rofi || $scrPath/rofiselect.sh + +$ut=Utilities +$d=[$ut] +binddl = $mainMod, K, $d toggle keyboard layout, exec, $scrPath/keyboardswitch.sh +bindd = $mainMod Shift, G, $d game mode, exec, $scrPath/gamemode.sh +bindd = $mainMod Shift, G, $d open game launcher, exec, $scrPath/gamelauncher.sh + +$d=[$ut|Screen Capture] +bindd = $mainMod Shift, P, $d color picker, exec, hyprpicker -an +bindd = $mainMod, P, $d snip screen, exec, $scrPath/screenshot.sh s +bindd = $mainMod Shift, M, $d freeze and snip screen, exec, $scrPath/screenshot.sh sf +binddl = $mainMod Ctrl, P, $d print monitor, exec, $scrPath/screenshot.sh m +binddl = , Print, $d print all monitors, exec, $scrPath/screenshot.sh p + +$rice=Theming and Wallpaper +$d=[$rice] +bindd = $mainMod Ctrl Alt, Right, $d next global wallpaper, exec, $scrPath/wallpaper.sh -Gn +bindd = $mainMod Ctrl Alt, Left, $d previous global wallpaper, exec, $scrPath/wallpaper.sh -Gp +bindd = $mainMod Shift, W, $d select a global wallpaper, exec, pkill -x rofi || $scrPath/wallpaper.sh -SG +bindd = $mainMod Ctrl Alt, Up, $d next waybar layout, exec, $scrPath/wbarconfgen.sh n +bindd = $mainMod Ctrl Alt, Down, $d previous waybar layout, exec, $scrPath/wbarconfgen.sh p +bindd = $mainMod Shift, R, $d wallbash mode selector, exec, pkill -x rofi || $scrPath/wallbashtoggle.sh -m +bindd = $mainMod Shift, T, $d select a theme, exec, pkill -x rofi || $scrPath/themeselect.sh +bindd = $mainMod Shift, Y, $d select animations, exec, pkill -x rofi || $scrPath/animations.sh --select +bindd = $mainMod Shift, U, $d select hyprlock layout, exec, pkill -x rofi || $scrPath/hyprlock.sh --select + +$ws=Workspaces +$d=[$ws|Navigation] +bindd = $mainMod, 1, $d navigate to workspace 1, workspace, 1 +bindd = $mainMod, 2, $d navigate to workspace 2, workspace, 2 +bindd = $mainMod, 3, $d navigate to workspace 3, workspace, 3 +bindd = $mainMod, 4, $d navigate to workspace 4, workspace, 4 +bindd = $mainMod, 5, $d navigate to workspace 5, workspace, 5 +bindd = $mainMod, 6, $d navigate to workspace 6, workspace, 6 +bindd = $mainMod, 7, $d navigate to workspace 7, workspace, 7 +bindd = $mainMod, 8, $d navigate to workspace 8, workspace, 8 +bindd = $mainMod, 9, $d navigate to workspace 9, workspace, 9 +bindd = $mainMod, 0, $d navigate to workspace 10, workspace, 10 + $d=[$ws|Navigation|Relative workspace] bindd = $mainMod Shift, Right, $d change active workspace forwards, workspace, r+1 bindd = $mainMod Shift, Left, $d change active workspace backwards, workspace, r-1 -# Move window to relative workspace — ⚠️ 충돌 회피 +$d=[$ws|Navigation] +bindd = $mainMod Control, Down, $d navigate to the nearest empty workspace, workspace, empty + +$d=[$ws|Move window to workspace] +bindd = $mainMod Shift, 1, $d move to workspace 1, movetoworkspace, 1 +bindd = $mainMod Shift, 2, $d move to workspace 2, movetoworkspace, 2 +bindd = $mainMod Shift, 3, $d move to workspace 3, movetoworkspace, 3 +bindd = $mainMod Shift, 4, $d move to workspace 4, movetoworkspace, 4 +bindd = $mainMod Shift, 5, $d move to workspace 5, movetoworkspace, 5 +bindd = $mainMod Shift, 6, $d move to workspace 6, movetoworkspace, 6 +bindd = $mainMod Shift, 7, $d move to workspace 7, movetoworkspace, 7 +bindd = $mainMod Shift, 8, $d move to workspace 8, movetoworkspace, 8 +bindd = $mainMod Shift, 9, $d move to workspace 9, movetoworkspace, 9 +bindd = $mainMod Shift, 0, $d move to workspace 10, movetoworkspace, 10 + $d=[$ws] bindd = $mainMod Ctrl Shift, Right, $d move window to next relative workspace, movetoworkspace, r+1 bindd = $mainMod Ctrl Shift, Left, $d move window to previous relative workspace, movetoworkspace, r-1 -# Utilities — ⚠️ IntelliJ 충돌 회피 -$d=[$ut] -binddl = $mainMod, K, $d toggle keyboard layout, exec, $scrPath/keyboardswitch.sh -bindd = $mainMod Shift, G, $d game mode, exec, $scrPath/gamemode.sh # 기존 Alt+Alt+G → Shift로 변경 -bindd = $mainMod Shift, G, $d open game launcher, exec, $scrPath/gamelauncher.sh # 동일 +$d=[$ws|Navigation] +bindd = $mainMod, mouse_down, $d next workspace, workspace, e+1 +bindd = $mainMod, mouse_up, $d previous workspace, workspace, e-1 -# Screen Capture — ⚠️ Ctrl+Alt+P 충돌 회피 -$d=[$ut|Screen Capture] -bindd = $mainMod Shift, P, $d color picker, exec, hyprpicker -an -bindd = $mainMod, P, $d snip screen, exec, $scrPath/screenshot.sh s -bindd = $mainMod Shift, M, $d freeze and snip screen, exec, $scrPath/screenshot.sh sf # Ctrl+P → Shift+M -binddl = $mainMod Ctrl, P, $d print monitor, exec, $scrPath/screenshot.sh m # Alt+Ctrl+P 대신 Alt+Ctrl+P는 피하고 Ctrl만 추가 (IntelliJ는 Ctrl+Alt+P만 사용) -binddl = , Print, $d print all monitors, exec, $scrPath/screenshot.sh p \ No newline at end of file +$d=[$ws|Navigation|Special workspace] +bindd = $mainMod Shift, S, $d move to scratchpad, movetoworkspace, special +bindd = $mainMod Alt, S, $d move to scratchpad (silent), movetoworkspacesilent, special +bindd = $mainMod, S, $d toggle scratchpad, togglespecialworkspace + +$d=[$ws|Navigation|Move window silently] +bindd = $mainMod Alt, 1, $d move to workspace 1 (silent), movetoworkspacesilent, 1 +bindd = $mainMod Alt, 2, $d move to workspace 2 (silent), movetoworkspacesilent, 2 +bindd = $mainMod Alt, 3, $d move to workspace 3 (silent), movetoworkspacesilent, 3 +bindd = $mainMod Alt, 4, $d move to workspace 4 (silent), movetoworkspacesilent, 4 +bindd = $mainMod Alt, 5, $d move to workspace 5 (silent), movetoworkspacesilent, 5 +bindd = $mainMod Alt, 6, $d move to workspace 6 (silent), movetoworkspacesilent, 6 +bindd = $mainMod Alt, 7, $d move to workspace 7 (silent), movetoworkspacesilent, 7 +bindd = $mainMod Alt, 8, $d move to workspace 8 (silent), movetoworkspacesilent, 8 +bindd = $mainMod Alt, 9, $d move to workspace 9 (silent), movetoworkspacesilent, 9 +bindd = $mainMod Alt, 0, $d move to workspace 10 (silent), movetoworkspacesilent, 10 + +$d=#! unset the group name \ No newline at end of file