Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-05-21 15:43:43

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Panel Button Showing BASH Output?

hi

how to create a super simple panel button which, when you click on the button, simply displays the output of a BASH script. No GUI, no configuration options.

The display would be a file path that, when you click on the filepath, the file opens with it's normal, associated application.

hoping there's a non-code way. i mean, i hope there's a way without building a full-fledged panel plugin.

thx!

Last edited by johnywhy (2020-05-21 15:47:22)


arch xfce x86_64

Offline

#2 2020-05-21 17:50:34

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 395

Re: Panel Button Showing BASH Output?

I think this is what your looking for??? You would just add your script as the command and maybe zenity to display the output.

https://docs.xfce.org/xfce/xfce4-panel/launcher?s[]=create&s[]=launcher


Siduction
Debian Sid
Xfce 4.18

Offline

#3 2020-05-21 19:52:49

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Panel Button Showing BASH Output?

eriefisher wrote:

I think this is what your looking for??? You would just add your script as the command and maybe zenity to display the output.

https://docs.xfce.org/xfce/xfce4-panel/launcher?s[]=create&s[]=launcher

Thx for that! I think i would use the exec key
https://specifications.freedesktop.org/ … 01s07.html

It would be nice to match the appearance of other plugins, for example the Directory plugin. My plugin is somewhat similar-- popup list of files. If i use zenity, it's going to look different. Any ideas?

There's also GenMon
https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin

[Edit] GenMon apparently displays info "cyclically", which isn't what i want.

Last edited by johnywhy (2020-05-24 01:28:14)


arch xfce x86_64

Offline

#4 2020-05-21 20:54:35

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 395

Re: Panel Button Showing BASH Output?

You could create what you need with a gtk dialogue. It may look better.


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2020-05-24 01:30:33

johnywhy
Member
Registered: 2011-10-09
Posts: 283

Re: Panel Button Showing BASH Output?

eriefisher wrote:

You could create what you need with a gtk dialogue. It may look better.

Is it possible to get display like xfce Directory plugin, without building a whole plugin from scratch?

i use yad, which i think is a fork of zenity, and i think displays gtk dialogs.
http://manpages.ubuntu.com/manpages/xen … yad.1.html

Performance is weird on arch xfce.
https://forum.xfce.org/viewtopic.php?pid=58273

Last edited by johnywhy (2020-05-24 01:40:40)


arch xfce x86_64

Offline

Board footer

Powered by FluxBB