This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Windows Rules

Tags: None
(comma "," separated)
interele
Registered Member
Posts
131
Karma
0
OS

Windows Rules

Mon Jan 04, 2016 2:31 pm
In order to make Word, Excel and friends work you have to make a Window Rule

/snip
Start System Settings
Select Window Behaviour
Select Window Rules
Click "New..." to create a new Window Rules
Enter the description
Window Class: Regular Expression. I use .*\b(winword.exe|excel.exe|powerpnt.exe)\b.*
Check "Match whole window class"
Check on tab "Size & Position"
Check "Full screen": value Forced, No
Check "Ignore Requested Geometry": value Forced, Yes
snip/

Can I in some way apply that to everyone who uses the machine without
them having to do it themselves ?

Ta

Mal
luebking
Karma
0

Re: Windows Rules

Tue Jan 05, 2016 9:54 am
The rules aren't cascading (ie. /etc/xdg/kwinrulesrc isn't considered - wouldn't work)

You can provide a default for new users in /etc/skel or export your rule and tell users to import it.

Last resort, sth. like (untested, for KDE5, needs "su user")
Code: Select all
CNT=`kreadconfig5 --file kwinrulesrc --group General --key count`
kreadconfig5 --file kwinrulesrc --group General --key count $((CNT+1))
echo '
['$CNT']
Description=MS Office geometry fixes
wmclass=.*\b(winword.exe|excel.exe|powerpnt.exe)\b.*
... # your rule here' >> ~/.config/kwinrulesrc


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]