mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 23:46:13 +01:00
moved to nvidia wayland
This commit is contained in:
12
.config/hypr/session.sh
Executable file
12
.config/hypr/session.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/zsh
|
||||
|
||||
lock="swaylock \
|
||||
--screenshots \
|
||||
--effect-pixelate 20 \
|
||||
--effect-vignette 0.5:0.5 \
|
||||
--fade-in 0.2"
|
||||
screenoff="hyprctl dispatch dpms off"
|
||||
screenon="hyprctl dispatch dpms on"
|
||||
|
||||
swayidle -w timeout 1200 "if pgrep -x swaylock; then $screenoff; fi" resume "$screenon" & disown
|
||||
swayidle -w timeout 600 "$lock" & disown
|
||||
Reference in New Issue
Block a user