3

I'm trying to set a panel up for a small touch screen and I have a shortcut which toggles autohide, enabling autohide makes it appear, but on disabling autohide there's a short delay which is annoying.

Using Xfce4 panels, there is no way I can find within the GUI of changing the autohide delay. Are there any configuration files etc I could edit to achieve this?

Henry Gibson
  • 839
  • 9
  • 16

2 Answers2

4

Add to ~/.config/gtk-3.0/gtk.css the following:

#XfcePanelWindow {
   -XfcePanelWindow-popup-delay: 500;
   -XfcePanelWindow-popdown-delay: 250;
}

If it doesn't work after logging out, you may need to clear the cache: rm -rf ~/.cache

An alternative (also permanent) solution:

xfconf-query -c xfce4-panel -p /panels/panel-0/popup-speed -t int -s 500 --create
xfconf-query -c xfce4-panel -p /panels/panel-0/popdown-speed -t int -s 250 --create

where panel-0 is the name of the panel (see xfconf-query -c xfce4-panel -p /panels -l). These later settings are stored in ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

4

A bit of Googling returns this:

Add this to ~/.gtkrc-2.0.

 style "xfce-panel-window-style"
 {
   # Time in miliseconds before the panel will unhide on an enter event
   XfcePanelWindow::popup-delay = 225

   # Time in miliseconds before the panel will hide on a leave event
   XfcePanelWindow::popdown-delay = 350
 }
 class "XfcePanelWindow" style "xfce-panel-window-style"

Sources: Xfce Docs: Theming, ArchLinux Wiki: Xfce#Panel Autohide Delay

ignis
  • 4,257