Browse code

Add dotfiles

Robert Cranston authored on 01/02/2022 16:37:46
Showing 2 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+## XF86
2
+{_,shift+}XF86MonBrightness{Down,Up}
3
+  brightnessctl set {5%-,1%,5%+,100%}
4
+{_,shift+}XF86Audio{Lower,Raise}Volume
5
+  pactl set-sink-volume @DEFAULT_SINK@ {-5%,0%,+5%,100%}
6
+XF86Audio{_,Mic}Mute
7
+  port={sink,source}; \
8
+  PORT=$(echo $port | tr '[:lower:]' '[:upper:]'); \
9
+  pactl set-${port}-mute @DEFAULT_${PORT}@ toggle
10
+
11
+## Applications
12
+ctrl+alt+{t,e,f}
13
+  {$TERMINAL,xdg-open "$HOME",$BROWSER}
14
+ctrl+alt+{s,v,x,a,n,m,o}
15
+  $TERMINAL -e "$SHELL -i -c {$SHELL,$EDITOR,tmux,pulsemixer,nmtui,ncmpcpp,htop}"
16
+
17
+## Background
18
+ctrl+alt+{b,g}
19
+  background {_,--video}
20
+
21
+## mpc
22
+ctrl+alt+p
23
+  mpc -q toggle
24
+ctrl+alt+{h,l}
25
+  mpc -q {prev,next}
26
+ctrl+alt+{j,k}
27
+  mpc -q volume {-,+}5
28
+
29
+## systemctl
30
+ctrl+alt+shift+{p,r,s,h}
31
+  systemctl {poweroff,reboot,suspend,hibernate}
32
+ctrl+alt+shift+{t,l}
33
+  loginctl {terminate,lock}-session $XDG_SESSION_ID
0 34
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+[ "$(command -v sxhkd)" ] || return 0
2
+
3
+sxhkd &