fix quake-radio
This commit is contained in:
parent
e4516996cb
commit
cd4f48e402
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user