diff options
-rwxr-xr-x | scripts/Scripts/lc | 7 | ||||
-rwxr-xr-x | scripts/Scripts/setwall | 10 | ||||
-rwxr-xr-x | xinit/Scripts/lock.sh | 2 |
3 files changed, 15 insertions, 4 deletions
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 diff --git a/scripts/Scripts/setwall b/scripts/Scripts/setwall index f7e3a0c..25bcfb0 100755 --- a/scripts/Scripts/setwall +++ b/scripts/Scripts/setwall @@ -38,16 +38,22 @@ function setwalls() { done } +function runsetwall() { + feh --bg-fill $1 + # wal --saturate 0.9 -i $1 +} + function applywall() { echo applying wallpaper $1 rm $WALLLINK ln -s $(pwd)/$1 $WALLLINK - feh --bg-fill $1 + runsetwall $1 } function reapply() { echo reapplying linked wallpaper - feh --bg-fill $WALLLINK + # feh --bg-fill $WALLLINK + runsetwall $WALLLINK } function help() { diff --git a/xinit/Scripts/lock.sh b/xinit/Scripts/lock.sh index 1e4efed..49cc197 100755 --- a/xinit/Scripts/lock.sh +++ b/xinit/Scripts/lock.sh @@ -7,5 +7,5 @@ size=$(identify -format "%[fx:w]x%[fx:h]" "$LOCKFILE") convert $LOCKFILE -scale 70 -sample $size\! -quality 11 $LOCKFILE -i3lock -i $LOCKFILE +# i3lock -i $LOCKFILE |