Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-09-05 15:14:21

PaperNick
Member
Registered: 2013-05-26
Posts: 107

[Suggestion] Manipulating the size of window buttons in panel

Hello, guys !

I've been recently thinking if it is possible to change the lenght of Window buttons in panel. I've been searching for solution because, I wanted to free some space in the panel and also, to fit more window buttons. I searched a little in the net and I found a way how to change the lenght of the buttons - http://ubuntuforums.org/showthread.php?t=1893405

style "xfce-tasklist-style"
{

# The maximum length of a button before the label ellipsizes.
# When this value is set to -1 the button will expand to the
# entire available space.
XfceTasklist::max-button-length = 50 # pixels. or whatever size you like

}
class "XfceTasklist" style "xfce-tasklist-style" 

This configuration must be added in ~/.gtkrc-2.0 in order to work properly. To change the lenght of window buttons, just edit the value 50, to what you desire.

Here is a photo that displays what I mean - http://s13.postimage.org/osj3li953/Image_example.png
The new lenght in the picture is 147.

I also thought it might be a good idea to add a custom option in Properties menu, so it can be modified easily.


Overall, I think it would be a very good addition in Xfce, especially for people with small displays who want to fit more windows in smile

Best regards
Nick

Last edited by PaperNick (2013-09-05 15:21:17)

Offline

#2 2013-09-05 21:16:14

the_file
Member
Registered: 2013-02-17
Posts: 36

Re: [Suggestion] Manipulating the size of window buttons in panel

PaperNick wrote:

Hello, guys !

I've been recently thinking if it is possible to change the lenght of Window buttons in panel. I've been searching for solution because, I wanted to free some space in the panel and also, to fit more window buttons. I searched a little in the net and I found a way how to change the lenght of the buttons - http://ubuntuforums.org/showthread.php?t=1893405

style "xfce-tasklist-style"
{

# The maximum length of a button before the label ellipsizes.
# When this value is set to -1 the button will expand to the
# entire available space.
XfceTasklist::max-button-length = 50 # pixels. or whatever size you like

}
class "XfceTasklist" style "xfce-tasklist-style" 

This configuration must be added in ~/.gtkrc-2.0 in order to work properly. To change the lenght of window buttons, just edit the value 50, to what you desire.

Here is a photo that displays what I mean - http://s13.postimage.org/osj3li953/Image_example.png
The new lenght in the picture is 147.

I also thought it might be a good idea to add a custom option in Properties menu, so it can be modified easily.


Overall, I think it would be a very good addition in Xfce, especially for people with small displays who want to fit more windows in smile

Best regards
Nick

I like the idea, a simple slider like in your linked picture would be an effective and simple means to manipulate the length of the button. Can be placed as an option in the panel settings UI, I think it would make a nice addition.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 8 queries executed - Memory usage: 523.13 KiB (Peak: 523.98 KiB) ]