aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/sxiv/exec/key-handler
blob: b63fbd6547e2e70930116f09195cf92eb04e4bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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