summaryrefslogtreecommitdiff
path: root/nsxiv/exec/key-handler
blob: 9e78004f0bcf40d8fcf6901e1f8cad4ccd771365 (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
          ;;
        *)
          convert "$file" ~/Pictures/background.png
          ;;
	    esac
      t -r hyprpaper
      ;;
  esac
done