Can I unhide the panel in XFCE 4.10 using a key press rather than using mouse cursor hover to reveal it?
I would like to be able to unhide the XFCE panel by pressing a key instead of placing the mouse cursor at the edge of the screen.
I'm running Xubuntu 12.04 but updated to XFCE 4.10
xfce xfce-panel
add a comment |
I would like to be able to unhide the XFCE panel by pressing a key instead of placing the mouse cursor at the edge of the screen.
I'm running Xubuntu 12.04 but updated to XFCE 4.10
xfce xfce-panel
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15
add a comment |
I would like to be able to unhide the XFCE panel by pressing a key instead of placing the mouse cursor at the edge of the screen.
I'm running Xubuntu 12.04 but updated to XFCE 4.10
xfce xfce-panel
I would like to be able to unhide the XFCE panel by pressing a key instead of placing the mouse cursor at the edge of the screen.
I'm running Xubuntu 12.04 but updated to XFCE 4.10
xfce xfce-panel
xfce xfce-panel
edited Jan 23 '13 at 4:01
Kevin Bowen
14.2k145969
14.2k145969
asked Jan 18 '13 at 0:39
Borsook
84371737
84371737
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15
add a comment |
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15
add a comment |
6 Answers
6
active
oldest
votes
Take the following commands and bind them to separate Super-key combinations:
Commands for Xfce 4.10:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
Update: 12/09/2018: As mentioned in the comments, the above commands are no longer supported.
Commands for Xfce 4.12 and newer versions:
The following commands are now used to set the auto-hide properties:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 1
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
Command Values:
The value '0' is used for 'never' auto-hide. Value '1' is for 'intelligently' auto-hiding the panel, and '2' is used to set the value to 'always' auto-hide.
Setting the key-bindings:
This can be done by either selecting, Applications Menu --> Settings --> Keyboard --> Application Shortcuts, or by running xfce4-keyboard-settings
from the command line(Ctrl-Alt-t).
I've bound the first command to Super-u (to 'unhide' the panel). For the second command, I am binding Super-h (to 'hide' the panel).
As you can see in the commands above, the behavior is only changed on a single panel(In this case, panel-0 is being modified).
You may notice a slight delay while the panel changes state.
Source.
More details on the xfconf
command can be found here.
Hmmm, I tried that and gotxconf command not found
error. What version of Xfce do you use?
– Seth♦
Jan 23 '13 at 4:52
1
@iSeth The command isxfconf
, notxconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
You can also use thetoggle
option in Xfce 4.10 and just bind a single command to one key: i.e.xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can usexfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
andxfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.
– Richard Wong
Oct 14 '15 at 14:51
|
show 2 more comments
Try this workaround:
Install xte
and xdotool
with sudo apt-get install xdotool xautomation
You can use xdotool
to find the x,y coordinates of the mouse. Open a terminal type xdotool getmouselocation
then move the mouse somewhere where it will activate the panel and hit enter. You will get some output like:
findclient: 62914741
findclient: 6291474
x:1282 y:1079 screen:0 window:62914741
What's important here is: x:1282 y:1079
, which gives us the x,y coordinates of the mouse.
Now type xte 'mousemove 1282 1079'
(replacing 1282 1079
with the coordinates you got earlier). That should move the mouse where you want.
You can use xbindkeys
to bind this command to a key on the keyboard. I can add instructions upon request or you can set it in Xubuntu's keyboard settings.
add a comment |
Edit:
@JQuigley pointed out "This no longer works..." see comments.
As Kevin said, you can use xfconf, but I'd do it this way:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
The -T
toggles the true/false value.
This way, you can use the same key to hide/unhide.
To get more options do:
xfconf-query --help
I wanted to make a comment to the answer from Kevin, since it's what got me on the right track. But I'm new here, not enough reputation..
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
add a comment |
topisani's script above still works well in xfce 4.12.
You can change the target panel by changing panel-0
in the script to panel-1
or panel-2
etc. Don't forget that there are two lines to change.
add a comment |
I know I'm a couple of years late to the party, but just for anyone who might see this in the future: Here is a bash script that toggles autohide in the new system, simply save this in a text file somewhere, run chmod +x file/that/i/saved
and set the script to a key in Settings -> Keyboard -> Shortcuts.
#!/bin/bash
cur=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
if [[ cur -eq 0 ]]; then
nxt=1
else
nxt=0
fi
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s $nxt
add a comment |
EDIT:
It's been pointed out in a comment that the autohide property has been changed to something else, and -T doesn't work with the new one :/
So, while I was fooling around with this, I made a little ruby script to toggle all panels at the same time. It seems to work.
#!/usr/bin/env ruby
#Toggle all panels' autohide property in xfce4
# fede s.
out = `xfconf-query -c xfce4-panel -l`.split
out.inject(Array.new) {|res, val|
m= /panel-([0-9]+)/.match(val); #get the panel numbers
if m then res.push(m[1]) end; #add only if it matches
res}.sort.uniq.each do #filter duplicates
| num |
`xfconf-query -c xfce4-panel -p /panels/panel-#{num}/autohide -T` #here is the command that will repeat for every panel found
end
It's probably not the best way to do it, and I don't really know much about ruby, so feel free to throw me in the fire! :P
If Someone want's to use it:
make sure you have ruby installed.
copy it to a file wherever you see fit (I have mine as
~/scripts/xfce/toogleautohide.rb
).
Make it executable
chmod +x path/to/your/script
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f244466%2fcan-i-unhide-the-panel-in-xfce-4-10-using-a-key-press-rather-than-using-mouse-cu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Take the following commands and bind them to separate Super-key combinations:
Commands for Xfce 4.10:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
Update: 12/09/2018: As mentioned in the comments, the above commands are no longer supported.
Commands for Xfce 4.12 and newer versions:
The following commands are now used to set the auto-hide properties:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 1
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
Command Values:
The value '0' is used for 'never' auto-hide. Value '1' is for 'intelligently' auto-hiding the panel, and '2' is used to set the value to 'always' auto-hide.
Setting the key-bindings:
This can be done by either selecting, Applications Menu --> Settings --> Keyboard --> Application Shortcuts, or by running xfce4-keyboard-settings
from the command line(Ctrl-Alt-t).
I've bound the first command to Super-u (to 'unhide' the panel). For the second command, I am binding Super-h (to 'hide' the panel).
As you can see in the commands above, the behavior is only changed on a single panel(In this case, panel-0 is being modified).
You may notice a slight delay while the panel changes state.
Source.
More details on the xfconf
command can be found here.
Hmmm, I tried that and gotxconf command not found
error. What version of Xfce do you use?
– Seth♦
Jan 23 '13 at 4:52
1
@iSeth The command isxfconf
, notxconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
You can also use thetoggle
option in Xfce 4.10 and just bind a single command to one key: i.e.xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can usexfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
andxfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.
– Richard Wong
Oct 14 '15 at 14:51
|
show 2 more comments
Take the following commands and bind them to separate Super-key combinations:
Commands for Xfce 4.10:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
Update: 12/09/2018: As mentioned in the comments, the above commands are no longer supported.
Commands for Xfce 4.12 and newer versions:
The following commands are now used to set the auto-hide properties:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 1
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
Command Values:
The value '0' is used for 'never' auto-hide. Value '1' is for 'intelligently' auto-hiding the panel, and '2' is used to set the value to 'always' auto-hide.
Setting the key-bindings:
This can be done by either selecting, Applications Menu --> Settings --> Keyboard --> Application Shortcuts, or by running xfce4-keyboard-settings
from the command line(Ctrl-Alt-t).
I've bound the first command to Super-u (to 'unhide' the panel). For the second command, I am binding Super-h (to 'hide' the panel).
As you can see in the commands above, the behavior is only changed on a single panel(In this case, panel-0 is being modified).
You may notice a slight delay while the panel changes state.
Source.
More details on the xfconf
command can be found here.
Hmmm, I tried that and gotxconf command not found
error. What version of Xfce do you use?
– Seth♦
Jan 23 '13 at 4:52
1
@iSeth The command isxfconf
, notxconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
You can also use thetoggle
option in Xfce 4.10 and just bind a single command to one key: i.e.xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can usexfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
andxfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.
– Richard Wong
Oct 14 '15 at 14:51
|
show 2 more comments
Take the following commands and bind them to separate Super-key combinations:
Commands for Xfce 4.10:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
Update: 12/09/2018: As mentioned in the comments, the above commands are no longer supported.
Commands for Xfce 4.12 and newer versions:
The following commands are now used to set the auto-hide properties:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 1
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
Command Values:
The value '0' is used for 'never' auto-hide. Value '1' is for 'intelligently' auto-hiding the panel, and '2' is used to set the value to 'always' auto-hide.
Setting the key-bindings:
This can be done by either selecting, Applications Menu --> Settings --> Keyboard --> Application Shortcuts, or by running xfce4-keyboard-settings
from the command line(Ctrl-Alt-t).
I've bound the first command to Super-u (to 'unhide' the panel). For the second command, I am binding Super-h (to 'hide' the panel).
As you can see in the commands above, the behavior is only changed on a single panel(In this case, panel-0 is being modified).
You may notice a slight delay while the panel changes state.
Source.
More details on the xfconf
command can be found here.
Take the following commands and bind them to separate Super-key combinations:
Commands for Xfce 4.10:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s false
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -s true
Update: 12/09/2018: As mentioned in the comments, the above commands are no longer supported.
Commands for Xfce 4.12 and newer versions:
The following commands are now used to set the auto-hide properties:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 1
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
Command Values:
The value '0' is used for 'never' auto-hide. Value '1' is for 'intelligently' auto-hiding the panel, and '2' is used to set the value to 'always' auto-hide.
Setting the key-bindings:
This can be done by either selecting, Applications Menu --> Settings --> Keyboard --> Application Shortcuts, or by running xfce4-keyboard-settings
from the command line(Ctrl-Alt-t).
I've bound the first command to Super-u (to 'unhide' the panel). For the second command, I am binding Super-h (to 'hide' the panel).
As you can see in the commands above, the behavior is only changed on a single panel(In this case, panel-0 is being modified).
You may notice a slight delay while the panel changes state.
Source.
More details on the xfconf
command can be found here.
edited Dec 10 at 9:07
answered Jan 23 '13 at 4:00
Kevin Bowen
14.2k145969
14.2k145969
Hmmm, I tried that and gotxconf command not found
error. What version of Xfce do you use?
– Seth♦
Jan 23 '13 at 4:52
1
@iSeth The command isxfconf
, notxconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
You can also use thetoggle
option in Xfce 4.10 and just bind a single command to one key: i.e.xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can usexfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
andxfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.
– Richard Wong
Oct 14 '15 at 14:51
|
show 2 more comments
Hmmm, I tried that and gotxconf command not found
error. What version of Xfce do you use?
– Seth♦
Jan 23 '13 at 4:52
1
@iSeth The command isxfconf
, notxconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
You can also use thetoggle
option in Xfce 4.10 and just bind a single command to one key: i.e.xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can usexfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
andxfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.
– Richard Wong
Oct 14 '15 at 14:51
Hmmm, I tried that and got
xconf command not found
error. What version of Xfce do you use?– Seth♦
Jan 23 '13 at 4:52
Hmmm, I tried that and got
xconf command not found
error. What version of Xfce do you use?– Seth♦
Jan 23 '13 at 4:52
1
1
@iSeth The command is
xfconf
, not xconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu– Kevin Bowen
Jan 23 '13 at 4:57
@iSeth The command is
xfconf
, not xconf
. ;-) The command has been available since xfce 4.6. I'm running xfce 4.10 from this PPA ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu– Kevin Bowen
Jan 23 '13 at 4:57
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
Ah, your right. Works now. +1
– Seth♦
Jan 23 '13 at 5:02
4
4
You can also use the
toggle
option in Xfce 4.10 and just bind a single command to one key: i.e. xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
You can also use the
toggle
option in Xfce 4.10 and just bind a single command to one key: i.e. xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
– user76204
Mar 13 '13 at 0:14
3
3
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can use
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
and xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.– Richard Wong
Oct 14 '15 at 14:51
Just to update on the later version of xfce4-panel. The latest xfce4-panel do not have the 'autohide' property. Instead there is 'autohide-behavior' and no longer a boolean, but a numeric value of 0, 1, or 2. 0: never hide, 1: intelligent hide, 2: always hide. To achieve the same outcome, you can use
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 0
and xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s 2
.– Richard Wong
Oct 14 '15 at 14:51
|
show 2 more comments
Try this workaround:
Install xte
and xdotool
with sudo apt-get install xdotool xautomation
You can use xdotool
to find the x,y coordinates of the mouse. Open a terminal type xdotool getmouselocation
then move the mouse somewhere where it will activate the panel and hit enter. You will get some output like:
findclient: 62914741
findclient: 6291474
x:1282 y:1079 screen:0 window:62914741
What's important here is: x:1282 y:1079
, which gives us the x,y coordinates of the mouse.
Now type xte 'mousemove 1282 1079'
(replacing 1282 1079
with the coordinates you got earlier). That should move the mouse where you want.
You can use xbindkeys
to bind this command to a key on the keyboard. I can add instructions upon request or you can set it in Xubuntu's keyboard settings.
add a comment |
Try this workaround:
Install xte
and xdotool
with sudo apt-get install xdotool xautomation
You can use xdotool
to find the x,y coordinates of the mouse. Open a terminal type xdotool getmouselocation
then move the mouse somewhere where it will activate the panel and hit enter. You will get some output like:
findclient: 62914741
findclient: 6291474
x:1282 y:1079 screen:0 window:62914741
What's important here is: x:1282 y:1079
, which gives us the x,y coordinates of the mouse.
Now type xte 'mousemove 1282 1079'
(replacing 1282 1079
with the coordinates you got earlier). That should move the mouse where you want.
You can use xbindkeys
to bind this command to a key on the keyboard. I can add instructions upon request or you can set it in Xubuntu's keyboard settings.
add a comment |
Try this workaround:
Install xte
and xdotool
with sudo apt-get install xdotool xautomation
You can use xdotool
to find the x,y coordinates of the mouse. Open a terminal type xdotool getmouselocation
then move the mouse somewhere where it will activate the panel and hit enter. You will get some output like:
findclient: 62914741
findclient: 6291474
x:1282 y:1079 screen:0 window:62914741
What's important here is: x:1282 y:1079
, which gives us the x,y coordinates of the mouse.
Now type xte 'mousemove 1282 1079'
(replacing 1282 1079
with the coordinates you got earlier). That should move the mouse where you want.
You can use xbindkeys
to bind this command to a key on the keyboard. I can add instructions upon request or you can set it in Xubuntu's keyboard settings.
Try this workaround:
Install xte
and xdotool
with sudo apt-get install xdotool xautomation
You can use xdotool
to find the x,y coordinates of the mouse. Open a terminal type xdotool getmouselocation
then move the mouse somewhere where it will activate the panel and hit enter. You will get some output like:
findclient: 62914741
findclient: 6291474
x:1282 y:1079 screen:0 window:62914741
What's important here is: x:1282 y:1079
, which gives us the x,y coordinates of the mouse.
Now type xte 'mousemove 1282 1079'
(replacing 1282 1079
with the coordinates you got earlier). That should move the mouse where you want.
You can use xbindkeys
to bind this command to a key on the keyboard. I can add instructions upon request or you can set it in Xubuntu's keyboard settings.
edited Jan 23 '13 at 3:40
answered Jan 23 '13 at 2:34
Seth♦
33.9k26110161
33.9k26110161
add a comment |
add a comment |
Edit:
@JQuigley pointed out "This no longer works..." see comments.
As Kevin said, you can use xfconf, but I'd do it this way:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
The -T
toggles the true/false value.
This way, you can use the same key to hide/unhide.
To get more options do:
xfconf-query --help
I wanted to make a comment to the answer from Kevin, since it's what got me on the right track. But I'm new here, not enough reputation..
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
add a comment |
Edit:
@JQuigley pointed out "This no longer works..." see comments.
As Kevin said, you can use xfconf, but I'd do it this way:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
The -T
toggles the true/false value.
This way, you can use the same key to hide/unhide.
To get more options do:
xfconf-query --help
I wanted to make a comment to the answer from Kevin, since it's what got me on the right track. But I'm new here, not enough reputation..
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
add a comment |
Edit:
@JQuigley pointed out "This no longer works..." see comments.
As Kevin said, you can use xfconf, but I'd do it this way:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
The -T
toggles the true/false value.
This way, you can use the same key to hide/unhide.
To get more options do:
xfconf-query --help
I wanted to make a comment to the answer from Kevin, since it's what got me on the right track. But I'm new here, not enough reputation..
Edit:
@JQuigley pointed out "This no longer works..." see comments.
As Kevin said, you can use xfconf, but I'd do it this way:
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide -T
The -T
toggles the true/false value.
This way, you can use the same key to hide/unhide.
To get more options do:
xfconf-query --help
I wanted to make a comment to the answer from Kevin, since it's what got me on the right track. But I'm new here, not enough reputation..
edited May 28 '16 at 18:07
answered Jan 26 '14 at 3:02
fede s.
1213
1213
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
add a comment |
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
This no longer works unfortunately; the autohide property seems to have been replaced with autohide-behavior, which is an integer that can be 0, 1, or 2. But the two-key approach still works. Also I imagine a person could write a little toggle script of some sort to maybe store the state in a file or something and allow a one-key strategy to work again.
– J Quigley
May 28 '16 at 0:13
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
@JQuigley oh, thanks for pointing it out. I'm not on xfce anymore... If that's the case I'd go with a script to read the current value and change it accordingly (external file is prone to errors).
– fede s.
May 28 '16 at 18:04
add a comment |
topisani's script above still works well in xfce 4.12.
You can change the target panel by changing panel-0
in the script to panel-1
or panel-2
etc. Don't forget that there are two lines to change.
add a comment |
topisani's script above still works well in xfce 4.12.
You can change the target panel by changing panel-0
in the script to panel-1
or panel-2
etc. Don't forget that there are two lines to change.
add a comment |
topisani's script above still works well in xfce 4.12.
You can change the target panel by changing panel-0
in the script to panel-1
or panel-2
etc. Don't forget that there are two lines to change.
topisani's script above still works well in xfce 4.12.
You can change the target panel by changing panel-0
in the script to panel-1
or panel-2
etc. Don't forget that there are two lines to change.
answered Aug 22 at 21:05
eylem akcay
111
111
add a comment |
add a comment |
I know I'm a couple of years late to the party, but just for anyone who might see this in the future: Here is a bash script that toggles autohide in the new system, simply save this in a text file somewhere, run chmod +x file/that/i/saved
and set the script to a key in Settings -> Keyboard -> Shortcuts.
#!/bin/bash
cur=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
if [[ cur -eq 0 ]]; then
nxt=1
else
nxt=0
fi
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s $nxt
add a comment |
I know I'm a couple of years late to the party, but just for anyone who might see this in the future: Here is a bash script that toggles autohide in the new system, simply save this in a text file somewhere, run chmod +x file/that/i/saved
and set the script to a key in Settings -> Keyboard -> Shortcuts.
#!/bin/bash
cur=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
if [[ cur -eq 0 ]]; then
nxt=1
else
nxt=0
fi
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s $nxt
add a comment |
I know I'm a couple of years late to the party, but just for anyone who might see this in the future: Here is a bash script that toggles autohide in the new system, simply save this in a text file somewhere, run chmod +x file/that/i/saved
and set the script to a key in Settings -> Keyboard -> Shortcuts.
#!/bin/bash
cur=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
if [[ cur -eq 0 ]]; then
nxt=1
else
nxt=0
fi
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s $nxt
I know I'm a couple of years late to the party, but just for anyone who might see this in the future: Here is a bash script that toggles autohide in the new system, simply save this in a text file somewhere, run chmod +x file/that/i/saved
and set the script to a key in Settings -> Keyboard -> Shortcuts.
#!/bin/bash
cur=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
if [[ cur -eq 0 ]]; then
nxt=1
else
nxt=0
fi
xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior -s $nxt
edited Jan 19 '17 at 23:16
David Foerster
27.7k1364109
27.7k1364109
answered Jan 19 '17 at 22:57
topisani
11
11
add a comment |
add a comment |
EDIT:
It's been pointed out in a comment that the autohide property has been changed to something else, and -T doesn't work with the new one :/
So, while I was fooling around with this, I made a little ruby script to toggle all panels at the same time. It seems to work.
#!/usr/bin/env ruby
#Toggle all panels' autohide property in xfce4
# fede s.
out = `xfconf-query -c xfce4-panel -l`.split
out.inject(Array.new) {|res, val|
m= /panel-([0-9]+)/.match(val); #get the panel numbers
if m then res.push(m[1]) end; #add only if it matches
res}.sort.uniq.each do #filter duplicates
| num |
`xfconf-query -c xfce4-panel -p /panels/panel-#{num}/autohide -T` #here is the command that will repeat for every panel found
end
It's probably not the best way to do it, and I don't really know much about ruby, so feel free to throw me in the fire! :P
If Someone want's to use it:
make sure you have ruby installed.
copy it to a file wherever you see fit (I have mine as
~/scripts/xfce/toogleautohide.rb
).
Make it executable
chmod +x path/to/your/script
add a comment |
EDIT:
It's been pointed out in a comment that the autohide property has been changed to something else, and -T doesn't work with the new one :/
So, while I was fooling around with this, I made a little ruby script to toggle all panels at the same time. It seems to work.
#!/usr/bin/env ruby
#Toggle all panels' autohide property in xfce4
# fede s.
out = `xfconf-query -c xfce4-panel -l`.split
out.inject(Array.new) {|res, val|
m= /panel-([0-9]+)/.match(val); #get the panel numbers
if m then res.push(m[1]) end; #add only if it matches
res}.sort.uniq.each do #filter duplicates
| num |
`xfconf-query -c xfce4-panel -p /panels/panel-#{num}/autohide -T` #here is the command that will repeat for every panel found
end
It's probably not the best way to do it, and I don't really know much about ruby, so feel free to throw me in the fire! :P
If Someone want's to use it:
make sure you have ruby installed.
copy it to a file wherever you see fit (I have mine as
~/scripts/xfce/toogleautohide.rb
).
Make it executable
chmod +x path/to/your/script
add a comment |
EDIT:
It's been pointed out in a comment that the autohide property has been changed to something else, and -T doesn't work with the new one :/
So, while I was fooling around with this, I made a little ruby script to toggle all panels at the same time. It seems to work.
#!/usr/bin/env ruby
#Toggle all panels' autohide property in xfce4
# fede s.
out = `xfconf-query -c xfce4-panel -l`.split
out.inject(Array.new) {|res, val|
m= /panel-([0-9]+)/.match(val); #get the panel numbers
if m then res.push(m[1]) end; #add only if it matches
res}.sort.uniq.each do #filter duplicates
| num |
`xfconf-query -c xfce4-panel -p /panels/panel-#{num}/autohide -T` #here is the command that will repeat for every panel found
end
It's probably not the best way to do it, and I don't really know much about ruby, so feel free to throw me in the fire! :P
If Someone want's to use it:
make sure you have ruby installed.
copy it to a file wherever you see fit (I have mine as
~/scripts/xfce/toogleautohide.rb
).
Make it executable
chmod +x path/to/your/script
EDIT:
It's been pointed out in a comment that the autohide property has been changed to something else, and -T doesn't work with the new one :/
So, while I was fooling around with this, I made a little ruby script to toggle all panels at the same time. It seems to work.
#!/usr/bin/env ruby
#Toggle all panels' autohide property in xfce4
# fede s.
out = `xfconf-query -c xfce4-panel -l`.split
out.inject(Array.new) {|res, val|
m= /panel-([0-9]+)/.match(val); #get the panel numbers
if m then res.push(m[1]) end; #add only if it matches
res}.sort.uniq.each do #filter duplicates
| num |
`xfconf-query -c xfce4-panel -p /panels/panel-#{num}/autohide -T` #here is the command that will repeat for every panel found
end
It's probably not the best way to do it, and I don't really know much about ruby, so feel free to throw me in the fire! :P
If Someone want's to use it:
make sure you have ruby installed.
copy it to a file wherever you see fit (I have mine as
~/scripts/xfce/toogleautohide.rb
).
Make it executable
chmod +x path/to/your/script
edited Nov 29 '17 at 17:41
derHugo
2,28021429
2,28021429
answered Jan 26 '14 at 3:53
fede s.
1213
1213
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f244466%2fcan-i-unhide-the-panel-in-xfce-4-10-using-a-key-press-rather-than-using-mouse-cu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
hmmm.. I think I could come up with something that would move your mouse over there on a key press. Would that do what you want?
– Seth♦
Jan 18 '13 at 2:51
@iSeth - if nothing better is possible then yes. But optimally I'd like to able to press a key and see the panel regardless of where the cursor is...
– Borsook
Jan 18 '13 at 8:15