Xbox controllers are cool, and the ton of buttons allow for a lot of customisation and ease of use. Hence I created an xboxdrv configuration which has the standard mouse capabilities as well as the ability to access an on screen keyboard and some basic media manipulation capabilities. This is mostly for when I want to sit back and just CONSOOM content rather than do actual work (hence trying to remove the keyboard).
130 lines
2.6 KiB
Plaintext
130 lines
2.6 KiB
Plaintext
# Launchers
|
|
super + Escape
|
|
notify-send -u low "Reloaded sxhkd"; \
|
|
killall sxhkd; sxhkd
|
|
|
|
super + shift + Escape
|
|
notify-send -u low "Reloading xprofile"; \
|
|
sh .xprofile;
|
|
|
|
super + Return
|
|
notify-send -u low "Launching terminal"; \
|
|
$TERMINAL
|
|
|
|
super + shift + Return
|
|
notify-send -u low "Launching Dev Terminal"; \
|
|
$TERMINAL -c 'Dev'
|
|
|
|
super + a
|
|
dmenu_run
|
|
|
|
super + e
|
|
$HOME/.local/scripts/emacs_curl;
|
|
|
|
super + E
|
|
$HOME/.emacs_anywhere/bin/run
|
|
|
|
super + s
|
|
notify-send -u low "Launching browser"; \
|
|
xdg-open "https://html.duckduckgo.com"
|
|
|
|
super + shift + s
|
|
scrot -s; \
|
|
notify-send -u low "Took a screenshot";
|
|
|
|
super + z
|
|
notify-send -u low "Launching zathura"; \
|
|
zathura
|
|
|
|
super + w
|
|
$HOME/.local/scripts/eselect;
|
|
|
|
super + ctrl + l
|
|
$HOME/.local/scripts/lock
|
|
|
|
super + ctrl + d
|
|
notify-send -u low "Changing background"; \
|
|
$HOME/.local/scripts/background;
|
|
|
|
super + p
|
|
passmenu -f -i
|
|
|
|
super + F12
|
|
systemctl suspend
|
|
|
|
super + Home
|
|
onboard
|
|
|
|
# Music and volume
|
|
super + F{6,7,8}
|
|
playerctl --player=spotify {previous,play-pause,next};
|
|
|
|
XF86Audio{Prev,Play,Next}
|
|
playerctl --player=spotify {previous,play-pause,next};
|
|
|
|
XF86Audio{Lower,Raise}Volume
|
|
kill -43 $(pidof dwmblocks); \
|
|
{pamixer -d,pamixer -i} 5 --allow-boost;
|
|
|
|
super + F{9,10}
|
|
kill -43 $(pidof dwmblocks); \
|
|
{pamixer -d,pamixer -i} 5 --allow-boost;
|
|
|
|
XF86AudioMute
|
|
kill -43 $(pidof dwmblocks); \
|
|
pamixer -t;
|
|
|
|
Pause
|
|
playerctl --player=spotify play-pause
|
|
|
|
Print
|
|
conn=$(nmcli | grep "connected to" | sed 's/.*connected to //g' | head -1); \
|
|
nmcli c down "$conn"; \
|
|
notify-send -u low "Turning off wifi"; \
|
|
nmcli c up "$conn"; \
|
|
notify-send -u low "Reset " $conn;
|
|
|
|
Scroll_Lock
|
|
conn=$(nmcli | grep "connected to" | sed 's/.*connected to //g' | head -1); \
|
|
nmcli c down "$conn"; \
|
|
notify-send -u low "Turning off wifi"; \
|
|
nmcli c up "$conn"; \
|
|
notify-send -u low "Reset " $conn;
|
|
|
|
XF86MonBrightness{Down,Up}
|
|
light -{U,A} 15; \
|
|
notify-send -u low "Brightness: $(light)";
|
|
|
|
super + F{3,4}
|
|
light -{U,A} 10; \
|
|
notify-send -u low "Brightness: $(light)";
|
|
|
|
# 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 -u low "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};
|