diff options
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x | .config/herbstluftwm/autostart | 13 | ||||
-rwxr-xr-x | .config/herbstluftwm/mpc-status.sh | 6 | ||||
-rwxr-xr-x | .config/herbstluftwm/panel.sh | 2 | ||||
-rwxr-xr-x | .config/herbstluftwm/pvol.sh | 3 |
4 files changed, 8 insertions, 16 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index f69db5a..266b679 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -216,10 +216,9 @@ for monitor in $(hc list_monitors | cut -d: -f1) ; do done # run dunst with theme colours -# pkill dunst -# dunst -lb $bar_bg -nb $bar_bg -cb $bg_focus \ -# -lf $bar_fg -nf $bar_fg -cf $fg_focus \ -# -frame_color $bg_focus -geom "0x3-4+$(($bheight + 4))" \ -# -fn "$mfont $mfont_size,$jfont $jfont_size,$cfont $cfont_size,$efont $efont_size,$bkfont $bkfont_size" \ -# -max_icon_size 0 -# +pkill dunst +dunst -lb $bar_bg -nb $bar_bg -cb $bg_focus \ + -lf $bar_fg -nf $bar_fg -cf $fg_focus \ + -frame_color $bg_focus -geom "0x3-4+$(($bheight + 4))" \ + -fn "$mfont $mfont_size" \ + -max_icon_size 0 diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh index a9a1fd9..58b530f 100755 --- a/.config/herbstluftwm/mpc-status.sh +++ b/.config/herbstluftwm/mpc-status.sh @@ -1,9 +1,5 @@ #!/bin/bash -# i patched dunst to clear all on SIGUSR1 -killall -SIGUSR1 dunst -# race condition, obvs, but this should be plenty time - case "$1" in next) mpc next @@ -36,4 +32,4 @@ message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%') $(mpc status | tail -n -2 | sed -re 's/volume.*repeat/\nrepeat/' -e 's/( ){3,4}/\n/g' -e '/volume: /d')" -notify-send --icon=/tmp/mpd-icon.png "$message" +notify-send -t 4000 -a closeme --icon=/tmp/mpd-icon.png "$message" diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 057245a..41708a6 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -313,7 +313,7 @@ event_when() { while read command; do case "$command" in date) - notify-send "$(LANG=ja_JP.UTF-8 cal)" + notify-send "$(LANG=ja_JP.UTF-8 cal)" ;; mpd) ~/.config/herbstluftwm/mpc-status.sh diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh index 5c7b351..a3ce9e1 100755 --- a/.config/herbstluftwm/pvol.sh +++ b/.config/herbstluftwm/pvol.sh @@ -1,8 +1,5 @@ #!/bin/bash -# i patched dunst to clear all on SIGUSR1 -killall -SIGUSR1 dunst - # race condition, obvs, but this is hopefully time enough case "$1" in down) |