From 72733caa7b5eac768b2b31002b4ddb7f2b95542b Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Sat, 8 Jun 2019 08:51:21 +0200 Subject: [PATCH] Fix. --- setsysmode | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setsysmode b/setsysmode index e5272fc..231fd02 100755 --- a/setsysmode +++ b/setsysmode @@ -68,15 +68,15 @@ def notify_tablet_mode(): def toggle_mode(notify): """Toggles between laptop and tablet mode.""" - if systemctl('status', LAPTOP_MODE_SERVICE): - systemctl('stop', LAPTOP_MODE_SERVICE, root=True) - systemctl('start', TABLET_MODE_SERVICE, root=True) + if systemctl('status', TABLET_MODE_SERVICE): + systemctl('stop', TABLET_MODE_SERVICE, root=True) + systemctl('start', LAPTOP_MODE_SERVICE, root=True) if notify: notify_tablet_mode() else: - systemctl('stop', TABLET_MODE_SERVICE, root=True) - systemctl('start', LAPTOP_MODE_SERVICE, root=True) + systemctl('stop', LAPTOP_MODE_SERVICE, root=True) + systemctl('start', TABLET_MODE_SERVICE, root=True) if notify: notify_laptop_mode()