fix quake-radio

This commit is contained in:
Daniel Napora 2024-02-17 09:16:10 +01:00
parent e4516996cb
commit cd4f48e402

View File

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