Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # wm independent hotkeys
- #
- # control + t; {}
- # {qtile cmd-obj -o group 1 -f focus_back}
- # control + shift + p
- # flameshot gui
- control + t; {Return, space, control + e}
- {kitty, rofi -show drun -font "udev gothic 20", xdo activate -n emacs }
- # terminal emulator
- super + Return
- xdo activate -n emacs && emacsclient --eval '(my/switch-eshell)'
- # kitty
- # program launcher
- # super + @space
- # dmenu_run
- # make sxhkd reload its configuration files:
- super + Escape
- pkill -USR1 -x sxhkd
- #
- # bspwm hotkeys
- #
- # quit/restart bspwm
- super + alt + {q,r}
- bspc {quit,wm -r}
- # close and kill
- # super + {_,shift + }w
- # bspc node -{c,k}
- control + t; {_,shift + } k
- bspc node -{c,k}
- # alternate between the tiled and monocle layout
- # super + m
- # bspc desktop -l next
- control + t; m
- ~/.config/bspwm/bin/bspwm-monacle
- # bspc desktop -l next && bspc config -d I top_padding 0
- # bspc desktop -l {next}
- control + t; s
- flameshot gui
- control + t; control + e
- xdo activate -n emacs
- # send the newest marked node to the newest preselected node
- super + y
- bspc node newest.marked.local -n newest.!automatic.local
- # swap the current node and the biggest window
- super + g
- bspc node -s biggest.window
- #
- # state/flags
- #
- # set the window state
- # super + {t,shift + t,s,f}
- # bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
- # control + t + u was totally albitrary :)
- control + t; {t,shift + t,u,f}
- bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
- # set the node flags
- super + ctrl + {m,x,y,z}
- bspc node -g {marked,locked,sticky,private}
- #
- # focus/swap
- #
- # focus the node in the given direction
- super + {_,shift + }{h,j,k,l}
- bspc node -{f,s} {west,south,north,east}
- # focus the node for the given path jump
- # super + {p,b,comma,period}
- # bspc node -f @{parent,brother,first,second}
- # focus the next/previous window in the current desktop
- super + {_,shift + }c
- bspc node -f {next,prev}.local.!hidden.window
- # WAIT: handle {prev}
- control + t; {control + t}
- bspc node -f {next}.local.!hidden.window
- # focus the next/previous desktop in the current monitor
- super + bracket{left,right}
- bspc desktop -f {prev,next}.local
- # focus the last node/desktop
- super + {grave,Tab}
- bspc {node,desktop} -f last
- control + t; {control + t, control + s}
- bspc {node,desktop} -f last
- # focus the older or newer node in the focus history
- # super + {o,i}
- # bspc wm -h off; \
- # bspc node {older,newer} -f; \
- # bspc wm -h on
- control + t; {o,i}
- bspc wm -h off; \
- bspc node {older,newer} -f; \
- bspc wm -h on
- # focus or send to the given desktop
- super + {_,shift + }{1-9,0}
- bspc {desktop -f,node -d} '^{1-9,10}'
- #
- # preselect
- #
- # preselect the direction
- super + ctrl + {h,j,k,l}
- bspc node -p {west,south,north,east}
- # preselect the ratio
- super + ctrl + {1-9}
- bspc node -o 0.{1-9}
- # cancel the preselection for the focused node
- # super + ctrl + space
- # bspc node -p cancel
- # cancel the preselection for the focused desktop
- super + ctrl + shift + space
- bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
- #
- # move/resize
- #
- # expand a window by moving one of its side outward
- super + alt + {h,j,k,l}
- bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
- # contract a window by moving one of its side inward
- super + alt + shift + {h,j,k,l}
- bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
- # move a floating window
- super + {Left,Down,Up,Right}
- bspc node -v {-20 0,0 20,0 -20,20 0}
- # super + shift + {comma,period}
- # light {-U,-A} {2,2}
- # super + {semicolon,colon}
- # playerctl {next,previous}
- # Speaker/output volume. Requires `amixer` and dedicated keys.
- XF86Audio{Mute,LowerVolume,RaiseVolume}
- amixer set Master {toggle,5%-,5%+}
- # (define-key *top-map* (kbd "XF86AudioMute") "volume-toggle-mute")
- # https://github.com/baskerville/sxhkd/issues/237
- mod3 + n
- xdo activate -n emacs && emacsclient --eval '(consult-notes)'
- mod3 + d
- xdo activate -n emacs && emacsclient --eval '(consult-dir)'
- mod3 + a
- xdo activate -n emacs && emacsclient --eval '(org-agenda nil "a")'
- mod3 + t
- xdo activate -n emacs && emacsclient --eval '(find-file today-journal)'
- super + ctrl + l
- sleep 1 && xset dpms force off
- # l
- # mod3; n
- # xdo activate -n emacs && emacsclient --eval '(my-consult-notes)'
- # (define-key *top-map* (kbd "C-s-l") "exec sleep 1 && xset dpms force off")
- # xdo activate -n emacs && emacsclient --eval '(call-interactively 'kill-ring-save)'
- mod3 + c
- orgtrans
- # && xdo activate -n emacs
- mod3 + s
- ss.sh
- control + t; c
- colorpicker --short --one-shot --preview | xclip -selection clipboard
- # emacsclient --eval '(car kill-ring)'
- # emacsclient --eval '(insert "mmmmm")'
- mod3 + 1
- xdo activate -n Navigator && sleep 0.1 &&xdotool key alt+1
- # xdo xdotool key alt+1
- # xdo activate -n Navigator && xdotool key control+o
- # ~/.dotfiles/.config/bspwm/bin/firefox-focus-tab 2
- mod3 + g
- xdo activate -n Navigator
- mod3 + a
- xdo activate -n emacs && emacsclient --eval '(org-agenda nil "a")'
- # mod3 + u
- # capture_firefox.sh
- # mod3 + t
- # control + x; control + f
- # xdo activate -n emacs && emacsclient --eval '(my/switch-eshell)'
- # Control the laptop's screen brightness (requires `xbacklight`).
- XF86MonBrightness{Down,Up}
- xbacklight {-dec 2,-inc 2}
- # control + t; control + c
- # orgtrans
- # toggle_osd_level;
- # emacsclient --eval '(with-current-buffer (window-buffer) (insert-custom-heading))'
- control + t; control + c
- ~/.config/bin/orgtrans_firefox
- # sleep 0.1; xdotool key --clearmodifiers Control+c; clipboard_content=$(xclip -selection clipboard -o);emacsclient --eval "(with-current-buffer (window-buffer) (firefox-custom-heading \"$clipboard_content\"))";xdo activate -n emacs
- # sleep 1 && xdo activate -n emacs && toggle_osd_level
- # toggle_osd_level && sleep 0.1 && xdo activate -n emacs
- # xdo activate -n emacs
- # sleep 0.1; xdotool key --clearmodifiers v && emacsclient --eval '(with-current-buffer (window-buffer) (insert-custom-heading))' && xdotool key --clearmodifiers v
- # xdo activate -n Navigator
- # emacsclient --eval '(my-test)'
- control + t; control + n
- sleep 1 && xset dpms force off
- # xdo activate -n mpv
- # alt + Tab;
- # bspc node -f {next}.local.!hidden.window
- # bspc node --focus next.local
- # bspc desktop last -f
- # bspc node -f last
- ctrl + alt + l
- sleep 1 && xset dpms force off
- super + q
- ~/check_emacs_window.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement