diff options
-rw-r--r-- | .config/shell/aliasrc | 2 | ||||
-rwxr-xr-x | .config/sxiv/exec/key-handler | 4 | ||||
-rwxr-xr-x | .scripts/wifi-captive-login | 6 |
3 files changed, 8 insertions, 4 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 3ea8341..ac15b10 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -48,7 +48,7 @@ alias \ neofetch="neofetch --ascii .config/neofetch/arch-ascii.txt" \ ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'\ scr="ffmpeg -f x11grab -i :0.0 out.mp4" \ - ss="maim -D -u --select | tee ~/Pictures/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png" \ + ss="maim -D -u --select | tee ~/pix/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png" \ pas="pulseaudio --start" \ pak="pulseaudio --kill" \ pm="pulsemixer" \ diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 0d25a50..cc36dca 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -6,8 +6,10 @@ do trash-put "$file";; "r") convert -rotate 90 "$file" "$file" ;; + "R") + convert -rotate 270 "$file" "$file" ;; "c") - echo -n "$file" | xclip -selection clipboard ;; + xclip -sel c -t image/png -i $file ;; "s") setbg "$file";; "i") diff --git a/.scripts/wifi-captive-login b/.scripts/wifi-captive-login index 2603009..fdfaf2f 100755 --- a/.scripts/wifi-captive-login +++ b/.scripts/wifi-captive-login @@ -1,3 +1,5 @@ #!/bin/sh -login=$(netstat -nr | sed '3p;d' | cut -d " " -f 10) -st -e librewolf $login +if command -v netstat 1>/dev/null; then + login=$(netstat -nr | sed '3p;d' | cut -d " " -f 10) ; + st -e librewolf $login ; +fi |