Skip to content

Commit

Permalink
added helpful notifications on screen rotation option change
Browse files Browse the repository at this point in the history
  • Loading branch information
Quoteme committed Aug 29, 2022
1 parent 7fb7a4e commit fedebee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toggleautoscreenrotation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ AUTOROTATE=$( cat ~/.config/autoscreenrotate )

if ($AUTOROTATE = "true")
then
notify-send "Autoscreenrotate" "Disabled"
echo "false" > ~/.config/autoscreenrotate
else
notify-send "Autoscreenrotate" "Enabled"
echo "true" > ~/.config/autoscreenrotate
fi
2 changes: 2 additions & 0 deletions toggledisableinput.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ AUTOROTATE=$( cat ~/.config/disableinput )

if ($AUTOROTATE = "true")
then
notify-send "Input" "Input will now be disabled on rotation"
echo "false" > ~/.config/disableinput
else
notify-send "Input" "Input will now be left enabled on rotation"
echo "true" > ~/.config/disableinput
fi

0 comments on commit fedebee

Please sign in to comment.