Skip to content

Can I somehow set a shortcut to toggle show/hide all kinds of panel (tint2, Plasma panel, xfce4 panel)?

For example: I press a key and the panel shows up and remain showing up until I press that key again and it hides out and remain hiding out. It's not like toggle auto-hide mode. Some tuts I searched on the internet only for toggle auto-hide mode.

Sometime I don't have a mouse or don't want to touch it so set those panels in hidden mode and move the cursor to the bottom edge to show them are kind of inconvenient and slow.

So far I know how to toggle i3bar.

2 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
d2msrs

Author

163
posts
618
comments
21
media
View profile

4 comments

unknown author3 hidden

I don't know how to properly do this, but can't you just check if the process is running and, if it's running kill it, otherwise launch it?

Is it too slow?

1 points

I tried to run tint2 from terminal and then used the mouse to hide/show it but nothing happen in terminal.

1 points
unknown author1 hidden

I meant something like a script.

if [tint2 is running] then
    kill tint2
else
    launch tint2
fi

and you bind that on keyboard shortcut. There probably is a better way to toggle the bar visibility, this is just an idea, though.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.