From 2af72a066cde9168f92634fba96af447427bc131 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 21 Oct 2018 21:38:44 -0400 Subject: [PATCH] sxhkd: Clean up config I don't need to query the current node's state anymore since I now understand the differences between each node state and desktop layout in bspwm. --- .config/sxhkd/sxhkdrc | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index cb030762..6367776d 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -31,11 +31,6 @@ alt + {z,space,backslash} 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 ======= # ==================== @@ -60,6 +55,14 @@ super + {x,y} 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 ======= # ======================= @@ -80,16 +83,4 @@ alt + a super + c bspc desktop -l next -# ===================== -# ===== Preselect ===== -# ===================== - -# Preselect where new nodes go -super + ctrl + {h,j,k,l,space} - bspc node -p {west,south,north,east,cancel} - -# Preselect the ratio of new nodes -super + ctrl + {1-9} - bspc node -o 0.{1-9} - # vim:ft=sxhkdrc