Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-12 23:21:12

merazi
Member
Registered: 2024-02-22
Posts: 8
Website

Show xfce4-panel on workspace switch

Hi, I'm trying to implement some kind of visual feedback for workspace switching, I'm trying to have a separate panel with just the workspace switcher and nothing more and set to auto-hide, however I would like this panel to show for a moment every time I switch workspaces... Any ideas/suggestions on how I could achieve this?

Little screenshot of the xfce4-panel I mentioned for illustrative purposes: https://ibb.co/wBMFymR

Offline

#2 2024-08-13 00:48:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Show xfce4-panel on workspace switch

There is no built-in functionality to accommodate this. However, you can script something to achieve a similar result.

Have a look at this script that fires up a notification on workspace change. For your use case, instead of the notify-send command on line 27, enter the following command:

xfconf-query -c xfce4-panel -p /panels/panel-3/autohide-behavior  -s 1 && xfconf-query -c xfce4-panel -p /panels/panel-3/autohide-behavior  -s 2

...note that you should change "panel-3" to be the actual number of the panel that you want to momentarily display.

With this script running, the panel should momentarily display when you change workspaces.


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 2024-08-13 03:02:51

merazi
Member
Registered: 2024-02-22
Posts: 8
Website

Re: Show xfce4-panel on workspace switch

This works perfectly just like I wanted, thank you ToZ!! :-)

Last edited by merazi (2024-08-13 03:03:02)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 523.23 KiB (Peak: 528.57 KiB) ]