Fixed bugs
Added paru installation Switchted to hyprlock
This commit is contained in:
@@ -1,21 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
isplayingvideo(){
|
||||
if pactl list | grep -q RUNNING; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
if ! [ -z $1 ]; then
|
||||
isplayingvideo
|
||||
fi
|
||||
|
||||
timeout_lock=900
|
||||
timeout_DPMS=1080
|
||||
|
||||
swayidle -w \
|
||||
timeout ${timeout_lock} "$0 isplayinfvideo || ~/.config/hypr/scripts/lock.sh" \
|
||||
#timeout ${timeout_DPMS} 'hyprctl dispatch dpms off'
|
||||
#resume 'hyprctl dispatch dpms on' # Crashes all apps -> Hyprland config set misc/mouse_move_enables_dpms=true
|
||||
timeout ${timeout_lock} "hyprlock & disown" \
|
||||
timeout ${timeout_DPMS} "hyprctl dispatch dpms off"
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
program_name="ags"
|
||||
|
||||
check_program_running() {
|
||||
pgrep -x "$program_name" > /dev/null
|
||||
}
|
||||
|
||||
while ! check_program_running; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
sleep 1
|
||||
Reference in New Issue
Block a user