Updating machine name and adding lock screen script for plasma

This commit is contained in:
Siina Mashek 2022-08-11 16:27:58 +03:00
parent 6565eafc58
commit bea8cd8f88
5 changed files with 11 additions and 0 deletions

11
apsalar/lockmon.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
bus-monitor --session "type='signal',interface='org.freedesktop.ScreenSaver'" |
while read x; do
case "$x" in
# Simulate monitor being off
*"boolean true"*) xrandr --output HDMI-A-1 --brightness 0.0;;
# Restore monitor brightness
*"boolean false"*) xrandr --output HDMI-A-1 --brightness 1.0;;
esac
done