remove duplicates from PATH in .zshrc and fix infinite recursive i3lock call
This commit is contained in:
parent
441ad802e7
commit
2095d3cb00
3 changed files with 3 additions and 1 deletions
chezmoi/bin
17
chezmoi/bin/executable_i3locker
Normal file
17
chezmoi/bin/executable_i3locker
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
revert() {
|
||||
# disable DPMS
|
||||
xset dpms 0 0 0
|
||||
}
|
||||
|
||||
# revert DPMS on script exit
|
||||
trap revert EXIT
|
||||
|
||||
# turn off screen after 5 seconds
|
||||
xset +dpms dpms 5 5 5
|
||||
|
||||
i3lock --nofork -c 000000
|
||||
|
||||
revert
|
Loading…
Add table
Add a link
Reference in a new issue