upload
This commit is contained in:
20
local/bin/noblank
Executable file
20
local/bin/noblank
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
case "$LANG" in
|
||||
pl*)
|
||||
DISABLED="Wygaszanie monitora jest WYŁĄCZONE"
|
||||
ENABLED="Wygaszanie monitora jest WŁĄCZONE"
|
||||
;;
|
||||
*)
|
||||
DISABLED="Monitor blanking is DISABLED"
|
||||
ENABLED="Monitor blanking is ENABLED"
|
||||
;;
|
||||
esac
|
||||
|
||||
if (xset q|grep --quiet "DPMS is Enabled");
|
||||
then
|
||||
xset s off -dpms
|
||||
notify-send -i monitor -t 5000 "DPMS" "$DISABLED"
|
||||
else
|
||||
xset s on +dpms
|
||||
notify-send -i monitor -t 5000 "DPMS" "$ENABLED"
|
||||
fi
|
||||
Reference in New Issue
Block a user