summaryrefslogtreecommitdiff
path: root/nsxiv/exec/key-handler
blob: e653dd68d5fc9e7a833cf7c9950be05712be67d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
while read file; do
  case "$1" in
    "w")
      case "$file" in
        *.png)
          cp "$file" ~/Pictures/background.png
          ;;
        *)
          magick "$file" ~/Pictures/background.png
          ;;
	    esac
      dinitctl restart hyprpaper
      ;;
  esac
done