aboutsummaryrefslogtreecommitdiff
path: root/SXHkD/.config/sxhkd/sxhkdrc
blob: 9217178e83c4e7f0c69ada379bbfc32d7c87da9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Launchers
super + Return
  notify-send -u low "Launching terminal"; \
  $TERMINAL

super + a
  dmenu_run

super + e
  $HOME/.local/scripts/eselect;

super + s
  notify-send -u low "Launching browser"; \
  xdg-open "https://duckduckgo.com";

super + C
  dunstctl close;

super + semicolon
  $HOME/.local/scripts/localstream -f;

super + colon
  $HOME/.local/scripts/localstream -p;

super + apostrophe
  $HOME/.local/scripts/statdisplay;

super + equal
  $HOME/.local/scripts/act_display "--auto";

super + minus
  $HOME/.local/scripts/act_display "--off";

super + numbersign
  $HOME/.local/scripts/bt_connect;

super + z
  notify-send -u low "Launching zathura"; \
  zathura

# lock and power

super + alt + l
  $HOME/.local/scripts/lock;

super + alt + L
  xtrlock;

super + ctrl + alt + l
  i3lock -c 000000;

super + ctrl + m
  $HOME/.local/scripts/mail_fetch

super + p
  passmenu -f -i

super + F11
  systemctl hibernate

super + F12
  systemctl suspend

# Profiles
super + Escape
  notify-send -u low "Reloading xprofile"; \
  sh .xprofile;

super + shift + Escape
  notify-send -u low "Reloaded sxhkd"; \
  killall sxhkd; sxhkd -r "$XDG_CACHE_HOME/sxhkd_out"

# Media
super + F{6,7,8}
  playerctl {previous,play-pause,next};

XF86Audio{Prev,Play,Next}
  playerctl {previous,play-pause,next};

XF86Audio{Lower,Raise}Volume
  kill -42  $(pidof dwmblocks); \
  {pamixer -d,pamixer -i} 5 --allow-boost;

shift + XF86Audio{Lower,Raise}Volume
  kill -42  $(pidof dwmblocks); \
  {pamixer -d,pamixer -i} 1 --allow-boost;

super + F{9,10}
  kill -42  $(pidof dwmblocks); \
  {pamixer -d,pamixer -i} 1 --allow-boost;

XF86AudioMute
  kill -42 $(pidof dwmblocks); \
  pamixer -t;

Pause
  playerctl --player=spotify play-pause

Print
  $HOME/.local/scripts/screenshot;

super + alt + s
  $HOME/.local/scripts/screenshot;

super + ctrl + d
  notify-send -u low "Changing background"; \
  $HOME/.local/scripts/background;

super + ctrl + D
  notify-send -u low "Changing background"; \
  $HOME/.local/scripts/black-bg;

# Brightness
XF86MonBrightness{Down,Up}
  xbacklight -{dec,inc} 5; \
  kill -37 $(pidof dwmblocks);

shift + XF86MonBrightness{Down,Up}
  xbacklight -{dec,inc} 1; \
  kill -37 $(pidof dwmblocks);

super + F{3,4}
  xbacklight -{dec,inc} 5; \
  kill -37 $(pidof dwmblocks);

super + shift + F{3,4}
  xbacklight -{dec,inc} 1; \
  kill -37 $(pidof dwmblocks);

;; Local Variables:
;; mode: conf
;; End: