nix-config/bspwm/.config/sxhkd/sxhkdrc
Donovan Glover abe2fab50d
bspwm: Use tmux by default in all cases
Since tmux is only a problem when using neofetch with the w3m image
backend, I have instead added a new keybind to handle this use case,
which floats the terminal by default as well.
2018-11-04 15:20:48 -05:00

91 lines
2.5 KiB
Plaintext

# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
# Reload sxhkd / Quit bspwm
super + {_, alt} + Escape
{pkill -USR1 -x sxhkd,bspc quit}
# Take a screenshot
super + p
~/.config/sxhkd/screenshot.sh
# Open a new terminal window
super + {_,shift} + Return
{termite -e "tmux new-session \; set status",urxvtc -e fish -c "tmux new-session \; set status"}
# Toggle a dropdown terminal or open a new floating window
super + {_,shift} + backslash
{~/.config/sxhkd/dropdown.sh,urxvtc -name floating}
# toggle polybar: top_padding depends on the height you set in polybar/config
super + o
(xdotool search --class --onlyvisible "Polybar" && \
(xdo hide -N "Polybar" && bspc config top_padding 0)) || \
(xdo show -N "Polybar" && bspc config top_padding $(cat ~/.cache/polybar/bspwm_top_padding))
# Change the wal color scheme
alt + m
wal -o ~/.config/wal/done.sh -i ~/Pictures/Wallpapers
# Show rofi drun / window / calc
alt + {z,space,backslash}
env XDG_CURRENT_DESKTOP="KDE" QT_FONT_DPI="192" rofi -show {drun,window,calc -modi calc -no-show-match -no-sort}
# Show rofi-pass
alt + slash
rofi-pass
# ====================
# ======= Node =======
# ====================
# Close the focused window
super + {_,shift} + q
bspc node -{c,k}
# Switch to / Swap with the node in the specified direction
super + {_,shift} + {h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# Switch to the next / previous node (includes monocle layout)
super + {_,shift} + n
bspc node -f {next,prev}
# FLAGS: Toggle between node flags
super + {x,y}
bspc node -g {sticky,private}
# STATES: Toggle between node states
super + {t,r,f,space}
bspc node focused -t ~{tiled,pseudo_tiled,fullscreen,floating}
# PRESELECT: The direction to create a new node
super + ctrl + {h,j,k,l,space}
bspc node -p {west,south,north,east,cancel}
# RATIO: The size of a new node
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# =======================
# ======= Desktop =======
# =======================
# Focus a certain desktop / Send a node to a certain desktop
super + {_,shift} + {1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
# Move to the next desktop on the current monitor
alt + {_, shift} + Tab
bspc desktop -f {next,prev}.local
# Easily go back and forth between the last desktop used
alt + a
bspc desktop -f last
# Switch between tiled and monocle desktop layouts
super + c
bspc desktop -l next
# vim:ft=sxhkdrc