Dotfiles config update (2021-12-12)

This commit is contained in:
q3aql 2021-12-12 18:03:30 +01:00
parent b59b0c52e1
commit 4a7ac37f82

View File

@ -9,6 +9,9 @@ monitorThree="" # Third monitor
# Load script for load monitors config quickly from resume # Load script for load monitors config quickly from resume
LoadConfigResume="${HOME}/.config/sway/startwlrrandr.sh" LoadConfigResume="${HOME}/.config/sway/startwlrrandr.sh"
# StateFile variable
stateFile="${HOME}/.config/sway/screen-state"
# Function for sleep monitors # Function for sleep monitors
function sleepMonitors() { function sleepMonitors() {
# Check monitor 3 # Check monitor 3
@ -32,6 +35,7 @@ function sleepMonitors() {
echo "Sleep monitor 1" echo "Sleep monitor 1"
wlr-randr --output ${monitorOne} --off wlr-randr --output ${monitorOne} --off
fi fi
echo "sleep" > ${stateFile}
} }
# Function for resume monitors # Function for resume monitors
@ -59,6 +63,7 @@ function resumeMonitors() {
fi fi
# Load monitors config quickly # Load monitors config quickly
bash ${LoadConfigResume} screensaver bash ${LoadConfigResume} screensaver
echo "resume" > ${stateFile}
} }
# Boot parameters # Boot parameters