Skip to content

Instantly share code, notes, and snippets.

@timo
Last active December 26, 2017 02:01
Show Gist options
  • Save timo/5658265 to your computer and use it in GitHub Desktop.
Save timo/5658265 to your computer and use it in GitHub Desktop.
how to put an urxvt at the bottom of the screen to behave just like a panel.
#!/usr/bin/env zsh
killall -SIGSTOP i3
urxvt -geometry 100x2 -name "flub" -e tmux -L CNTR&
sleep 1
ID=0x`xwininfo -root -tree | grep "flub" | sed -e 's/.*0x//' -e 's/ .*//'`
SCRNWDT=`xrandr | grep \* | sed -e 's/x.*//' -e 's/^ *//'`
xprop -id $ID -f _NET_WM_STRUT_PARTIAL 32cccccccccccc -set _NET_WM_STRUT_PARTIAL "0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, $SCRNWDT"
xprop -id $ID -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DOCK
tmux -L CNTR send-keys 'countup-bin $COLUMNS 5' "Enter"
tmux -L CNTR set-option -g status off
killall -SIGCONT i3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment