From 1f9be1ac7badfdf81103bfefd2d9db2f7897976a Mon Sep 17 00:00:00 2001 From: aj Date: Fri, 15 Mar 2019 11:09:49 +0000 Subject: [PATCH] added mpd/ncmcpp --- i3/config | 3 ++- polybar/config | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 2dd0eda..0589b27 100644 --- a/i3/config +++ b/i3/config @@ -27,6 +27,7 @@ bindsym Control+$alt+Left workspace prev bindsym $mod+n exec --no-startup-id $term -e "bash -ic ranger" bindsym $mod+i exec --no-startup-id $term -e "bash -ic nmtui" +bindsym $mod+comma exec --no-startup-id $term -e "bash -ic ncmpcpp" bindsym $mod+m exec --no-startup-id spotify bindsym $mod+c exec --no-startup-id firefox bindsym $mod+o exec --no-startup-id obs --startrecording @@ -37,7 +38,7 @@ assign [class="obs"] 101:obs bindsym $mod+shift+l exec pkill -KILL -u andy -bindsym $mod+l exec --no-startup-id firefox -new-window last.fm/user/sarsoo +bindsym $mod+l exec --no-startup-id firefox last.fm/user/sarsoo bindsym $mod+x exec --no-startup-id firefox 192.168.0.41 set $mod Mod4 diff --git a/polybar/config b/polybar/config index 871875f..b855861 100644 --- a/polybar/config +++ b/polybar/config @@ -63,7 +63,7 @@ font-0 = dina:pixelsize=12;1 font-1 = siji:pixelsize=10;1 font-2 = unifont:size=6;1 -modules-left = i3 +modules-left = i3 mpd ;modules-center = mpd ;modules-center = xwindow modules-right = wifi public-ip vpn battery powermenu date @@ -324,4 +324,26 @@ format-foreground = #ffffff ;format-overline = #3c28d6 format-padding = 2 +[module/mpd] +type = internal/mpd + +; Host where mpd is running (either ip or domain name) +; Can also be the full path to a unix socket where mpd is running. +host = 127.0.0.1 +port = 6600 + +; Seconds to sleep between progressbar/song timer sync +; Default: 1 +interval = 1 + +format-online = + +label-song = %artist% / %album% / %title% + +format-online-underline = ${xrdb:color6:#222} +format-online-foreground = #ffffff +;format-underline = ${xrdb:color3:#222} +;format-overline = #3c28d6 +format-online-padding = 2 + ; vim:ft=dosini