Skip to content

Commit

Permalink
Using notify-send with twmn notification daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
livibetter committed Sep 7, 2011
1 parent 57ef249 commit 1d220b8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dzen/status-mpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ if [[ -r "$LF_SUBMIT_CURRENTSONG" ]]; then
song_title="$(line <"$LF_SUBMIT_CURRENTSONG")"
song_artist="$(sed '2q;d' "$LF_SUBMIT_CURRENTSONG")"
line="$song_artist - $song_title"
notify-send "$line"
echo -n "^pa(5;$((i*line_height + 5)))$line"
else
mpc -f '%artist% - %title% - %album%' | while read line; do
echo -n "^pa(5;$((i*line_height + 5)))$line"
(( i == 0 )) && notify-send "$line"
((i++))
done
fi
Expand Down
34 changes: 34 additions & 0 deletions twmn.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[gui]
absolute_position=
always_on_top=true
background_color=#603030
bounce=true
font=Envy Code R
font_size=13
foreground_color=#ffaaaa
height=18
in_animation=38
in_animation_duration=1000
out_animation=13
out_animation_duration=1000
position=top_right
screen=

[icons]
critical_icon=/usr/share/icons/gnome/16x16/status/dialog-error.png
info_icon=/usr/share/icons/gnome/16x16/status/dialog-information.png
warning_icon=/usr/share/icons/gnome/16x16/status/dialog-warning.png

[main]
activate_command=
duration=3000
enable_shortcuts=true
port=9797
sound_command=

[shortcuts]
activate=Return
hide=X
modifiers=Alt+
next=J
previous=K

0 comments on commit 1d220b8

Please sign in to comment.