summaryrefslogtreecommitdiff
path: root/nsxiv/exec/key-handler
blob: 53099e43d06dccb51d75b5de2ea3d3d274406053 (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
      t -r hyprpaper
      ;;
  esac
done