Adding keybindings for use with bspwm.

This commit is contained in:
Derek Taylor
2023-03-02 20:48:57 -06:00
parent 9aa33af9c2
commit 81bd299370
+72 -55
View File
@@ -1,3 +1,4 @@
# /usr/bin/env bash
# ____ _____ # ____ _____
# | _ \_ _| Derek Taylor (DistroTube) # | _ \_ _| Derek Taylor (DistroTube)
# | | | || | http://www.youtube.com/c/DistroTube # | | | || | http://www.youtube.com/c/DistroTube
@@ -8,15 +9,21 @@
# https://github.com/baskerville/sxhkd # https://github.com/baskerville/sxhkd
# https://github.com/baskerville/bspwm # https://github.com/baskerville/bspwm
### WM INDEPENDENT KEYBINDINGS ###
# WM INDEPENDENT KEYBINDINGS
# make sxhkd reload its configuration files: # make sxhkd reload its configuration files:
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd
### BSPWM HOTKEYS ###
# BSPWM HOTKEYS # terminal emulator
super + Return
alacritty
# run program launcher
super + shift + Return
dm-run
# quit/restart bspwm # quit/restart bspwm
super + shift + {q,r} super + shift + {q,r}
@@ -26,8 +33,12 @@ super + shift + {q,r}
super + shift + c super + shift + c
bspc node -c bspc node -c
# terminal emulator
super + slash
dtos-help
# alternate between the tiled and monocle layout # alternate between the tiled and monocle layout
super + m super + space
bspc desktop -l next bspc desktop -l next
# send the newest marked node to the newest preselected node # send the newest marked node to the newest preselected node
@@ -35,7 +46,7 @@ super + y
bspc node newest.marked.local -n newest.!automatic.local bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest node # swap the current node and the biggest node
super + g super + m
bspc node -s biggest bspc node -s biggest
@@ -57,7 +68,7 @@ super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east} bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump # focus the node for the given path jump
super + {p,b,comma,period} super + {shift + p, shift + b,comma,period}
bspc node -f @{parent,brother,first,second} bspc node -f @{parent,brother,first,second}
# focus the next/previous node in the current desktop # focus the next/previous node in the current desktop
@@ -117,54 +128,60 @@ super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0} bspc node -v {-20 0,0 20,0 -20,20 0}
# APPLICATION KEYBINDINGS (Super + Alt + Key) # launch qutebrowser
super + b
qutebrowser "https://distro.tube"
# terminal emulator # dmscripts (SUPER + p followed by another key)
super + Return super + p; h
st dm-hub
# launch ncpamixer super + p; {a}
super + alt + a dm-sounds
st -e ncpamixer super + p; {b}
# launch surf browser dm-setbg
super + alt + b super + p; {c}
surf www.youtube.com/c/DistroTube dtos-colorscheme
# launch cmus super + p; {shift + c}
super + alt + c dm-colpick
st -e cmus super + p; {e}
# launch lynx web browser dm-confedit
super + alt + l super + p; {i}
st -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys gopher://distro.tube dm-maim
# launch irssi chat client super + p; {k}
super + alt + i dm-kill
st -e irssi super + p; {m}
# launch joplin dm-man
super + alt + j super + p; {n}
st -e joplin dm-note
# launch toot cli super + p; {o}
super + alt + m dm-bookman
st -e toot curses super + p; p
# launch newsboat feed reeder passmenu -p Pass:
super + alt + n super + p; {q}
st -e newsboat dm-logout
# launch pianobar super + p; {r}
super + alt + p dm-radio
st -e pianobar super + p; {s}
# launch rtv dm-websearch
super + alt + r super + p; {t}
st -e rtv dm-translate}
# launch vifm file manager
super + alt + v
st -e ./.config/vifm/scripts/vifmrun
# launch wopr
super + alt + w
st -e wopr report.xml
# launch youtube viewer
super + alt + y
st -e youtube-viewer
# emacs (SUPER + e followed by another key)
# DMENU SCRIPTS (Alt+Ctrl+Key) super + e; e
emacsclient -c -a 'emacs'
# run program launcher super + e; a
super + shift + Return emacsclient -c -a 'emacs' --eval '(emms)' --eval '(emms-play-directory-tree \"~/Music/\")'
dm-run super + e; b
emacsclient -c -a 'emacs' --eval '(ibuffer)'
super + e; d
emacsclient -c -a 'emacs' --eval '(dired nil)'
super + e; i
emacsclient -c -a 'emacs' --eval '(erc)'
super + e; n
emacsclient -c -a 'emacs' --eval '(elfeed)'
super + e; s
emacsclient -c -a 'emacs' --eval '(eshell)'
super + e; v
emacsclient -c -a 'emacs' --eval '(+vterm/here nil)'
super + e; w
emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(eww "distro.tube"))'