aboutsummaryrefslogtreecommitdiff
path: root/SXHkD/.config/sxhkd/sxhkdrc
blob: e50e2e4bcd2284caf955208dbe70e2afe56e39bb (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
# Launchers
Print
  scrot -s;

super + Escape
  notify-send "Reloaded sxhkd"; \
  killall sxhkd; sxhkd

super + shift + Escape
  notify-send "Reloading xprofile"; \
  sh .xprofile; 

super + Return
  notify-send "Launching terminal"; \
  $TERMINAL 

super + shift + Return
  notify-send "Launching Dev Terminal"; \
  $TERMINAL -c 'Dev'

super + a
  dmenu_run

super + e
    $HOME/.emacs_anywhere/bin/run

super + s
  notify-send "Launching qutebrowser"; \
  qutebrowser

super + w; w
  notify-send "Launching Emacs"; \
  emacsclient -c -s MAIN -a=emacs;

hyper + w; s
  notify-send "(Re)starting emacs server"; \
  eserver restart;

hyper + w; d
  notify-send "Launching Dired"; \
  emacsclient -c -s MAIN -a=emacs --eval '(dired "~")';

super + ctrl + l
  $HOME/.local/scripts/lock

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

super + m
  $HOME/.local/scripts/playlist_choice

super + p
  passmenu

super + F12
  systemctl suspend

# Music and volume
F{6,7,8}
  mpc -q {prev,toggle,next}; \
  notify-send "MPD: Track $(mpc --format '%title%' | head -1)";

XF86Audio{Prev,Next}
  mpc -q {prev,next}; \
  notify-send "MPD: Track $(mpc --format '%title%' | head -1)";

{_,super + }F{9,10}
  kill -44 $(pidof dwmblocks); \
  {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%;

{_,super + }XF86Audio{Lower,Raise}Volume
  kill -44 $(pidof dwmblocks); \
  {pactl set-sink-volume 0,$HOME/.local/scripts/mpc_volume} {-,+}5%;

XF86MonBrightness{Down,Up}
  xbacklight {-,+}15; \
  notify-send "Brightness: $(xbacklight)";

F{3,4}
  xbacklight {-,+}15; \
  notify-send "Brightness: $(xbacklight)";

# BSPWM
# super + {_, shift + } {h,j,k,l}
#   bspc node -{f,s} {west, south, north, east}

# super + {_,shift + } q
#   bspc node -{c,k};

# super + alt + {q,r}
#   bspc {quit,wm -r}

# super + c
#   bspc node -s biggest

# super + shift + {t,f}
#   notify-send "Switched window state"; \
#   bspc node -t {tiled,floating}

# super + f
#   bspc node -t ~fullscreen

# super + {_,shift + }{1,2,3,4}
#   bspc {desktop -f,node -d} {Development,Browser,Media,4}

# hyper + {_,shift + }{1,2,3,4}
#   bspc {desktop -f,node -d} {Development,Browser,Media,4}

# super + {comma,period}
#   bspc node -z {left -20 0,right 20 0};