From ae5cc1d7c86cec366d87a9b6e76de10f8edc7499 Mon Sep 17 00:00:00 2001
From: Julian T <julian@jtle.dk>
Date: Thu, 10 Feb 2022 22:30:16 +0100
Subject: Change some scripts

---
 scripts/Scripts/lc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'scripts/Scripts/lc')

diff --git a/scripts/Scripts/lc b/scripts/Scripts/lc
index 6786a9a..f9c1031 100755
--- a/scripts/Scripts/lc
+++ b/scripts/Scripts/lc
@@ -3,7 +3,7 @@
 LOGFILE=.lc.log
 DMENU="rofi -dmenu"
 
-Commands="s suspend screen goto common bwpass remember set-keyboard poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync random"
+Commands="s suspend screen goto common bwpass remember set-keyboard rotate poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync random"
 
 handle_stuff() {
 	if [ "$1" = "--dmenu" ]; then
@@ -64,6 +64,11 @@ handle_stuff() {
         feh /tmp/rem.png
     fi
 
+    if [ "$1" = "rotate" ]; then
+        dir=$(echo -e "left\nright\ninvert\nnormal" | $DMENU -i -p "orientation")
+        $HOME/Scripts/xrotate $dir
+    fi
+
 # Launch
     if [ "$1" = "s" ]; then
         $HOME/Scripts/guiworkspace.sh
-- 
cgit v1.2.3