diff options
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x | .config/herbstluftwm/autostart | 8 | ||||
-rwxr-xr-x | .config/herbstluftwm/panel.sh | 31 |
2 files changed, 25 insertions, 14 deletions
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index adef952..238cbbe 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -130,13 +130,7 @@ hc keybind Mod4-Shift-o spawn ~/stuffs/tor/start-tor-browser hc keybind Mod4-Shift-t spawn transmission-gtk hc keybind Mod4-Shift-v spawn urxvt -name "vim" -e vim hc keybind Mod4-Shift-w spawn urxvt -name "weechat" -e weechat - -# banshee -hc keybind Mod4-Shift-Up spawn banshee --show -hc keybind Mod4-Shift-Down spawn banshee --hide -hc keybind Mod4-Left spawn banshee --restart-or-previous -hc keybind Mod4-Right spawn banshee --next -hc keybind Mod4-Down spawn banshee --toggle-playing +hc keybind Mod4-Shift-p spawn urxvt -e pms # dmenu hc keybind Mod4-0 spawn dmenu_run -fn $efont -p "Run:" -h 18 -nb $bg_normal -nf $fg_normal \ diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 8852924..3d264a0 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -112,7 +112,7 @@ fields[2]=$(update_winlist) fields[3]="%{r}" # when fields[4]="" -# banshee np +# mpd fields[5]="" # conky stats fields[6]="" @@ -130,12 +130,6 @@ fields[7]="" # with the first element in the line as a # unique identifier for the event type -get_stat() { - { - conky -c ~/.config/herbstluftwm/panel/conky_stats - } -} - get_date() { { while true; do @@ -145,6 +139,12 @@ get_date() { } | awk '$0 != l { print ; l=$0 ; fflush(); }' } +get_stat() { + { + conky -c ~/.config/herbstluftwm/panel/conky_stats + } +} + get_when() { { while true; do @@ -158,6 +158,12 @@ get_when() { } | awk '$0 != l { print ; l=$0 ; fflush(); }' } +get_mpd() { + while true; do + mpc current -f "mpd\t%artist%\t%album%\t%title%" --wait + done +} + ####################### @@ -174,6 +180,8 @@ get_when() { child[2]=$! get_when & child[3]=$! + #get_mpd & + #child[4]=$! hc --idle @@ -282,6 +290,15 @@ get_when() { date) notify-send "$(cal)" ;; + #mpd) + # artist=$(mpc current -f '%artist%') + # albumartist=$(mpc current -f '%albumartist%') + # if [[ "$artist" != "$albumartist" ]]; then + # artist=$(echo -e "album artist: $albumartist\nartist: $artist") + # else + # artist=$(echo "artist: $artist") + # fi + # file="/home/shmibs/music/$(mpc current -f '%file%')" stats) urxvt -e htop & ;; |