Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
5
votes
1
answers
1986
views
Is there any way to syncronize notifications between a Linux desktop and iOS?
I use `notify-send` and `dunst` for my notification system on my desktop. After a research, I found out that there are a few commercial solutions for sending push notifications to iOS devices, and I even wrote a script using Pushover. However, I did not find any way to get notifications from the iPh...
I use
notify-send
and dunst
for my notification system on my desktop.
After a research, I found out that there are a few commercial solutions for sending push notifications to iOS devices, and I even wrote a script using Pushover.
However, I did not find any way to get notifications from the iPhone displayed on my desktop. (Preferably using a unified notification system, for example using notify-send
). I know that OSX has very good support for this, so I guess it's not impossible, but I did not find any working solution.
Of course, the best solution would be to get full sync, including removing a notification from both places if it has been read in one place.
A lot of this is already solved, of course. E-mail, Facebook, etc. notifications gets "synced" out-of-the-box basically.
I'm ok with having to write scripts, including having to write customized filters, etc. If there's no full solutions, I'm satisfied with getting the building blocks only, especially something that sends the iOS notifications to my desktop somehow.
EDIT: I added the tag Bluetooth because I learned that OSX does this using Bluetooth LE. Looking up Bluetooth LE support still did not help me, though.
kdani
(191 rep)
Dec 15, 2015, 07:06 PM
• Last activity: Jul 12, 2025, 10:08 AM
2
votes
1
answers
182
views
How to programmatically kill a notify-send window?
I have a bash script that opens a window with `notify-send`. I would like to close that window when the script ends, but I can find nothing to `kill`. The question is a duplicate of https://askubuntu.com/questions/639754/is-it-possible-to-cancel-or-clear-a-notification-created-by-using-notify-send ,...
I have a bash script that opens a window with
notify-send
. I would like to close that window when the script ends, but I can find nothing to kill
.
The question is a duplicate of https://askubuntu.com/questions/639754/is-it-possible-to-cancel-or-clear-a-notification-created-by-using-notify-send , but none of the answers work for me. The accepted answer says to kill a process called notify-osd
, but I don’t have anything like that. It is noticeable that that question is ten years' old.
My script is like
notify-send -u critical -i ~/.icons/my-icon.png "$titletext" "$helptext"
helppid=$!
…
kill $helppid
(The urgency setting is critical so that the Help window stays open until explicitly dismissed.)
The problem is that $!
does not return a value. ps -ef | grep -i notify
shows nothing connected to my script.
I have found a work-around, using the print-id
feature of notify-send
(described in https://askubuntu.com/a/161852 ):
print-id=$(notify-send -p -u critical -i ~/.icons/my-icon.png "$titletext" "$helptext")
notify-send -r $print-id -u low ~/.icons/my-icon.png "$titletext" Finished
Can anyone describe a better way to dismiss the help dialogue? I have read recommendations for yad
, and wonder whether to install and evaluate it.
Peter Bill
(526 rep)
Jan 8, 2025, 05:21 PM
• Last activity: Jan 9, 2025, 02:49 PM
4
votes
2
answers
1584
views
Prevent "notify-send" from stacking
I have wrote this script, when the increase volume button is pressed to display desktop notifications with "notify-send". when the button is pressed: `notify-send "Current volume 'pamixer --get-volume'"` The problems is that the notifications get stacked e.g. [![enter image description here][1]][1]...
I have wrote this script, when the increase volume button is pressed to display desktop notifications with "notify-send".
when the button is pressed:
Is there a way to prevent the notifications from stacking and just display the newest notification?
notify-send "Current volume 'pamixer --get-volume'"
The problems is that the notifications get stacked e.g. 
Daniel
(317 rep)
Jul 7, 2017, 08:01 PM
• Last activity: Jan 8, 2025, 06:04 PM
1
votes
1
answers
53
views
notify-send won't show up on generic X sessions, but works in a KDE session
I have Suse Tumbleweed, and sometimes I work in a KDE Plasma session on X, and in this case [`notify-send`](https://man.archlinux.org/man/notify-send.1.en) works as intended. Othertimes I use `icewm` or `compiz` as my window managers, and in both cases `notify-send` does not work as intended, that i...
I have Suse Tumbleweed, and sometimes I work in a KDE Plasma session on X, and in this case [
notify-send
](https://man.archlinux.org/man/notify-send.1.en) works as intended.
Othertimes I use icewm
or compiz
as my window managers, and in both cases notify-send
does not work as intended, that is, no popup windows is shown (but no error condition is raised).
How can I have working notifications in every case?
---
I understand that my question is a bit sketchy, if you have any question I'll be happy to add further info.
gboffi
(1376 rep)
Dec 16, 2024, 04:32 PM
• Last activity: Dec 18, 2024, 06:10 PM
4
votes
1
answers
2595
views
Notify-send doesn't work at Cinnamon
I am using `Linux Mint 17`. I want to be informed every 50 min, at every hour for small break. Here is ***cron job***: nazar@desktop ~ $ crontab -l DISPLAY=:0.0 XAUTHORITY=/home/matrix/.Xauthority 00 13 * * * /home/nazar/Documents/scripts/lunch_break_job.sh # JOB_ID_2 50 * * * * /home/nazar/Document...
I am using
***How to solve this issue?***
**SOLUTION:**
Now my
Linux Mint 17
.
I want to be informed every 50 min, at every hour for small break.
Here is ***cron job***:
nazar@desktop ~ $ crontab -l
DISPLAY=:0.0
XAUTHORITY=/home/matrix/.Xauthority
00 13 * * * /home/nazar/Documents/scripts/lunch_break_job.sh # JOB_ID_2
50 * * * * /home/nazar/Documents/scripts/pc_break.sh # JOB_ID_1
* * * * * /home/nazar/Documents/scripts/cron_job_test.sh # JOB_ID
Here is script for /home/nazar/Documents/scripts/cron_job_test.sh
:
#!/bin/bash
export DISPLAY=0.0
export XAUTHORITY=/home/matrix/.Xauthority
if [ -r "$HOME/.dbus/Xdbus" ]; then
. "$HOME/.dbus/Xdbus"
fi
/usr/bin/notify-send -i "hello"
This snippet of function:
if [ -r "$HOME/.dbus/Xdbus" ]; then
. "$HOME/.dbus/Xdbus"
fi
Checks DBUS_SESSION_BUS_ADDRESS
and uses it.
[According to this answer](https://unix.stackexchange.com/questions/111188/using-notify-send-with-cron) I executed script, and now my Dbus
is saved to $HOME/.dbus/Xdbus
:
nazar@desktop ~ $ cat $HOME/.dbus/Xdbus
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-flm7sXd0I4,guid=df48c9c8d751d2785c5b31875661ebae
export DBUS_SESSION_BUS_ADDRESS
All should work. I couldn't find what is missed. Because notification doesn't work now.
From terminal it works fine:

crontab
looks as follows:
DISPLAY=":0.0"
XAUTHORITY="/home/nazar/.Xauthority"
XDG_RUNTIME_DIR="/run/user/1000"
00 13 * * * /home/nazar/Documents/scripts/lunch_break_job.sh # JOB_ID_2
50 * * * * /home/nazar/Documents/scripts/pc_break.sh # JOB_ID_1
# * * * * * /home/nazar/Documents/scripts/cron_job_test.sh # JOB_ID
and cron_job_test.sh
looks now:
#!/bin/bash
/usr/bin/notify-send -i /home/nazar/Pictures/icons/Mail.png "hello" "It is just cron test message"
pc_break.sh
:
:bash
#!/bin/bash
/usr/bin/notify-send -i /home/nazar/Pictures/icons/download_manager.png "Break:" "Make a break for 10 min"
lunch_break_job.sh
:
:bash
#!/bin/bash
/usr/bin/notify-send -i /home/nazar/Pictures/icons/Apple.png "Lunch: " "Please, take a lunch!"
Keep in mind that scripts should be executable.
catch32
(221 rep)
Dec 7, 2015, 09:17 AM
• Last activity: Nov 12, 2024, 07:35 PM
0
votes
1
answers
194
views
Execute a task after waking up from Suspend/sleep
# Info Fedora 40, Gnome 46, Wayland ```bash systemctl --version systemd 255 (255.6-1.fc40) notify-send --version notify-send 0.8.3 ``` # Task I want to execute the following task after waking up from Suspend/sleep, it shows the duration of suspend in a notify-send desktop notification. ```bash mapfi...
# Info
Fedora 40, Gnome 46, Wayland
systemctl --version
systemd 255 (255.6-1.fc40)
notify-send --version
notify-send 0.8.3
# Task
I want to execute the following task after waking up from Suspend/sleep, it shows the duration of suspend in a notify-send desktop notification.
mapfile -t UnixDate < <(journalctl -o short-iso --since "24 hours ago" | grep systemd-sleep | tail -n 2 | awk '{print $1}' | xargs -L 1 date +%s -d)
if (("${#UnixDate[@]}" == 2)); then
Duration="$(python -c "import datetime; time=(${UnixDate} - ${UnixDate})/3600; print(str(datetime.timedelta(hours=time)))")"
notify-send \
--app-name="Suspend" \
--icon=face-smile \
--urgency=normal \
--expire-time=3000 \
--hint int:transient:1 \
"Slept" "${Duration}"
fi
# What I tried?
- Refer:
- man systemd-suspend.service
- [Running scripts before and after suspend with systemd – Just another Linux geek](https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/)
$ pwd
/usr/lib/systemd/system-sleep
$ ls -la
total 4.0K
755 -rwxr-xr-x. 1 root root 574 2024-05-19 09:24 Suspend_notification.sh
$\cat Suspend_notification.sh
#!/usr/bin/env bash
if [ "${1}" == "post" ]; then
journalctl -o short-iso --since "24 hours ago" | grep systemd-sleep | tail -n 2
mapfile -t UnixDate < <(journalctl -o short-iso --since "24 hours ago" | grep systemd-sleep | tail -n 2 | awk '{print $1}' | xargs -L 1 date +%s -d)
if (("${#UnixDate[@]}" == 2)); then
Duration="$(python -c "import datetime; time=(${UnixDate} - ${UnixDate})/3600; print(str(datetime.timedelta(hours=time)))")"
notify-send \
--app-name="Suspend" \
--icon=face-smile \
--urgency=critical \
"Slept" "${Duration}"
fi
fi
Porcupine
(2156 rep)
May 21, 2024, 03:57 PM
• Last activity: May 22, 2024, 01:32 PM
10
votes
2
answers
8290
views
Setup notify-send click action
Given some simple `notify-send` command inside a bash script such as notify-send "test" How can I make a determinate window gain focus when the user clicks that notification? I thought playing around with the `-a` switch would do something, but I can't get it to work either on GNOME Shell and XFCE .
Given some simple
notify-send
command inside a bash script such as
notify-send "test"
How can I make a determinate window gain focus when the user clicks that notification? I thought playing around with the -a
switch would do something, but I can't get it to work either on GNOME Shell and XFCE .
Waldir Leoncio
(377 rep)
Oct 9, 2019, 11:05 AM
• Last activity: Feb 15, 2024, 03:09 PM
1
votes
0
answers
1045
views
How to get user desktop notifications from a sudo-run systemd service on Wayland?
I'm running KDE Plasma on Nobara (Wayland), a Fedora-based distro. I'm brand new to Wayland and Nobara/Fedora, and have very limited experience with systemd. I have a bash script that sends a desktop notification with success, warning or error, depending on the outcome of the action. - When i run th...
I'm running KDE Plasma on Nobara (Wayland), a Fedora-based distro. I'm brand new to Wayland and Nobara/Fedora, and have very limited experience with systemd.
I have a bash script that sends a desktop notification with success, warning or error, depending on the outcome of the action.
- When i run the script manually (not sudo), i get a desktop notification.
- When i run the notification command in Terminal (not sudo), i get a desktop
notification.
- When i set up the /etc/systemd/system service, i do not get desktop
notification, and i get an error in journalctl (the script otherwise runs fine):
> Cannot autolaunch D-Bus without X11 $DISPLAY
Example notification within the script:
notify-send -a 'Successful!' -u low -i vcs-normal
systemd service:
[Unit]
Description=Test Script
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
Nice=10
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/home/username/.local/bin/test.sh
User=username
Group=users
My search indicates that the root-run systemd service doesn't have access to the user's desktop to put a notification. I saw an attempt around it , which was to add this to the service file:
[Service]
User=username
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
In my case, it stopped the error in the journal, but it did not give me the desktop notification.
I'm aware i can run systemd services as the user with
systemd --user start test
service files placed in ~/.config/systemd/user
, and the notifications will work (i have managed to achieve that). But in this instance i would like to run this script as root.
Thanks :)
EldestBizarre
(35 rep)
Oct 2, 2023, 11:47 AM
• Last activity: Oct 2, 2023, 12:09 PM
1
votes
1
answers
476
views
notify-send: send notification from script running as root
In my desktop environment, I am using `dunst` as notification daemon, and I can send notification as: notify-send "some message" I have a terminal window open, where I am logged in as root, and I have backup script running. I would like to receive notification when the script completes. How can I se...
In my desktop environment, I am using
dunst
as notification daemon, and I can send notification as:
notify-send "some message"
I have a terminal window open, where I am logged in as root, and I have backup script running. I would like to receive notification when the script completes.
How can I send notification as root, when I am logged in as regular user?
Martin Vegter
(586 rep)
Apr 3, 2023, 06:39 AM
• Last activity: Apr 3, 2023, 08:45 PM
2
votes
2
answers
2032
views
How can I change the text colour in a Plasma-desktop notification?
I am using Plasma-desktop notifications for all kinds of things, often from scripts using `kdialog` or `notify-send`. My Plasma desktop uses a dark background with a light foreground (text). Until a few months ago, all was well, but after a system update (in May?) my notifications kept their dark ba...
I am using Plasma-desktop notifications for all kinds of things, often from scripts using
kdialog
or notify-send
. My Plasma desktop uses a dark background with a light foreground (text). Until a few months ago, all was well, but after a system update (in May?) my notifications kept their dark background but started using dark text as well for the notification body. Hence, all I can read is the title.
I looked at my current colour scheme in ~/.local/share/color-schemes/*.colors
, setting all text (Foreground*=255,0,0
) to red, but the notification fonts did not change. This document provides some specifications and mentions that ForegroundInactive
should be used for the body text. However, this may be in a section of the colour scheme that is currently lacking. Also, the document is about three years old.
I'm using KDE Plasma v.5.25.5 on Gentoo Linux.
How can I change the colour of the (body) text in my notifications?
AstroFloyd
(161 rep)
Nov 6, 2022, 11:53 AM
• Last activity: Mar 22, 2023, 10:42 PM
5
votes
2
answers
2452
views
What is the notify-send alternative command in Pop! OS
I use `notify-send` in **Manjaro Linux** to send notifications, as follows: notify-send [OPTIONS] [Message Summary] [Message Body] However, I moved to Pop! OS and I found that `command not found: notify-send` I heard that notify-send is dead, so I am trying to get an alternative command to send noti...
I use
notify-send
in **Manjaro Linux** to send notifications, as follows:
notify-send [OPTIONS] [Message Summary] [Message Body]
However, I moved to Pop! OS and I found that command not found: notify-send
I heard that notify-send is dead, so I am trying to get an alternative command to send notifications in Pop! OS
Is it also possible to install notify-send in Pop! OS?
AKMalkadi
(431 rep)
Jan 6, 2022, 02:08 AM
• Last activity: Feb 22, 2023, 12:40 PM
1
votes
1
answers
206
views
sending discord notification if changes in bash output (will be put in a cron)
I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and NO i do not know what amass says if there is a difference. ```#!/bin/sh amass track -d beesy.me | grep "No diff...
I need to recieve a discord notification if this command does not have the string "No differences discovered" in the last 2 lines of the output. Ive been at it for hours I dont get it! and NO i do not know what amass says if there is a difference.
#!/bin/sh
amass track -d beesy.me | grep "No differences discovered"
if [[$? -eq 1]];
discord_notify "Changes in beesy.me domain!"
Simm Simmons
(11 rep)
Sep 14, 2022, 03:59 AM
• Last activity: Sep 14, 2022, 05:03 AM
2
votes
1
answers
489
views
notify-send with stderr in notification body if there is stderr
Suppose I have a command like: foo() { echo a echo b >&2 echo c echo d >&2 } I use the following command to process stdout in terminal but send error via notify-send foo 1> >(cat) 2> >(ifne notify-send "Error") The issue i am having is, I want to view the stderr (in this case `b d`) as notify-send b...
Suppose I have a command like:
foo() {
echo a
echo b >&2
echo c
echo d >&2
}
I use the following command to process stdout in terminal but send error via notify-send
foo 1> >(cat) 2> >(ifne notify-send "Error")
The issue i am having is, I want to view the stderr (in this case
b d
) as notify-send body.
I have tried:
foo 1> >(cat) 2> >(ifne notify-send "Error" "$(cat)")
foo 1> >(cat) 2> >(ifne notify-send "Error" "$(
Ahmad Ismail
(2998 rep)
Aug 11, 2022, 07:37 AM
• Last activity: Aug 11, 2022, 09:27 AM
0
votes
1
answers
329
views
How do I notify-send a long command?
I want to use notify-send to show a notification every n minutes to tell me the vpn status. The command would be running in a popup terminal I have already set up, hidden from view until I need to stop the while loop, then I'd just do ctrl-c. I wrote the command below, but it errors out infinitely:...
I want to use notify-send to show a notification every n minutes to tell me the vpn status.
The command would be running in a popup terminal I have already set up, hidden from view until I need to stop the while loop, then I'd just do ctrl-c.
I wrote the command below, but it errors out infinitely:
Invalid number of options.
while true
do
notify-send $(timeout 5s nordvpn status | rg -i "status|country|uptime" ; nordvpn settings | rg -i "kill switch|auto-connect")`
done
timeout 5s
is there because sometimes nordvpn is not responsive, and I need to kill the command after 5 seconds.
Thank you for assisting.
Marslander
(15 rep)
May 3, 2022, 04:18 AM
• Last activity: May 3, 2022, 04:39 AM
34
votes
1
answers
16241
views
What do a notify-send notification category, hint and version parameters mean?
The `notify-send` command manual says Usage: notify-send [OPTION...] [BODY] - create a notification Help Options: -?, --help Show help options Application Options: -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical). -t, --expire-time=TIME Specifies the timeout in milliseconds at...
The
notify-send
command manual says
Usage:
notify-send [OPTION...] [BODY] - create a notification
Help Options:
-?, --help Show help options
Application Options:
-u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).
-t, --expire-time=TIME Specifies the timeout in milliseconds at which to expire the notification.
-i, --icon=ICON[,ICON...] Specifies an icon filename or stock icon to display.
-c, --category=TYPE[,TYPE...] Specifies the notification category.
-h, --hint=TYPE:NAME:VALUE Specifies basic extra data to pass. Valid types are int, double, string and byte.
-v, --version Version of the package.
Meaning of the last 3 parameters: category
, hint
and version
is unclear to me.
Ivan
(18358 rep)
Dec 23, 2015, 10:42 PM
• Last activity: Apr 25, 2022, 07:35 AM
6
votes
1
answers
7800
views
How to customise the appearance of notify-send?
I am running linux mint and use the `notify-send` command for various purposes, and of course also receive notifications from regular applications e.g. discord or MS Teams When using Cinnamon DE, they look pretty normal, and I can even add icons to my custom `notify-send` calls to make it clear what...
I am running linux mint and use the
For example, the above notification should contain an icon as per this command:
notify-send --hint=int:transient:1 'Connecting to VPN... Check 2FA Device.' -i myicon
Where is this configured?
notify-send
command for various purposes, and of course also receive notifications from regular applications e.g. discord or MS Teams
When using Cinnamon DE, they look pretty normal, and I can even add icons to my custom notify-send
calls to make it clear what is going on
However, I recently started using XMonad WM, and I'm finding that not only are the regular application notifications ugly, but my custom ones which have nice icons in them also follow that same ugly style (please excuse blurry screenshot):

Bassie
(133 rep)
Jan 1, 2022, 11:25 AM
• Last activity: Jan 5, 2022, 01:45 AM
0
votes
0
answers
460
views
Notify-send to login screen in Debian 11
I used [this method][1] to send a message which is triggered by udev to the login screen. Which was working on Debian 10 with Gnome. On Debian 11 this is not working anymore. The user Debian-gdm which owns the login screen has no directory /run/user/$id/dbus-session. I don't know why. I have searche...
I used this method to send a message which is triggered by udev to the login screen. Which was working on Debian 10 with Gnome.
On Debian 11 this is not working anymore. The user Debian-gdm which owns the login screen has no directory /run/user/$id/dbus-session. I don't know why. I have searched but didn't found an answer what changed to Debian 11.
Do someone know the reason for this? Or has someone an advice for my task to send an notification to the login screen as another user.
Btw. if a process owned by Debian-gdm sends a notification it will displayed on login screen
h___m
(1 rep)
Dec 15, 2021, 03:03 PM
0
votes
1
answers
328
views
Elegant way for notification when power button pressed
I want to display a notification for user via ```notify-send``` when power button is pressed. Power button has a special script attached which allows to shutdown only when specified amount of time has passed. In that time when user cannot shutdown the device I want to display a notification which sa...
I want to display a notification for user via
-send
when power button is pressed.
Power button has a special script attached which allows to shutdown only when specified amount of time has passed.
In that time when user cannot shutdown the device I want to display a notification which says something like "Please wait...".
Problem is that when I put a -send
command into the script it spams entire screen with that notification because after pressing the button script is executed like 50 times. It is related to power button hardware (I think).
So my question is there a way to do it?
kamil_debski
(5 rep)
Dec 13, 2021, 11:02 AM
• Last activity: Dec 13, 2021, 06:06 PM
2
votes
1
answers
336
views
Why can't I use `kill $!` with parameter expansion in Bash, when the most recent process is "notify-send"?
According to Bash: [Special Parameters](https://unix.stackexchange.com/a/218271/66803): >($!) Expands to the process ID of the job most recently placed into the background, whether executed as an asynchronous command or using the bg builtin I can utilize this as follows: $ leafpad & [2] 3962 $ kill...
According to Bash: [Special Parameters](https://unix.stackexchange.com/a/218271/66803) :
>($!) Expands to the process ID of the job most recently placed into the background, whether executed as an asynchronous command or using the bg builtin
I can utilize this as follows:
$ leafpad &
3962
$ kill $!
This works and kills the most recent process (eg.
leafpad
) but for notify-send
it seems not working:
$ notify-send Hello &
4052
$ kill $!
bash: kill: (4052) - No such process
And I have to use killall notify-osd
in order to kill it.
So, I want to know why kill $!
doesn't work for notify-send
? And what is the proper way to kill such a process?
Note: I know that I can specify the time-out, but this is a different issue.
Pandya
(25613 rep)
Apr 2, 2016, 08:45 AM
• Last activity: Jun 14, 2021, 03:59 AM
0
votes
0
answers
414
views
notify-send from fcrontab not displaying notification
Referenced these links with no success. Most of them seem to be ubuntu, gnome, and cron syntax specific. 1. https://askubuntu.com/questions/298608/notify-send-doesnt-work-from-crontab/346580#346580 2. https://stackoverflow.com/questions/16519673/cron-with-notify-send 3. https://unix.stackexchange.co...
Referenced these links with no success. Most of them seem to be ubuntu, gnome, and cron syntax specific.
1. https://askubuntu.com/questions/298608/notify-send-doesnt-work-from-crontab/346580#346580
2. https://stackoverflow.com/questions/16519673/cron-with-notify-send
3. https://unix.stackexchange.com/questions/60778/how-can-i-get-an-alert-when-my-battery-is-about-to-die-in-linux-mint
Tried export display, dbus, full command path.
Running Arch Linux with dwm. Using fcron and fcrontab -e.
fcrontab
@ 5s /usr/local/shsc/battlow
When I call the script explicitly it works as intended (/usr/shsc/battlow
).
Script
#!/bin/sh
export DISPLAY=:0
battery_level=acpi -b | grep -P -o '[0-9]+(?=%)'
if [ $battery_level -le 100 ]; then
notify-send "Battery low" "Battery level is ${battery_level}%!"
fi
Tried with and without the export DISPLAY=:0
.
Verified display with
$ echo $DISPLAY
:0
# systemctl status fcron
● fcron.service - fcron periodical command scheduler
Loaded: loaded (/usr/lib/systemd/system/fcron.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-05-18 08:36:13 MST; 12min ago
Main PID: 8778 (fcron)
Tasks: 1 (limit: 18916)
Memory: 2.3M
CPU: 3.182s
CGroup: /system.slice/fcron.service
└─8778 /usr/bin/fcron -b
May 18 08:48:08 bar fcron: Job '/usr/local/shsc/battlow' started for user foo (pid 11372)
May 18 08:48:08 bar fcron: Job '/usr/local/shsc/battlow' completed
May 18 08:48:13 bar fcron: Job '/usr/local/shsc/battlow' started for user foo (pid 11388)
May 18 08:48:13 bar fcron: Job '/usr/local/shsc/battlow' completed
mcp
(827 rep)
May 18, 2021, 03:52 PM
Showing page 1 of 20 total questions