Swayscript : Add default pring outputs.
This commit is contained in:
parent
54d6370d1a
commit
97645805aa
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
function _monstate() {
|
function _monstate() {
|
||||||
if [[ "''${1}" = "" ]]; then
|
if [[ "''${1}" = "" ]]; then
|
||||||
cat /tmp/.monstate 2> /dev/null
|
cat /tmp/.monstate 2> /dev/null || echo on
|
||||||
else
|
else
|
||||||
echo "''${*}" > /tmp/.monstate
|
echo "''${*}" > /tmp/.monstate
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
function _vrrstate() {
|
function _vrrstate() {
|
||||||
if [[ "''${1}" = "" ]]; then
|
if [[ "''${1}" = "" ]]; then
|
||||||
cat /tmp/.vrrstate 2> /dev/null
|
cat /tmp/.vrrstate 2> /dev/null || off
|
||||||
else
|
else
|
||||||
echo "''${*}" > /tmp/.vrrstate
|
echo "''${*}" > /tmp/.vrrstate
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue