diff options
Diffstat (limited to 'scripts/Scripts/lc')
-rwxr-xr-x | scripts/Scripts/lc | 11 |
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-)" |