From e5db995945c867e7933c331524641c6a873a6cd7 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 25 Feb 2021 13:56:54 +0100 Subject: Changes to i3 and scripts around it --- scripts/Scripts/lc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts/Scripts/lc') 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-)" -- cgit v1.2.3