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
|
|
|
|
|
2018-10-20 08:59:26 +02:00
|
|
|
# Reload sxhkd / Quit bspwm
|
|
|
|
super + {_, alt} + Escape
|
|
|
|
{pkill -USR1 -x sxhkd,bspc quit}
|
2018-10-08 00:31:01 +02:00
|
|
|
|
2018-10-19 23:14:09 +02:00
|
|
|
# Take a screenshot
|
|
|
|
super + p
|
|
|
|
~/.config/sxhkd/screenshot.sh
|
|
|
|
|
|
|
|
# Open a new terminal window
|
|
|
|
super + {_,shift} + Return
|
2018-11-04 21:08:52 +01:00
|
|
|
{termite -e "tmux new-session \; set status",urxvtc -e fish -c "tmux new-session \; set status"}
|
2018-10-19 23:14:09 +02:00
|
|
|
|
2018-11-04 21:08:52 +01:00
|
|
|
# Toggle a dropdown terminal or open a new floating window
|
|
|
|
super + {_,shift} + backslash
|
|
|
|
{~/.config/sxhkd/dropdown.sh,urxvtc -name floating}
|
2018-11-01 20:56:03 +01:00
|
|
|
|
2018-10-20 08:59:26 +02:00
|
|
|
# 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)) || \
|
2018-10-21 17:25:34 +02:00
|
|
|
(xdo show -N "Polybar" && bspc config top_padding $(cat ~/.cache/polybar/bspwm_top_padding))
|
2018-10-20 08:59:26 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2018-10-19 21:05:06 +02:00
|
|
|
# ====================
|
|
|
|
# ======= Node =======
|
|
|
|
# ====================
|
|
|
|
|
2018-02-28 05:04:08 +01:00
|
|
|
# Close the focused window
|
2018-10-19 23:14:09 +02:00
|
|
|
super + {_,shift} + q
|
|
|
|
bspc node -{c,k}
|
2018-02-28 05:04:08 +01:00
|
|
|
|
2018-10-19 23:14:09 +02: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
|
|
|
|
2018-10-19 21:05:06 +02:00
|
|
|
# Switch to the next / previous node (includes monocle layout)
|
2018-10-20 16:16:00 +02:00
|
|
|
super + {_,shift} + n
|
2018-02-28 05:04:08 +01:00
|
|
|
bspc node -f {next,prev}
|
|
|
|
|
2018-10-19 23:14:09 +02:00
|
|
|
# FLAGS: Toggle between node flags
|
2018-10-20 16:16:00 +02:00
|
|
|
super + {x,y}
|
|
|
|
bspc node -g {sticky,private}
|
2018-10-19 21:05:06 +02:00
|
|
|
|
2018-10-19 23:14:09 +02:00
|
|
|
# STATES: Toggle between node states
|
|
|
|
super + {t,r,f,space}
|
|
|
|
bspc node focused -t ~{tiled,pseudo_tiled,fullscreen,floating}
|
2018-10-19 21:05:06 +02:00
|
|
|
|
2018-10-22 03:38:44 +02:00
|
|
|
# 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}
|
|
|
|
|
2018-10-19 21:05:06 +02:00
|
|
|
# =======================
|
|
|
|
# ======= Desktop =======
|
|
|
|
# =======================
|
|
|
|
|
2018-10-20 16:16:00 +02:00
|
|
|
# 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
|
2018-10-19 23:14:09 +02:00
|
|
|
alt + {_, shift} + Tab
|
|
|
|
bspc desktop -f {next,prev}.local
|
2018-02-28 05:04:08 +01:00
|
|
|
|
2018-10-19 21:05:06 +02: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
|
|
|
|
|
2018-10-19 21:05:06 +02:00
|
|
|
# Switch between tiled and monocle desktop layouts
|
2018-10-20 16:16:00 +02:00
|
|
|
super + c
|
2018-10-19 21:05:06 +02:00
|
|
|
bspc desktop -l next
|
2018-02-28 05:04:08 +01:00
|
|
|
|
|
|
|
# vim:ft=sxhkdrc
|