Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-05-06 21:26:19

nbd
Member
Registered: 2015-08-07
Posts: 9

[SOLVED] Hot key to show panel?

Hello,

I have an auto-hide panel at the bottom of the screen and some time ago the hidden panel could be shown up with Ctrl-Esc key combination. Now this combination does some different thing and the panel can only be activated with moving the mouse cursor to the bottom of the screen.

Is there a way to activate the hidden panel with the keyboard?

Thanks.
/nbd

Last edited by nbd (2019-05-06 22:54:01)

Offline

#2 2019-05-06 22:18:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: [SOLVED] Hot key to show panel?

Assuming xfce4-panel version 4.13x branch, the following command can be used to set the autohide behaviour of a panel (the command can be assigned to a shortcut key):

xfconf-query -c xfce4-panel -p /panels/panel-X/autohide-behavior -s  BEHAVIOR

...where X is the panel number and BEHAVIOR is one of:
- 0 = None
- 1 = Intelligently
- 2 = Always

If you want to toggle between the two, you can use a script like this one:

#!/bin/bash

##### EDIT these values to suit
# the panel to affect
PANEL=2

# the hide behaviour setting (1=intelligently, 2=always)
HIDE=2

##### Don't edit anything below
# get the current setting
CURR=$(xfconf-query -c xfce4-panel -p /panels/panel-$PANEL/autohide-behavior)

# show hidden or hide displayed
case $CURR in
		#currently visible, so hide it
	0) xfconf-query -c xfce4-panel -p /panels/panel-$PANEL/autohide-behavior -s $HIDE ;;
		# currently intelligent, set to visible
	1) xfconf-query -c xfce4-panel -p /panels/panel-$PANEL/autohide-behavior -s 0 ;;	
		# currently always hidden, set to visible
	2) xfconf-query -c xfce4-panel -p /panels/panel-$PANEL/autohide-behavior -s 0 ;;	
		# otherwise ignore
	*) ;;
esac

...and assign a keyboard shortcut to it.


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 2019-05-06 22:53:10

nbd
Member
Registered: 2015-08-07
Posts: 9

Re: [SOLVED] Hot key to show panel?

That's the solution. Thanks!

Offline

Board footer

Powered by FluxBB