Files
hyprland/config/hypr/UserConfigs/Laptops.conf
T
2024-01-24 23:46:11 +05:45

61 lines
3.2 KiB
Plaintext

# See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings
# These configs are mostly for laptops. This is addemdum to Keybinds.conf
$mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts
$RunCMD = $scriptsDir/RunCMD.sh
$UserConfigs = $HOME/.config/hypr/UserConfigs
#Brightness Control
bind = ,xf86KbdBrightnessDown, exec, $RunCMD brightness --dec-kbd #Keyboard brightness Down
bind = ,xf86KbdBrightnessUp, exec, $RunCMD brightness --inc-kbd #Keyboard brightness up
bind = ,XF86MonBrightnessUp, exec, $RunCMD brightness --inc
bind = ,XF86MonBrightnessDown, exec, $RunCMD brightness --dec
bind = $mainMod_SHIFT, D, exec, $RunCMD touchpad # Disable Touchpad
#VolumeControl
bind = ,XF86AudioRaiseVolume, exec, $RunCMD volume --inc
bind = ,XF86AudioLowerVolume, exec, $RunCMD volume --dec
bind = ,XF86AudioMute, exec, $RunCMD volume --toggle
bind = ,XF86AudioMicMute, exec, $RunCMD volume --toggle-mic
bind = ,XF86AudioNext, exec, playerctl next
bind = ,XF86AudioPrev, exec, playerctl previous
bind = ,XF86AudioPlay, exec, playerctl play
bind = ,XF86AudioStop, exec, playerctl pause
# ScreenShot
bind = , Print, exec, $RunCMD screenshot --now # Fullscreen
bind = CTRL, Print, exec, $RunCMD screenshot --active # active window
bind = ALT, Print, exec, $RunCMD screenshot --in5 # Screenshot in 5 Sec
bind = SHIFT, Print, exec, $RunCMD screenshot --in10 # Screenshot in 10 sec
bind = $mainMod, Z, exec, $RunCMD screenshot --area
# Laptops Other Key
bind = , xf86Sleep, exec, systemctl suspend # sleep button
# Below are useful when you are connecting your laptop in external display
# Suggest you edit below for your laptop display
# From WIKI This is to disable laptop monitor when lid is closed.
# consult https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Binds/#switches
#bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1"
#bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
#############################################################################
### WARNING! Using this method has some caveats!! USE THIS PART WITH SOME CAUTION!
# CONS of doing this, is that you need to set up your wallpaper (SUPER W) and choose wallpaper.
# CAVEATS! Sometimes the Main Laptop Monitor DOES NOT have display that it needs to re-connect your external monitor
# One work around is to ensure that before shutting down laptop, MAKE SURE your laptop lid is OPEN!!
# Make sure to comment (put # on the both the bindl = , switch ......) above
# NOTE: Display for laptop are being generated into LaptopDisplay.conf
# This part is to be use if you do not want your main laptop monitor to wake up during say wallpaper change etc
#bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $UserConfigs/LaptopDisplay.conf
#bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $UserConfigs/LaptopDisplay.conf
# for laptop-lid action (to erase the last entry)
#exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/UserConfigs/LaptopDisplay.conf
##############################################################################