summaryrefslogtreecommitdiff
path: root/scripts/Scripts/lc
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-25 13:56:54 +0100
committerJulian T <julian@jtle.dk>2021-02-25 13:56:54 +0100
commite5db995945c867e7933c331524641c6a873a6cd7 (patch)
treefe56c29601c6869865335f15493d2f58c80eacaf /scripts/Scripts/lc
parent99ec3749b0683999b5dc2dce783d177dec7823ce (diff)
Changes to i3 and scripts around it
Diffstat (limited to 'scripts/Scripts/lc')
-rwxr-xr-xscripts/Scripts/lc11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/Scripts/lc b/scripts/Scripts/lc
index cdbe7a9..b423c24 100755
--- a/scripts/Scripts/lc
+++ b/scripts/Scripts/lc
@@ -3,7 +3,7 @@
LOGFILE=.lc.log
DMENU="rofi -dmenu"
-Commands="s suspend goto common pass set-keyboard poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync"
+Commands="s suspend screen goto common pass set-keyboard poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync random"
handle_stuff() {
if [ "$1" = "--dmenu" ]; then
@@ -52,6 +52,11 @@ handle_stuff() {
$HOME/Scripts/setwall -A
fi
+ if [ "$1" = "random" ]; then
+ stuff=$(python -c "print('\n'.join((str(i) for i in $(rofi -dmenu))))")
+ echo $stuff | tr " " "\n" | rofi -dmenu
+ fi
+
# Launch
if [ "$1" = "s" ]; then
$HOME/Scripts/guiworkspace.sh
@@ -78,6 +83,10 @@ handle_stuff() {
caja $(./Scripts/goto -d $(cat .bookmarks | awk -F ' ' '{print $1}' | $DMENU))
fi
+ if [ "$1" = "screen" ]; then
+ ~/Scripts/screentool
+ fi
+
# Calc
if [ "$(echo $1 | head -c 1)" = "=" ]; then
calc="$(echo $1 | cut -c 2-)"