Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-04-16 14:30:16

damb
Member
Registered: 2017-04-16
Posts: 5

Panel window grouping

Hi,

is there a way to increase the max. text length of a window-group "preview"?
7ht7tfS.png
Would be nice to see the complete path

Offline

#2 2017-04-16 14:55:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Panel window grouping

Hello and welcome.

You can use gtk overrides to override some of the default xfce4-panel settings. For your question in particular, the "menu-max-width-chars" is the variable that you want to override.

Create, if it doesn't already exist, a ~/.gtkrc-2.0 file and paste the following contents in:

style "xfce-tasklist-style"
{
  XfceTasklist::menu-max-width-chars = 24
}
class "XfceTasklist" style "xfce-tasklist-style"

...change "XfceTasklist::menu-max-width-chars = 24" to a larger number of your choosing and restart the panel:

xfce4-panel -r

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2017-04-16 14:59:44

damb
Member
Registered: 2017-04-16
Posts: 5

Re: Panel window grouping

that was quick!
works perfectly, thank you very much smile

Offline

#4 2022-10-05 15:10:06

markling
Member
Registered: 2012-01-19
Posts: 37

Re: Panel window grouping

I tried this and it didn't work. Has the guidance changed?

I created the file: ~/.gtkrc-2.0

And put in it:

style "xfce-tasklist-style"
{
  XfceTasklist::menu-max-width-chars = 108
}
class "XfceTasklist" style "xfce-tasklist-style"

I then reset with: xfce4-panel -r

And the window drop down item widths were still the same.

The docs*, btw, do not not explain that you need to create a file called ~/.gtkrc-2.0

* https://docs.xfce.org/xfce/xfce4-panel/tasklist

Offline

#5 2022-10-05 18:55:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Panel window grouping

It would depend on the version of Xfce you are using. If it is 4.14 or later (based on GTK3), then the new tweak would be:

.tasklist { -XfceTasklist-menu-max-width-chars: 108 }

...and it should be added to ~/.config/gtk-3.0/gtk.css - create the file if it doesn't exist.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2022-10-08 07:54:39

markling
Member
Registered: 2012-01-19
Posts: 37

Re: Panel window grouping

Bingo!

Thank you.

And where according to the legends is the grimoire kept where might be found such spells as this, lest I should spend the rest of my life scratching around with the other lost souls in the forums, harking after rumours and half-truths, and snatches of copies made by knaves and nincompoops, grasping those few precious genuine fragments I can find, in the hope that, one day, I might have gathered enough that I think it might be possible to begin attempting to master its secrets?

Offline

#7 2022-10-08 09:29:13

markling
Member
Registered: 2012-01-19
Posts: 37

Re: Panel window grouping

Offline

#8 2022-10-08 09:41:18

markling
Member
Registered: 2012-01-19
Posts: 37

Re: Panel window grouping

A map though? A map to the fabled book?

Or perhaps only the syllabus for an apprenticeship in becoming a professional systems developer, to be completed in order to fix and tweak and adapt some desktop settings?

Offline

#9 2022-10-08 11:11:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Panel window grouping

Unfortunately, there is no one place where you can find a definitive all-you-need-know guide. The link you found above is a good listing of sources. There are also alot of code snippets buried here in the forum - you can use the search function to start your journey. The Gtk Inspector is probably the most helpful - it lets you test the tweaks live. For an example, see: https://forum.xfce.org/viewtopic.php?id=13329.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 547.02 KiB (Peak: 547.86 KiB) ]