fix: lock command not working

This commit is contained in:
AngeD 2023-04-11 18:58:38 +02:00
parent 5a424e9592
commit 43ed815be6
6 changed files with 8 additions and 5 deletions

@ -1 +1 @@
Subproject commit 27e9e1d2638ffd133b06f314a49ac55825cb1017 Subproject commit 10fa01d553ce10646350461ac5ddc71f189e9d1a

@ -1 +1 @@
Subproject commit 253d34830709d690f013daf2853a9d21ad7accab Subproject commit 9ac3e9541bbabd9d73663d757e4fe48a675bb054

@ -1 +1 @@
Subproject commit 7141515a7cabde46449675a403ed564416363887 Subproject commit 6258d50b09f9ae087317e392efe7c05a7323492d

@ -1 +1 @@
Subproject commit fa9fe9a95ba481e26e11eede4657f8c5350a0eaa Subproject commit a82501244a75b3d59cdc42496e5ad841f31e4d6d

View File

@ -18,7 +18,7 @@ feh --bg-fill "$XDG_CONFIG_HOME/wallpapers/monerochan.png" --no-fehbg &
cycle=15 # lock 15 sec after stimeout cycle=15 # lock 15 sec after stimeout
dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock dpms="$((stimeout + cycle + 1))" # turn off screen 1 sec after lock
xss-lock -n "feh --fullscreen $lockimg" -- "i3lock -ftni $lockimg" xss-lock -n "feh --fullscreen $lockimg" -- lock
xset s "$stimeout" "$cycle" xset s "$stimeout" "$cycle"
xset dpms "$dpms" "$dpms" "$dpms" xset dpms "$dpms" "$dpms" "$dpms"
) & ) &

3
bin/lock Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
i3lock -ftni "$XDG_CONFIG_HOME/wallpapers/lock.png"