Skip to content

Commit

Permalink
dunst: refresh i3blocks through dedicated helper script
Browse files Browse the repository at this point in the history
We cannot provide arguments to dunst scripts (see
dunst-project/dunst#639 and
dunst-project/dunst#811) so we have to create
a dedicated helper script to re-parse the app name and act accordingly.
  • Loading branch information
maximelouet committed Sep 15, 2023
1 parent 70ede0f commit c4a18c7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions config/dunst/dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,20 @@

[spotify]
appname = Spotify
script = ~/scripts/i3blocks-refresh-music.sh
script = ~/scripts/i3blocks-refresh-from-dunst.sh
frame_color = "#1DB954" # spotify green
set_transient = true
history_ignore = true
timeout = 6
markup = no # some Spotify song names fuck this up

[bluetooth]
appname = *bluetooth*
script = ~/scripts/i3blocks-refresh-volume.sh
appname = *blue*
script = ~/scripts/i3blocks-refresh-from-dunst.sh

[network]
appname = *network*
script = ~/scripts/i3blocks-refresh-from-dunst.sh

[screenshot]
summary = "*reenshot saved" # match "Full screenshot saved" etc
Expand Down

0 comments on commit c4a18c7

Please sign in to comment.