dotfiles

custom linux config files managed with gnu stow

dotfiles

2bwm/bin/wm_menu


#!/bin/sh
#  ██████████   █████  ███████  ██   ██
# ░░██░░██░░██ ██░░░██░░██░░░██░██  ░██
#  ░██ ░██ ░██░███████ ░██  ░██░██  ░██
#  ░██ ░██ ░██░██░░░░  ░██  ░██░██  ░██
#  ███ ░██ ░██░░██████ ███  ░██░░██████
# ░░░  ░░  ░░  ░░░░░░ ░░░   ░░  ░░░░░░
#
#  ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ xero <x@xero.nu>
# ░▓ code   ▓ http://code.xero.nu/dotfiles
# ░▓ mirror ▓ http://git.io/.files
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
ln=32
sb="#5E81AC"
sf="#222222"
nf="#c0c0c0"
nb="#3B4252"
fn="-misc-hack-nerd-font-mono-medium-i-normal--0-0-0-0-p-0-iso10646-1"
_RICE="-dim 0.75 -l $ln -sb $sb -sf $sf -nf $nf -sb $sb -c -fn $fn"

if [ ! -z "" ]; then 
	exe=
else
	exe=`echo -e "app\nwww\nvid\nimg\nnet\nclip\npass\npdf\ninvert\nquit" | dmenu $_RICE -p 'run'`
fi

case $exe in
	app)
		dmenu_run $_RICE -p 'run'
	;;
	www)
		chromium
	;;
	vid*)
		urxvt -e bash -c "`printf "%s'" ${exe} | sed "s!vid!mpv !"`"
	;;
	img*)
		curl -o /tmp/img -s `echo ${exe} | sed "s!img !!"` && sxiv -a /tmp/img && rm /tmp/img
	;;
	pdf*)
		curl -o /tmp/pdf -s `echo ${exe} | sed "s!pdf !!"` && zathura /tmp/pdf && rm /tmp/pdf
	;;
	clip)
		clipmenu $_RICE -p 'clipboard'
	;;
	pass)
		passmenu $_RICE -p 'pass'
	;;
	net)
		networkmanager_dmenu $_RICE -p 'innernetz'
	;;
	invert)
		xcalib -i -a
	;;
	quit)
		poweroff
	;;
	*)
		notify-send "what?"
	;;
esac

Download

raw zip tar