Author Topic: Xfce panel taskbar hack - extend the width of the taskbar buttons in Xfce.  (Read 262 times)

Offline babis1

  • Newly Subscribed
  • *
  • Posts: 17
  • Karma: 14
  • Admirer and Enthusiast of Peppermint Linux OS.
    • View Profile
  • Peppermint version(s): 10
If you want to expand the size of taskbar buttons and not be limited to a small box with a truncated title in your taskbar you need to create a file .gtkrc-2.0.mine in your user home folder. For example in my case the user home folder is: /home/smiley. I would therefore create a file in /home/smiley/.gtkrc-2.0.mine.  You will then need to add the following to expand the width of your task buttons:

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 = 10000

  # Ellipsizing used in the task list and overflow menu labels.
  XfceTasklist::ellipsize-mode = PANGO_ELLIPSIZE_END

  # Lucency of minimized icons. Valid values are between 0 (completely
  # hide the icon) and 100 (don't lighten the icon).
  XfceTasklist::minimized-icon-lucency = 50

  # Maximum number of characters in the menu label before it will
  # be ellipsized.
  XfceTasklist::menu-max-width-chars = 10000
}
class "XfceTasklist" style "xfce-tasklist-style"


One note on the comment above: the value -1 for XfceTasklist::max-button-length does not seem to work, so I therefore used a large number of 10000 instead which should be more than enough.

Don't forget to log out and back in, so the settings take effect.

Hope you find this hack useful.
--Isaak.
« Last Edit: June 02, 2020, 05:18:42 am by babis1 »
Don't forget to click applaud to encourage effort on this forum whenever you learn something new, or interesting.  It will inspire me to research new information and put up new tutorials.
-Isaak.

Offline Johan

  • Member
  • ***
  • Posts: 189
  • Karma: 45
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Do you have a screenshot to show us how they look after this hack?
Once Peppermint, always Peppermint.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2312
  • Karma: 613
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Hi babis1,

Yes, I agree with Johan that a screenshot would help other users to decide about whether or not to follow your tutorial.  ;)

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline babis1

  • Newly Subscribed
  • *
  • Posts: 17
  • Karma: 14
  • Admirer and Enthusiast of Peppermint Linux OS.
    • View Profile
  • Peppermint version(s): 10
This is how the taskbar will look like with a single program running:

 


This is how the taskbar will look like with two programs running:

 


--Isaak
« Last Edit: June 15, 2020, 04:00:42 am by babis1 »
Don't forget to click applaud to encourage effort on this forum whenever you learn something new, or interesting.  It will inspire me to research new information and put up new tutorials.
-Isaak.

Offline babis1

  • Newly Subscribed
  • *
  • Posts: 17
  • Karma: 14
  • Admirer and Enthusiast of Peppermint Linux OS.
    • View Profile
  • Peppermint version(s): 10
On freshly installed peppermint OS, I noticed that /home/your user folder/.gtkrc-2.0 does not exist and you will need to create it with any text editor, for the hack to work, and add:
include "/home/your user folder/.gtkrc-2.0.mine"

This for example can be done by launching the terminal and typing: nano ~/.gtkrc-2.0, then add the above entry and press Ctrl+X and save the file exiting nano.

This is done because you can't add the hack directly into .gtkrc-2.0 because it will be overwritten by LXApperance program, but you do need the redirect to .gtkrc-2.0.mine

--Isaak
« Last Edit: June 29, 2020, 08:50:56 am by babis1 »
Don't forget to click applaud to encourage effort on this forum whenever you learn something new, or interesting.  It will inspire me to research new information and put up new tutorials.
-Isaak.