You are not logged in.

#1 2014-06-21 10:15:38

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

[Xfce] Profiles for the Xfce panel

Hello community,

I'm using a Thinkpad X200 Tablet with Xfce. It is a convertible where the screen can be turned down and controlled with a pen. It is easily possible to rotate the screen including the mouse controls in the tablet mode using a simple script. Cairo Dock and the Xfce panel notice the orientation change and adjust their positions, such that on the rotated screen the panel is still on top and the dock still on the bottom. However, there is one little annoyance I'd like to get rid of: The panel is pretty full with applets and they don't fit if the screen is rotated. Screenshot of the problem:

Laptop mode: https://dl.dropboxusercontent.com/u/150 … 5%3A08.png
Tablet mode: https://dl.dropboxusercontent.com/u/150 … 5%3A57.png

As you can see the panel applets don't fit in on the second screenshot. Therefore I'd like to add to the rotation script a line which would change the panel configuration (into a two line panel). The simplest way would be probably to have two versions of ~/.config/xfce4/ and move them around with the screen rotation script. However, this is a quite hackish solution (e.g., if I want to edit the panel configuration, I need to do it twice, in the laptop and in the tablet mode). Therefore I'd like to ask, whether anybody is aware of a better way to do this. Maybe some kind of profile manager for panel settings, which existence I'm unaware of.

Thanks for any hint,
Photon


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#2 2014-06-21 13:57:07

toz
Member
Registered: 2011-10-28
Posts: 497

Re: [Xfce] Profiles for the Xfce panel

AFAIK, a panel profile manager doesn't exist. However, You can change the panel to a two row panel using the command:

xfconf-query -c xfce4-panel -p /panels/panel-0/nrows -s 2

...assuming that your panel is "panel-0" (adjust to suit). You can add this to your rotation script.

One other option might be to have 2 panels setup and configured and set the one that you don't want to auto-hide. However, some plugins can only exist on one panel so you would have to programmatically move them and this also doesn't address your requirement of not editing configurations twice for every change.

Offline

#3 2014-06-23 08:36:24

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [Xfce] Profiles for the Xfce panel

Hi toz, thanks for your reply. I now realize that just increasing the number of rows in the panel doesn't help much:

https://dl.dropboxusercontent.com/u/150 … 0%3A18.png

Some applets just use up the whole height, some don't. And in any case, there is no possibility to place two applets below each other in different rows to save horizontal space. So I guess, two rows isn't a solution, two panels are needed. This, however, requires a totally different panel configuration for the tablet mode and then we arrive back at the profile question. By the way, I tried the ugly solution (copying the configuration folders) and it doesn't work, even if i reload the panel in the same go... The panel configuration just doesn't get updated. Need to play around with it a bit more.

edit: Related bug: https://bugzilla.xfce.org/show_bug.cgi?id=9070

Last edited by PhotonX (2014-06-23 16:49:53)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

Board footer

Powered by FluxBB