aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-rwxr-xr-xdotfiles/.config/sxiv/exec/key-handler21
-rwxr-xr-xdotfiles/.local/bin/setbglsimple2
2 files changed, 22 insertions, 1 deletions
diff --git a/dotfiles/.config/sxiv/exec/key-handler b/dotfiles/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..b63fbd6
--- /dev/null
+++ b/dotfiles/.config/sxiv/exec/key-handler
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+while read file; do
+ case "$1" in
+ "C-a")
+ setbg "$file"
+ exit ;;
+ "C-s")
+ setbglblur "$file"
+ exit ;;
+ "C-d")
+ setbglsimple "$file"
+ exit ;;
+ "C-c")
+ wl-copy < "$file"
+ exit ;;
+ "C-f")
+ wl-copy "$file"
+ exit ;;
+ esac
+done
diff --git a/dotfiles/.local/bin/setbglsimple b/dotfiles/.local/bin/setbglsimple
index dacd9c8..28869cd 100755
--- a/dotfiles/.local/bin/setbglsimple
+++ b/dotfiles/.local/bin/setbglsimple
@@ -3,7 +3,7 @@
vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
scale=$(swaymsg -t get_outputs | jq ".[0].scale")
-barheight=$(echo ""$scale" * 28" | bc -l)
+barheight=$(echo ""$scale" * 27" | bc -l)
convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png \