chuwi-minibook-tablet-mode/toggle-tablet-mode

11 lines
294 B
Text
Raw Normal View History

2019-03-23 14:11:21 +01:00
#! /bin/bash
if ( systemctl status tablet-mode.service ); then
sudo systemctl stop tablet-mode.service
notify-send "Laptop mode" "The system is now in laptop mode."
else
sudo systemctl start tablet-mode.service
notify-send "Tablet mode" "The system is now in tablet mode."
fi