Re: [kde] global disable maximize windows by dragging to top of screen?

2013-09-14 Thread Kevin Krammer
On Saturday, 2013-09-14, Stephen Dowdy wrote:
> Felix Miata wrote, On 09/14/2013 09:29 AM:
> > Is there a way to make drag to top of screen mean *only* drag to top of
> > screen and nothing more, systemwide for all users? If so, how?
> 
> Felix,
> 
> Here's the FAQ entry i put together for my users on "ElectricBorders"
> 
> Note that this is directed at users for individual control, however, you
> can put these kwriteconfig entries against a GLOBAL 'kwinrc' file.
> 
> for my system the KDE4 config search path is:
> dowdy@neptune$ kde4-config --path config
>
> /home/dowdy/.kde/share/config/:/etc/kde4/:/usr/share/kde4/config/:/usr/sha
> re/desktop-base/profiles/kde-profile/share/config/
> 
> So, if you put these entries into /etc/kde4/kwinrc  or
> /usr/share/kde4/config/kwinrc  or
> /usr/share/desktop-base/profiles/kde-profile/share/config/kwinrc It should
> affect all users, UNLESS they have overrides in their personal
> ~/.kde/share/config/kwinrc

One can, however, make values unoverridable by marking them as immutable.
This is done by adding [$i] to the key in one of the configs in the search 
path after the user's local config.

E.g. if you hae /etc/kde4/kwinrc like in the above list with
[Windows]
ElectricBorderMaximize=false

this would make the key unoverridable for user configs
ElectricBorderMaximize[$i]=false

The immutable modifier can also be applied to whole groups, e.g. [Windows][$i]

See http://techbase.kde.org/KDE_System_Administration/Kiosk/Introduction

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] global disable maximize windows by dragging to top of screen?

2013-09-14 Thread Stephen Dowdy
Felix Miata wrote, On 09/14/2013 09:29 AM:
> Is there a way to make drag to top of screen mean *only* drag to top of 
> screen and nothing more, systemwide for all users? If so, how?

Felix,

Here's the FAQ entry i put together for my users on "ElectricBorders"

Note that this is directed at users for individual control, however, you can 
put these
kwriteconfig entries against a GLOBAL 'kwinrc' file.

for my system the KDE4 config search path is:
dowdy@neptune$ kde4-config --path config

/home/dowdy/.kde/share/config/:/etc/kde4/:/usr/share/kde4/config/:/usr/share/desktop-base/profiles/kde-profile/share/config/

So, if you put these entries into /etc/kde4/kwinrc  or 
/usr/share/kde4/config/kwinrc  or 
/usr/share/desktop-base/profiles/kde-profile/share/config/kwinrc
It should affect all users, UNLESS they have overrides in their personal 
~/.kde/share/config/kwinrc

--stephen

---

Q: When i move a window and hit the screen edge the window maximizes and this 
gets very frustrating.

A: This is like the Windows 7 "Aero desktop" edge bumping. It's called 
"ElectricBorders" in KDE4.

There are two Aero-like settings, one for when you hit the top edge of the 
screen, called:
"Maximize windows by dragging them to the top of the screen"

The other allows you to "tile" two windows filling the screen, each taking half 
the screen. This is called:

"Tile windows by dragging them to the side of the screen"

To change the settings...

To open the GUI interface to 'kwinscreenedges', do either:

CLI:kcmshell4 kwinscreenedges
UI: System Settings->Desktop->Screen Edges

Disabling: "Maximize windows by dragging them to the top of the screen"
(do one of these)

UI: System Settings->Desktop->Screen Edges->Window-Management->Maximize 
windows by dragging them to the top of the screen
CLI:kwriteconfig --file kwinrc --group Windows --key 
ElectricBorderMaximize false

Disabling: "Tile windows by dragging them to the side of the screen"
(do one of these)

UI: System Settings->Desktop->Screen Edges->Window-Management->Tile 
windows by dragging them to the side of the screen
CLI:kwriteconfig --file kwinrc --group Windows --key 
ElectricBorderTiling false

Additionally, there are other window edge hot actions available for each of the 
8 screen corners and edges when simply bumping the mouse (not moving a window) 
against that corner or edge.

Switch desktop on edge: "Disabled"
CLI:kwriteconfig --file kwinrc --group Windows --key ElectricBorders 0

Switch desktop on edge: "Only When Moving Windows"
CLI:kwriteconfig --file kwinrc --group Windows --key ElectricBorders 1

Switch desktop on edge: "Always Enabled"
CLI:kwriteconfig --file kwinrc --group Windows --key ElectricBorders 2

For example, to set the topleft corner to "Show Dashboard"
CLI:kwriteconfig --file kwinrc --group ElectricBorders --key TopLeft 
Dashboard

For example, to set the bottomleft corner to "Show Desktop"
CLI:kwriteconfig --file kwinrc --group ElectricBorders --key BottomLeft 
ShowDesktop

To disable all the corner and edge electric borders, use this POSIX Shell code:
for spot in Bottom BottomLeft BottomRight Left Right Top TopLeft TopRight; 
do
kwriteconfig --file kwinrc --group ElectricBorders --key ${spot} None
done

FYI: Border enums:
0 Top Center
1 Top Right
2 Right Center
3 Bottom Right
4 Bottom Center
5 Bottom Left
6 Left Center
7 Top Left
8 ???
9 NONE
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[kde] global disable maximize windows by dragging to top of screen?

2013-09-14 Thread Felix Miata
Is there a way to make drag to top of screen mean *only* drag to top of 
screen and nothing more, systemwide for all users? If so, how?

--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.