epci
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
6817ebf658
commit
27b7055d21
2
.bashrc
2
.bashrc
|
@ -45,7 +45,7 @@ cpusage() {
|
|||
}
|
||||
|
||||
# Update and upgrade system
|
||||
update() { sh -c "$UPDATE"; }
|
||||
update() { $PRIV sh -c "$UPDATE"; }
|
||||
|
||||
# Im too lazy to type
|
||||
copy() {
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
if [[ $(playerctl status) != "Playing" ]]; then
|
||||
swayidle -w timeout 600 'sudo ~/.local/bin/__suspend' &
|
||||
SUSPEND=$!
|
||||
if ! ps aux | grep -v grep | grep swaylock; then
|
||||
if [[ $(playerctl status) != "Playing" ]]; then
|
||||
swayidle -w timeout 600 'sudo ~/.local/bin/__suspend' &
|
||||
SUSPEND=$!
|
||||
fi
|
||||
swayidle -w timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
|
||||
SCREENOFF=$!
|
||||
swaylock -eFKL -i ~/.config/sway/background.png --font "Fira Code"
|
||||
kill $SUSPEND $SCREENOFF
|
||||
fi
|
||||
swayidle -w timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
|
||||
SCREENOFF=$!
|
||||
swaylock -eFKL -i ~/.config/sway/background.png --font "Fira Code"
|
||||
kill $SUSPEND $SCREENOFF
|
||||
|
|
Loading…
Reference in New Issue