From bea8cd8f88862bf33a999cd0874b378823ade0cf Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Thu, 11 Aug 2022 16:27:58 +0300 Subject: [PATCH] Updating machine name and adding lock screen script for plasma --- {bitbreaker => apsalar}/dwarf-fortress | 0 apsalar/lockmon.sh | 11 +++++++++++ {bitbreaker => apsalar}/starcitizen | 0 {bitbreaker => apsalar}/starsector | 0 {bitbreaker => apsalar}/veloren | 0 5 files changed, 11 insertions(+) rename {bitbreaker => apsalar}/dwarf-fortress (100%) create mode 100755 apsalar/lockmon.sh rename {bitbreaker => apsalar}/starcitizen (100%) rename {bitbreaker => apsalar}/starsector (100%) rename {bitbreaker => apsalar}/veloren (100%) diff --git a/bitbreaker/dwarf-fortress b/apsalar/dwarf-fortress similarity index 100% rename from bitbreaker/dwarf-fortress rename to apsalar/dwarf-fortress diff --git a/apsalar/lockmon.sh b/apsalar/lockmon.sh new file mode 100755 index 0000000..c0ca9b9 --- /dev/null +++ b/apsalar/lockmon.sh @@ -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 diff --git a/bitbreaker/starcitizen b/apsalar/starcitizen similarity index 100% rename from bitbreaker/starcitizen rename to apsalar/starcitizen diff --git a/bitbreaker/starsector b/apsalar/starsector similarity index 100% rename from bitbreaker/starsector rename to apsalar/starsector diff --git a/bitbreaker/veloren b/apsalar/veloren similarity index 100% rename from bitbreaker/veloren rename to apsalar/veloren