mirror of
https://github.com/nickrunning/wechat-selkies.git
synced 2026-05-09 00:24:09 +00:00
feat: open WeChat/QQ as normal windows instead of maximized (#69)
This commit is contained in:
@@ -11,6 +11,21 @@ if [ ! -f /config/.config/openbox/rc.xml ] || grep -A20 "<dock>" /config/.config
|
||||
openbox --reconfigure
|
||||
fi
|
||||
|
||||
# configure default window behavior: open WeChat/QQ as normal windows instead of maximized
|
||||
OB_RC="/config/.config/openbox/rc.xml"
|
||||
if [ -f "$OB_RC" ] && ! grep -q '<application class="wechat"' "$OB_RC"; then
|
||||
sed -i '/<\/openbox_config>/i \
|
||||
<applications>\
|
||||
<application class="wechat">\
|
||||
<maximized>no</maximized>\
|
||||
</application>\
|
||||
<application class="QQ">\
|
||||
<maximized>no</maximized>\
|
||||
</application>\
|
||||
</applications>' "$OB_RC"
|
||||
openbox --reconfigure 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# generate openbox menu from defaults + ~/Desktop/*.desktop files
|
||||
/scripts/refresh-menu.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user