hlfw.ca

hwwm

Download patch

ref: b366a31271922de7f50da8b7f379414d0564f80f
parent: 63d2fb74fe4bc2f64349801eb5f682305dc1e2e8
author: Halfwit <michaelmisch1985@gmail.com>
date: Wed Jun 28 05:07:41 PDT 2017

Adding a bit more documentation

Signed-off-by: Halfwit <michaelmisch1985@gmail.com>

--- a/wshuf
+++ b/wshuf
@@ -2,6 +2,7 @@
 # Requires https://github.com/wmutils
 #          https://github.com/halfwit/wmgroup
 #          https://github.com/halfwit/watom
+#          https://github.com/halfwit/binpack	
 
 # directory of files that correlate to window names
 WIN="$XDG_CONFIG_HOME"/x11/window
@@ -14,11 +15,14 @@
 	done
 }
 
-## Main ##
-# window dimensions and gap
+## Main
+# Don't run if we're fullscreen
 if watom `lsw -r` FS 2>/dev/null; then
 	exit 0
 fi
 
-. "$XDG_CONFIG_HOME"/x11/size && [ ! $width ] && [ ! $heigh ] && exit 1
+# window dimensions and gap
+. "$XDG_CONFIG_HOME"/x11/size
+
+# run the pipe
 lsw | winsize | binpack -x "$width" -y "$heigh" -g "$gaps"