Swayscript : Add default pring outputs.

This commit is contained in:
Dmitry Voronin 2024-05-08 19:50:09 +03:00
parent 54d6370d1a
commit 97645805aa
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
function _monstate() {
if [[ "''${1}" = "" ]]; then
cat /tmp/.monstate 2> /dev/null
cat /tmp/.monstate 2> /dev/null || echo on
else
echo "''${*}" > /tmp/.monstate
fi

View file

@ -29,7 +29,7 @@
function _vrrstate() {
if [[ "''${1}" = "" ]]; then
cat /tmp/.vrrstate 2> /dev/null
cat /tmp/.vrrstate 2> /dev/null || off
else
echo "''${*}" > /tmp/.vrrstate
fi