Fixed bugs

Added paru installation
Switchted to hyprlock
This commit is contained in:
2024-04-10 22:22:50 +02:00
parent b39e579c51
commit d46e7c8dad
172 changed files with 1897 additions and 123 deletions

View File

@@ -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"

View File

@@ -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