fix quake-radio

master
Daniel Napora 2024-02-17 09:16:10 +01:00
parent e4516996cb
commit cd4f48e402
1 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@ cat <<EOF > ${TERM_CONFIG}
background_type = transparent
cursor_blink = False
cursor_color = "#aaaaaa"
font = JetBrains Mono NL 9
show_titlebar = False
scrollbar_position = hidden
scroll_on_keystroke = False
@ -36,9 +37,10 @@ fi
terminator -b -g "${TERM_CONFIG}" -T "${NAME}" --icon=/usr/share/icons/pyradio.png --geometry "$POS" -e 'pyradio -lt'
else
TOP=$(wmctrl -d|grep "*"|awk '{print $8}'|cut -d',' -f2)
WIDTH=$[$(wmctrl -d|grep "*"|awk '{print $4}'|cut -d'x' -f1)/6]
ONESIXTH=$[$(wmctrl -d|grep "*"|awk '{print $4}'|cut -d'x' -f1)/6]
HEIGHT=$[$(wmctrl -d|grep "*"|awk '{print $4}'|cut -d'x' -f2)/2]
LEFT=$[${WIDTH}*5-10]
LEFT=$[${ONESIXTH}*5-80]
WIDTH=$[${ONESIXTH}+60]
terminator -b -g "${TERM_CONFIG}" -T "${NAME}" --icon=/usr/share/icons/pyradio.png --geometry "${WIDTH}x${HEIGHT}+${LEFT}+${TOP}" -e 'pyradio -lt'
fi
else