Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-07-27 17:22:40

DebianXfceUser
Member
Registered: 2024-07-05
Posts: 4

Application Finder: Custom Action to Launch Terminal and Keep Open

Hi Everyone,

I would like like to map a quick weather forecast to a custom action. I would like to enter `!wttr` to  launch `exo-open --launch TerminalEmulator curl wttr.in/new+york`. The issue is that xfce4-terminal does not stay open long enough to see the output. It closes immediately. I have tried `-H` , `-e`, `read` , `$SHELL` all with the same result. Any ideas?

Thanks!

Offline

#2 2024-07-27 17:46:31

DebianXfceUser
Member
Registered: 2024-07-05
Posts: 4

Re: Application Finder: Custom Action to Launch Terminal and Keep Open

Well, with some tinkering...I think I have it

`xfce4-terminal --maximize --hold --command="curl wttr.in/new+york"`

Posting here for prosperity; However, if there is a better way, I am open to it.

Offline

#3 2024-08-06 01:10:45

him610
Member
From: Pennsylvania USA
Registered: 2022-02-19
Posts: 28

Re: Application Finder: Custom Action to Launch Terminal and Keep Open

Why not install "xfce4-weather-plugin" then add it to the panel.

The current and future weather is based on the European model, but it works admirably well.


Do no harm.
Respect ones neighbors.
Especially old friends.

Offline

#4 2024-08-08 11:40:16

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Application Finder: Custom Action to Launch Terminal and Keep Open

You don't even need the terminal for this.
A dialog like zenity or yad would do.
But first you have to get weather in JSON format an like this

curl wttr.in/new+york?format=j1

Ad use jq command to parse the output like here
https://unix.stackexchange.com/question … ere-a-word

When you figure it out you can use zenity or yad to display the processed output.


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 525.08 KiB (Peak: 525.92 KiB) ]