forked from logan/dotfiles
Added swayidle to Hyprland
This commit is contained in:
parent
dddf718030
commit
8ff35ec45d
2 changed files with 6 additions and 1 deletions
|
@ -1 +1,4 @@
|
||||||
$lockBG = ~/Pictures/orion-nebula-5120x2880-hubble-space-telescope-nasa-hd-5k-1933.jpg
|
$lockBG = ~/Pictures/orion-nebula-5120x2880-hubble-space-telescope-nasa-hd-5k-1933.jpg
|
||||||
|
$idleLockTime = 600
|
||||||
|
$idleScreenTime = 605
|
||||||
|
$idleScreenTimeLocked = 10
|
||||||
|
|
|
@ -80,6 +80,7 @@ misc {
|
||||||
#windowrule=pseudo,abc
|
#windowrule=pseudo,abc
|
||||||
#windowrule=monitor 0,xyz
|
#windowrule=monitor 0,xyz
|
||||||
|
|
||||||
|
$lockCMD = swaylock -e -F -f -i $lockBG
|
||||||
|
|
||||||
# ------------------- BINDS ----------------------- #
|
# ------------------- BINDS ----------------------- #
|
||||||
# some nice mouse binds
|
# some nice mouse binds
|
||||||
|
@ -91,7 +92,7 @@ bind=SUPER,Return,exec,footclient
|
||||||
bind=SUPERCTRL,Q,exec,hyprctl kill
|
bind=SUPERCTRL,Q,exec,hyprctl kill
|
||||||
bind=SUPERSHIFT,c,exec,pkill waybar && waybar -c ~/.config/waybar/hyprland
|
bind=SUPERSHIFT,c,exec,pkill waybar && waybar -c ~/.config/waybar/hyprland
|
||||||
bind=SUPERSHIFT,r,exec,hyprctl reload
|
bind=SUPERSHIFT,r,exec,hyprctl reload
|
||||||
bind=CTRLALT,l,exec,swaylock -e -F -f -i $lockBG
|
bind=CTRLALT,l,exec,$lockCMD
|
||||||
bind=SUPER,D,exec,wofi --show drun --allow-images -G -i --define=drun-print_command=true | sed -e 's/%[A-Za-z0-9]*/ /g' | xargs hyprctl dispatch exec
|
bind=SUPER,D,exec,wofi --show drun --allow-images -G -i --define=drun-print_command=true | sed -e 's/%[A-Za-z0-9]*/ /g' | xargs hyprctl dispatch exec
|
||||||
bind=,Print,exec,grim -g "$(slurp)" - | swappy -f -
|
bind=,Print,exec,grim -g "$(slurp)" - | swappy -f -
|
||||||
bind=SUPERSHIFT,E,exec,zenity --question --text='Do you wish to exit Hyprland?' --default-cancel && hyprctl dispatch exit
|
bind=SUPERSHIFT,E,exec,zenity --question --text='Do you wish to exit Hyprland?' --default-cancel && hyprctl dispatch exit
|
||||||
|
@ -183,5 +184,6 @@ exec-once = wl-paste --type text --watch cliphist store #Stores only text data
|
||||||
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
|
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
|
||||||
exec-once = lxqt-policykit-agent
|
exec-once = lxqt-policykit-agent
|
||||||
exec-once = hyprpaper
|
exec-once = hyprpaper
|
||||||
|
exec-once = swayidle -w timeout $idleLockTime '$lockCMD' timeout $idleScreenTime 'hyprctl dispatch dpms off' timeout $idleScreenTimeLocked 'pgrep -x swaylock && hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lockCMD' before-sleep 'playerctl -a pause'
|
||||||
|
|
||||||
source = ~/.config/hypr/conf.d/override.conf
|
source = ~/.config/hypr/conf.d/override.conf
|
||||||
|
|
Loading…
Reference in a new issue