Hyprland dotfiles
| 1 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # |
| 2 | |
| 3 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings |
| 4 | # These configs are mostly for laptops. This is addemdum to Keybinds.conf |
| 5 | |
| 6 | $mainMod = SUPER |
| 7 | $scriptsDir = $HOME/.config/hypr/scripts |
| 8 | $UserConfigs = $HOME/.config/hypr/UserConfigs |
| 9 | |
| 10 | # for disabling Touchpad. hyprctl devices to get device name. |
| 11 | $Touchpad_Device=asue1209:00-04f3:319f-touchpad |
| 12 | |
| 13 | binde = , xf86KbdBrightnessDown, exec, $scriptsDir/BrightnessKbd.sh --dec # decrease keyboard brightness |
| 14 | binde = , xf86KbdBrightnessUp, exec, $scriptsDir/BrightnessKbd.sh --inc # increase keyboard brightness |
| 15 | bind = , xf86Launch1, exec, rog-control-center # ASUS Armory crate button |
| 16 | bind = , xf86Launch3, exec, asusctl led-mode -n # FN+F4 Switch keyboard RGB profile |
| 17 | bind = , xf86Launch4, exec, asusctl profile -n # FN+F5 change of fan profiles (Quite, Balance, Performance) |
| 18 | binde = , xf86MonBrightnessDown, exec, $scriptsDir/Brightness.sh --dec # decrease monitor brightness |
| 19 | binde = , xf86MonBrightnessUp, exec, $scriptsDir/Brightness.sh --inc # increase monitor brightness |
| 20 | bind = , xf86TouchpadToggle, exec, $scriptsDir/TouchPad.sh # disable touchpad |
| 21 | |
| 22 | # Screenshot keybindings using F6 (no PrinSrc button) |
| 23 | bind = $mainMod, F6, exec, $scriptsDir/ScreenShot.sh --now # screenshot |
| 24 | bind = $mainMod SHIFT, F6, exec, $scriptsDir/ScreenShot.sh --area # screenshot (area) |
| 25 | bind = $mainMod CTRL, F6, exec, $scriptsDir/ScreenShot.sh --in5 # # screenshot (5 secs delay) |
| 26 | bind = $mainMod ALT, F6, exec, $scriptsDir/ScreenShot.sh --in10 # screenshot (10 secs delay) |
| 27 | bind = ALT, F6, exec, $scriptsDir/ScreenShot.sh --active # screenshot (active window only) |
| 28 | |
| 29 | $TOUCHPAD_ENABLED = true |
| 30 | device { |
| 31 | name = $Touchpad_Device |
| 32 | enabled = $TOUCHPAD_ENABLED |
| 33 | } |
| 34 | # Below are useful when you are connecting your laptop in external display |
| 35 | # Suggest you edit below for your laptop display |
| 36 | # From WIKI This is to disable laptop monitor when lid is closed. |
| 37 | # consult https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Binds/#switches |
| 38 | #bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" |
| 39 | #bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" |
| 40 | |
| 41 | |
| 42 | # WARNING! Using this method has some caveats!! USE THIS PART WITH SOME CAUTION! |
| 43 | # CONS of doing this, is that you need to set up your wallpaper (SUPER W) and choose wallpaper. |
| 44 | # CAVEATS! Sometimes the Main Laptop Monitor DOES NOT have display that it needs to re-connect your external monitor |
| 45 | # One work around is to ensure that before shutting down laptop, MAKE SURE your laptop lid is OPEN!! |
| 46 | # Make sure to comment (put # on the both the bindl = , switch ......) above |
| 47 | # NOTE: Display for laptop are being generated into LaptopDisplay.conf |
| 48 | # This part is to be use if you do not want your main laptop monitor to wake up during say wallpaper change etc |
| 49 | |
| 50 | #bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $UserConfigs/LaptopDisplay.conf |
| 51 | #bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $UserConfigs/LaptopDisplay.conf |
| 52 | |
| 53 | # for laptop-lid action (to erase the last entry) |
| 54 | #exec-once = echo "monitor = eDP-1, preferred, auto, 1" > $HOME/.config/hypr/UserConfigs/LaptopDisplay.conf |
| 55 | # |