You are not logged in.

#1 2022-04-03 06:38:06

pyari_billi
Member
Registered: 2022-04-03
Posts: 1

[SOLVED] bash style expand using keyboard shortcuts in xfce

I always use my apps in full screen, but I would like to know my battery status once in a while as a notification when I press a keyboard shortcut in XFCE.

If I am in my terminal, I simply execute
$ notify-send "`acpi`"
This gives me a nice pop-up with my battery status.

However, I want to be able to do this with a shortcut.
If I add the same command in keyboard shortcuts for XFCE, the notification simply says `acpi`.
I think bash expands `acpi`, whereas XFCE application shortcuts doesn't.

How do I solve this?

Last edited by pyari_billi (2022-04-03 13:18:16)

Offline

#2 2022-04-03 07:45:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,704

Re: [SOLVED] bash style expand using keyboard shortcuts in xfce

bash -c 'notify-send "`acpi`"'

Offline

Board footer

Powered by FluxBB