- Your terminal emulator of choice
- slop
termite --geometry=$(slop)
Make sure size_hints
is set to false
.
NOTE: --geometry
was removed. Unsure if something will replace it.
#!/usr/bin/env bash
read -r X Y W H < <(slop -f "%x %y %w %h" -q)
if [[ -n $W ]] || [[ -n $H ]]
then
# Width and Height in px need to be converted to columns/rows
# To get these magic values, make a fullscreen st, and divide your screen width by ${tput cols}, height by ${tput lines}
(( W /= 6 ))
(( H /= 10 ))
g=${W}x${H}+${X}+${Y}
st -g $g -t "Simple Terminal"
fi
Script above assumes a 1080p monitor.