Customly repositioned and resized terminal in scratchpad at startup
asked 2014-12-06 12:11:19 +0000
Anonymous
I'm trying to always have a terminal in the scratchpad positioned in the bottom right of my screen and hidden since startup. Since it seems moving a container to the scratchpad always implies it being automatically resized and ripositioned to the center of the screen, I've found here in this site this workaroud.
# Open a terminal during startup and move it to the scratchpad
exec --no-startup-id urxvt -name urxvt_scratchpad
for_window [instance="urxvt_scratchpad"] move scratchpad
# Workaround to resize and reposition urxvt container
for_window [instance="urxvt_scratchpad"] scratchpad show; move position 1000px 200px; move scratchpad
The problems I have are:
1) I don't know how to resize the window to a custom value. (I want the terminal to be a small window for quick commands while browsing, etc)
2) I don't know how to set the exact position I want it to be, the above config example was just a test.
Using the mouse I can position the terminal in the place and with the size I'd like it to have, I'd only like to automatize this behaviour at startup.
Maybe there's a way to query i3 with the position of the terminal in the scratchpad and just copy&paste it to the config?