diff options
| author | --global <ik.boikov.public@protonmail.com> | 2021-07-18 23:24:42 +0200 |
|---|---|---|
| committer | --global <ik.boikov.public@protonmail.com> | 2021-07-18 23:24:42 +0200 |
| commit | 97149a6f1dc24ccb24de109ff6301818c50a491e (patch) | |
| tree | 46c7786d8ad571ee72831765054601a72eeb0394 /scripts | |
| parent | f31b61bc5590a7e814e030ee25eac5da5f2f20c3 (diff) | |
scrot -> maim, remove mimetypes before install, gif autoplay in nnn preview, alias cleanup
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/.local/bin/lock | 2 | ||||
| -rwxr-xr-x | scripts/.local/bin/remaps | 1 | ||||
| -rwxr-xr-x | scripts/.local/bin/setbg | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/scripts/.local/bin/lock b/scripts/.local/bin/lock index 7cdd54d..5bea750 100755 --- a/scripts/.local/bin/lock +++ b/scripts/.local/bin/lock @@ -6,7 +6,7 @@ tmpbg='/tmp/screen.png' (( $# )) && { icon=$1; } rm "$tmpbg" -scrot "$tmpbg" +maim > "$tmpbg" convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" i3lock -u -i "$tmpbg" diff --git a/scripts/.local/bin/remaps b/scripts/.local/bin/remaps index 4afa47e..87d0951 100755 --- a/scripts/.local/bin/remaps +++ b/scripts/.local/bin/remaps @@ -9,5 +9,6 @@ xset r rate 200 75 xmodmap -e 'keycode 135 = Super_R' # external keyboard Alt_R may be mapped to Multi_Key instead of ISO_Level3_Shift, which breaks French QWERTY layout +#xmodmap -e "keycode 64 = Alt_L" xmodmap -e "keycode 64 = ISO_Level3_Shift" xmodmap -e "keycode 108 = ISO_Level3_Shift" diff --git a/scripts/.local/bin/setbg b/scripts/.local/bin/setbg index 8112bcd..397646d 100755 --- a/scripts/.local/bin/setbg +++ b/scripts/.local/bin/setbg @@ -7,9 +7,10 @@ # If wal is installed, also generates a colorscheme. # Location of link to wallpaper link. -bgloc="${XDG_DATA_HOME:-$HOME/.local/share/}/bg" +bgloc="${XDG_DATA_HOME:-$HOME/.local/share/wallpapers}/bg" trueloc="$(readlink -f "$1")" && + case "$(file --mime-type -b "$trueloc")" in image/* ) ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." ;; inode/directory ) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && notify-send -i "$bgloc" "Random Wallpaper chosen." ;; |
