nix-config/.config/sxhkd/sxhkdrc

96 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-02-28 05:04:08 +01:00
# 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",urxvtcd}
# 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
# Get the current node's state
alt + n
SXHKD_NODE=$(bspc query -T -n) && \
notify-send "Current window $(echo $SXHKD_NODE | jq '.client.className') is in a node with state" "$(echo $SXHKD_NODE | jq '.client.state')"
# ====================
# ======= Node =======
# ====================
2018-02-28 05:04:08 +01:00
# Close the focused window
super + {_,shift} + q
bspc node -{c,k}
2018-02-28 05:04:08 +01:00
# Switch to / Swap with the node in the specified direction
super + {_,shift} + {h,j,k,l}
bspc node -{f,s} {west,south,north,east}
2018-02-28 05:04:08 +01:00
# Switch to the next / previous node (includes monocle layout)
super + {_,shift} + n
2018-02-28 05:04:08 +01:00
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}
# =======================
# ======= 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}'
2018-02-28 05:04:08 +01:00
# Move to the next desktop on the current monitor
alt + {_, shift} + Tab
bspc desktop -f {next,prev}.local
2018-02-28 05:04:08 +01:00
# Easily go back and forth between the last desktop used
2018-02-28 05:04:08 +01:00
alt + a
bspc desktop -f last
# Switch between tiled and monocle desktop layouts
super + c
bspc desktop -l next
2018-02-28 05:04:08 +01:00
# =====================
# ===== Preselect =====
# =====================
# Preselect where new nodes go
super + ctrl + {h,j,k,l,space}
bspc node -p {west,south,north,east,cancel}
2018-02-28 05:04:08 +01:00
# Preselect the ratio of new nodes
2018-02-28 05:04:08 +01:00
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# vim:ft=sxhkdrc