diff --git a/hypridle.conf b/hypridle.conf index 25cdfab..aac35db 100755 --- a/hypridle.conf +++ b/hypridle.conf @@ -7,4 +7,10 @@ listener { timeout = 360 on-timeout = bash -c 'for o in $(hyprctl monitors -j | jq -r ".[].name"); do wlopm --off "$o"; done' on-resume = bash -c 'for o in $(hyprctl monitors -j | jq -r ".[].name"); do wlopm --on "$o"; done' +} + +listener { + timeout = 250 # in seconds. + on-timeout = notify-send "You are idle!" # command to run when timeout has passed. + on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. } \ No newline at end of file diff --git a/scripts/autostart/autostart.sh b/scripts/autostart/autostart.sh index 7d64966..5a9d2db 100755 --- a/scripts/autostart/autostart.sh +++ b/scripts/autostart/autostart.sh @@ -105,8 +105,8 @@ done for i in 4 3 2 1; do echo "hyprctl dispatch \"hl.dsp.focus({workspace = \"$i\"})\"" hyprctl dispatch "hl.dsp.focus({workspace = \"$i\"})" - echo "hyprctl dispatch workspace \"$i\"" - hyprctl dispatch workspace "$i" + #echo "hyprctl dispatch workspace \"$i\"" + #hyprctl dispatch workspace "$i" if [ "$i" -eq 3 ]; then sleep 0.5 @@ -116,4 +116,4 @@ for i in 4 3 2 1; do fi done -tmux new-session -d -s qs 'sleep 4 && quickshell' \ No newline at end of file +tmux new-session -d -s qs 'sleep 4 && quickshell'