Last active
December 26, 2017 02:01
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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