dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

dmenu_layouts (436B)


      1 #!/bin/sh
      2 
      3 args=" -p layouts: -l 20"
      4 options="
      5 	floating
      6 	grid
      7 	monocle
      8 	tiled
      9 "
     10 
     11 layout="$(printf "$options"                                                 \
     12 | sed -e '/^$/d' -e 's/^[ \t]*//'                                           \
     13 | sort                                                                      \
     14 | dmenu_vtc${args})"
     15 case "$layout" in
     16 grid|tiled|floating|monocle)
     17 	echo "set layout $layout" > "/tmp/dwm.fifo";;
     18 esac