Battery notification daemon in i3

I’m trying to get rid of the dunst notifications when the battery is discharging or is fully charged as as they trigger quite often when I’m running games on steam. Does anyone know where the daemon that watches for the battery status or something similar that triggers it is?

here’s the garuda-inxi

System:
  Kernel: 6.7.3-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=2f39e627-14d1-4e25-a09f-90b13a6ef0d9 rw rootflags=subvol=@
    quiet loglevel=3 ibt=off
  Desktop: i3 v: 4.23 info: polybar vt: 7 dm: LightDM v: 1.32.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ROG Strix G731GT_G731GT v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: G731GT v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: G731GT.307 date: 04/28/2020
Battery:
  ID-1: BAT0 charge: 32.9 Wh (96.5%) condition: 34.1/50.5 Wh (67.5%)
    volts: 12.5 min: 12.5 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: not charging
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xD (13) microcode: 0xFA
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 800 min/max: 800/4500 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 9: 800 10: 800 11: 800 12: 800 bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b
    class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 545.29.06 alternate: nouveau,nvidia_drm non-free: 545.xx+
    status: current (as of 2023-10; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 3 speed: 8 GT/s
    lanes: 16 ports: active: none empty: HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:1f91 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.11 compositor: Picom v: git-fc1d1
    driver: X: loaded: modesetting,nvidia unloaded: nouveau
    alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x479d built: 2019 res: 1920x1080
    hz: 120 dpi: 128 gamma: 1.2 size: 382x215mm (15.04x8.46")
    diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
  API: Vulkan v: 1.3.276 layers: 12 device: 0 type: integrated-gpu
    name: Intel UHD Graphics 630 (CFL GT2) driver: mesa intel v: 23.3.5-arch1.1
    device-ID: 8086:3e9b surfaces: xcb,xlib device: 1 type: discrete-gpu
    name: NVIDIA GeForce GTX 1650 driver: nvidia v: 545.29.06
    device-ID: 10de:1f91 surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.3.5-arch1.1 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Device-3: GN Netcom Jabra Evolve 65 driver: jabra,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:4
    chip-ID: 0b0e:030c class-ID: 0300 serial: <filter>
  API: ALSA v: k6.7.3-zen1-2-zen status: kernel-api tools: N/A
  Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:6
    chip-ID: 8087:0aaa class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 1.14 TiB used: 262.87 GiB (22.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston
    model: RBUSNS8154P3256GJ3 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 15.8 Gb/s lanes: 2 tech: SSD serial: <filter>
    fw-rev: E8FK11.T temp: 24.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LX015-1U7172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: SDM1 scheme: MBR
Partition:
  ID-1: / raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
    used: 31.9 GiB (13.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
    used: 31.9 GiB (13.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
    used: 31.9 GiB (13.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
    used: 31.9 GiB (13.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.47 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 39.0 C pch: 47.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2900
Info:
  Processes: 308 Uptime: 1h 34m wakeups: 0 Memory: total: 16 GiB
  available: 15.47 GiB used: 3.51 GiB (22.7%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
  pm: pacman pkgs: 1551 libs: 470 tools: octopi,paru Shell: Zsh v: 5.9
  running-in: alacritty inxi: 3.3.31
Garuda (2.6.23-1):
  System install date:     2024-01-28
  Last full system update: 2024-02-08
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:

What’s the problem with not posting garuda-inxi?
It contains additional, useful information about the status of your system.

Dunst is just the app that issues data, messages and warnings.
The originator is usually included in the message, if not you have to change the settings of dunst.
Then prevent the messages from this app.

Please, follow the template.

Summary

:warning: Missing information requested in the template may result in not receiving assistance

Make sure you have done the following before you post:

Issue still unresolved? Then:

  • ONE issue per topic.

  • Describe your issue in detail. The more we know, the better we can help

  • Show us the results of your searches, and what you’ve tried

  • After rebooting, post the FULL output of garuda-inxi in the body of the post (not linked externally, or collapsed with the “hide details” feature)

  • Format terminal output (including your garuda-inxi) as a code block by clicking the preformatted text button (</>) , or put three tildes (~) above and below the text

Without garuda-inxi this request will be moved to 412 Precondition Failed

2 Likes

I just thought it was pre-configured in i3 installations, because I haven’t messed with that part. I just changed the dunstrc a bit.

Correct, but Dunst does not send messages on its own.

Or

Then turn off the notifications in this app.

Add %a to

format = "<b>%s</b>\n%b"
format = "%a\n<b>%s</b>\n%b"

My English is bad, sorry.

1 Like

I know dunst itself manage what notifications to show. Maybe I wasn’t clear enough. I’m just trying to figure out what process calls dunst to send the notification for the battery. I don’t want to get rid of the notifications altogether.

That’s what I want to know. What app is that.

Unfortunately, it isn’t in this case.

Did you change like I wrote?
Did you reboot.
Samples

image

Check in terminal

notify-send -h string:fgcolor:#ff4444 Hello

image

You were right. It was xfce’s Power Manager.
Now I will have to check how to configure the notifications there. If not I’ll have to disable them from dunst. Thanks a lot for your patience.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.