Hyprland dotfiles
| 1 | # /* ---- 馃挮 https://github.com/JaKooLit 馃挮 ---- */ # |
| 2 | # This is where you put your own keybinds. Be Mindful to check as well ~/.config/hypr/configs/Keybinds.conf to avoid conflict |
| 3 | # if you think I should replace the Pre-defined Keybinds in ~/.config/hypr/configs/Keybinds.conf , submit an issue or let me know in DC and present me a valid reason as to why, such as conflicting with global shortcuts, etc etc |
| 4 | |
| 5 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more settings and variables |
| 6 | # See also Laptops.conf for laptops keybinds |
| 7 | |
| 8 | # /* ---- 鉁达笍 Variables 鉁达笍 ---- */ # |
| 9 | $mainMod = SUPER |
| 10 | $files = nautilus |
| 11 | $term = foot |
| 12 | $scriptsDir = $HOME/.config/hypr/scripts |
| 13 | $UserScripts = $HOME/.config/hypr/UserScripts |
| 14 | |
| 15 | # Move focus vim style |
| 16 | bind = $mainMod, h, movefocus, l |
| 17 | bind = $mainMod, l, movefocus, r |
| 18 | bind = $mainMod, k, movefocus, u |
| 19 | bind = $mainMod, j, movefocus, d |
| 20 | |
| 21 | # move actual window vim style |
| 22 | bind = $mainMod SHIFT, h, swapwindow, l |
| 23 | bind = $mainMod SHIFT, j, swapwindow, d |
| 24 | bind = $mainMod SHIFT, k, swapwindow, u |
| 25 | bind = $mainMod SHIFT, l, swapwindow, r |
| 26 | |
| 27 | # Playerctl controls |
| 28 | bind = $mainMod, p, exec, playerctl next |
| 29 | bind = $mainMod, n, exec, playerctl previous |
| 30 | bind = $mainMod, SPACE, exec, playerctl play-pause |
| 31 | |
| 32 | # common shortcuts |
| 33 | #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu |
| 34 | bind = $mainMod, D, exec, pkill rofi || true && rofi -show drun -modi drun,filebrowser,run,window # Main Menu (APP Launcher) |
| 35 | bind = $mainMod, B, exec, xdg-open "https://" # default browser |
| 36 | bind = $mainMod, A, exec, pkill rofi || true && ags -t 'overview' # desktop overview (if installed) |
| 37 | bind = $mainMod, Return, exec, $term #terminal |
| 38 | bind = $mainMod, E, exec, $files #file manager |
| 39 | |
| 40 | # move workspace to another monitor |
| 41 | bind = $mainMod, M, exec, \ |
| 42 | hyprctl dispatch moveworkspacetomonitor $(hyprctl activeworkspace -j | jq '.id') \ |
| 43 | $(hyprctl monitors -j | jq -r 'map(select(.focused != true))[0].name') |
| 44 | |
| 45 | # bind = $mainMod, C, exec, gtk-launch clockify |
| 46 | |
| 47 | # FEATURES / EXTRAS |
| 48 | bind = $mainMod CTRL, H, exec, $scriptsDir/KeyHints.sh # help / cheat sheet |
| 49 | bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi |
| 50 | bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji menu |
| 51 | # bind = $mainMod, S, exec, $scriptsDir/RofiSearch.sh # Google search using rofi |
| 52 | bind = $mainMod ALT, O, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings |
| 53 | # bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # Toggle animations ON/OFF |
| 54 | bind = $mainMod ALT, L, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout |
| 55 | bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh # Clipboard Manager |
| 56 | bind = $mainMod CTRL, R, exec, $scriptsDir/RofiThemeSelector.sh # KooL Rofi Menu Theme Selector |
| 57 | bind = $mainMod CTRL SHIFT, R, exec, pkill rofi || true && $scriptsDir/RofiThemeSelector-modified.sh # modified Rofi Theme Selector |
| 58 | bind = $mainMod, V, exec, $scriptsDir/OpenVolume.sh # Open volume control |
| 59 | bind = $mainMod SHIFT, V, exec, $scriptsDir/LiveMicTest.sh # Live mic test |
| 60 | |
| 61 | bind = $mainMod SHIFT, F, fullscreen # whole full screen |
| 62 | bind = $mainMod, F, fullscreen, 1 # fake full screen |
| 63 | # bind = $mainMod, SPACE, togglefloating, #Float Mode |
| 64 | bind = $mainMod ALT, SPACE, exec, hyprctl dispatch workspaceopt allfloat #All Float Mode |
| 65 | bind = $mainMod SHIFT, Return, exec, [float; move 15% 5%; size 70% 60%] $term # Dropdown terminal |
| 66 | |
| 67 | # Desktop zooming or magnifier |
| 68 | bind = $mainMod ALT, mouse_down, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 2.0}')" |
| 69 | bind = $mainMod ALT, mouse_up, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 2.0}')" |
| 70 | |
| 71 | ## NOTES for ja (Hyprland version 0.39 (Ubuntu 24.04)) |
| 72 | #bind = $mainMod ALT, mouse_down, exec, hyprctl keyword misc:cursor_zoom_factor "$(hyprctl getoption misc:cursor_zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 2.0}')" |
| 73 | #bind = $mainMod ALT, mouse_up, exec, hyprctl keyword misc:cursor_zoom_factor "$(hyprctl getoption misc:cursor_zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 2.0}')" |
| 74 | |
| 75 | # Waybar / Bar related |
| 76 | bind = $mainMod CTRL ALT, B, exec, pkill -SIGUSR1 waybar # Toggle hide/show waybar |
| 77 | bind = $mainMod CTRL, B, exec, $scriptsDir/WaybarStyles.sh # Waybar Styles Menu |
| 78 | bind = $mainMod ALT, B, exec, $scriptsDir/WaybarLayout.sh # Waybar Layout Menu |
| 79 | |
| 80 | # FEATURES / EXTRAS (UserScripts) |
| 81 | bind = $mainMod, S, exec, $UserScripts/ToggleStudy.sh |
| 82 | bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music using rofi |
| 83 | bind = $mainMod SHIFT, G, exec, $UserScripts/ScreenGif.sh # region screen-to-GIF (toggle) |
| 84 | bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply |
| 85 | bind = $mainMod SHIFT, W, exec, $UserScripts/WallpaperEffects.sh # Wallpaper Effects by imagemagick |
| 86 | bind = CTRL ALT, W, exec, $UserScripts/WallpaperRandom.sh # Random wallpapers |
| 87 | bind = $mainMod CTRL, O, exec, hyprctl setprop active opaque toggle # disable opacity on active window |
| 88 | bind = $mainMod CTRL, K, exec, $scriptsDir/KeyBinds.sh # search keybinds via rofi |
| 89 | bind = $mainMod SHIFT, A, exec, $scriptsDir/Animations.sh #hyprland animations menu |
| 90 | bind = $mainMod SHIFT, O, exec, $UserScripts/ZshChangeTheme.sh # Change oh-my-zsh theme |
| 91 | # bindln = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Change keyboard layout |
| 92 | # bind = $mainMod ALT, C, exec, qalculate-gtk # calculator (qalculate) |
| 93 | bind = $mainMod ALT, C, exec, $UserScripts/Calculator.sh # calculator (qalculate) |
| 94 | bind = $mainMod SHIFT, C, exec, gnome-calendar |
| 95 | # bind = $mainMod ALT, C, exec, $UserScripts/RofiCalc.sh # calculator (qalculate) |
| 96 | |
| 97 | # For passthrough keyboard into a VM |
| 98 | # bind = $mainMod ALT, P, submap, passthru |
| 99 | #submap = passthru |
| 100 | # to unbind |
| 101 | #bind = $mainMod ALT, P, submap, reset |
| 102 | #submap = reset |
| 103 | |
| 104 | # Easy access (Minimized Popups) |
| 105 | bind = $mainMod, o, exec, $UserScripts/ToggleMinimize.sh hubstaff /home/huncho/Hubstaff/HubstaffClient.bin.x86_64 |
| 106 | bind = $mainMod shift, p, exec, $UserScripts/ToggleMinimize.sh proton protonvpn-app |
| 107 | bind = $mainMod, x, exec, $UserScripts/ToggleMinimize.sh ledger ledger |
| 108 | bind = $mainMod, t, exec, $UserScripts/ToggleMinimize.sh tidal-hifi tidal-hifi |
| 109 | bind = $mainMod, z, exec, $UserScripts/ToggleMinimize.sh zoho zoho-mail-desktop |
| 110 | bind = $mainMod, g, exec, $UserScripts/ToggleMinimize.sh chrome-fmgjjmmmlfnkbppncabfkddbjimcfncm-Default 'gtk-launch gmail' |
| 111 | # bind = $mainMod, g, exec, gtk-launch gmail |
| 112 | |
| 113 | # Switch to workspaces 11-20 via Super+Shift+1-0 |
| 114 | bind = $mainMod SHIFT, 1, workspace, 11 |
| 115 | bind = $mainMod SHIFT, 2, workspace, 12 |
| 116 | bind = $mainMod SHIFT, 3, workspace, 13 |
| 117 | bind = $mainMod SHIFT, 4, workspace, 14 |
| 118 | bind = $mainMod SHIFT, 5, workspace, 15 |
| 119 | bind = $mainMod SHIFT, 6, workspace, 16 |
| 120 | bind = $mainMod SHIFT, 7, workspace, 17 |
| 121 | bind = $mainMod SHIFT, 8, workspace, 18 |
| 122 | bind = $mainMod SHIFT, 9, workspace, 19 |
| 123 | bind = $mainMod SHIFT, 0, workspace, 20 |
| 124 | |
| 125 | # Move window to workspaces 11-20 via Super+Ctrl+Shift+1-0 |
| 126 | bind = $mainMod CTRL SHIFT, 1, movetoworkspace, 11 |
| 127 | bind = $mainMod CTRL SHIFT, 2, movetoworkspace, 12 |
| 128 | bind = $mainMod CTRL SHIFT, 3, movetoworkspace, 13 |
| 129 | bind = $mainMod CTRL SHIFT, 4, movetoworkspace, 14 |
| 130 | bind = $mainMod CTRL SHIFT, 5, movetoworkspace, 15 |
| 131 | bind = $mainMod CTRL SHIFT, 6, movetoworkspace, 16 |
| 132 | bind = $mainMod CTRL SHIFT, 7, movetoworkspace, 17 |
| 133 | bind = $mainMod CTRL SHIFT, 8, movetoworkspace, 18 |
| 134 | bind = $mainMod CTRL SHIFT, 9, movetoworkspace, 19 |
| 135 | bind = $mainMod CTRL SHIFT, 0, movetoworkspace, 20 |
| 136 | |
| 137 | bind = $mainMod, i, exec, foot -a floating-term sh -c 'hyprctl clients | nvim' # Show the current hyprland client info |
| 138 | |
| 139 | # Push to talk with handy |
| 140 | bind = $mainMod, grave, exec, handy --toggle-transcription |
| 141 | bindr = $mainMod, grave, exec, handy --toggle-transcription |