From acf8461f280289cc34938f26c018eb35e6292365 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 2 Feb 2021 21:40:26 +0100 Subject: [PATCH] up polybar --- conf.d/polybar/config | 11 ++++++++--- conf.d/polybar/launch.sh | 12 ++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 conf.d/polybar/launch.sh diff --git a/conf.d/polybar/config b/conf.d/polybar/config index 6715878..6f87b2b 100644 --- a/conf.d/polybar/config +++ b/conf.d/polybar/config @@ -35,6 +35,7 @@ background-alt = #aa000000 ;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #555 +foreground-1 = #fbcdeb primary = #ffb52a secondary = #e60053 alert = #bd2c40 @@ -70,7 +71,7 @@ font-1 = "FontAwesome:size=12" modules-left = filesystem modules-center = mpd -modules-right = pulseaudio publicip +modules-right = pulseaudio publicip tray-position = right tray-padding = 2 @@ -79,6 +80,8 @@ tray-padding = 2 cursor-click = pointer cursor-scroll = ns-resize +enable-ipc = true + [module/filesystem] @@ -98,7 +101,7 @@ type = internal/mpd host = 127.0.0.1 port = 6600 interval = 2 -format-online = +format-online = " %{F#fbcdeb}%{F-}: %{F#1592a6}%{F-}" icon-prev = %{T2}%{T-} icon-stop = %{T2}%{T-} @@ -106,8 +109,10 @@ icon-play = %{T2}%{T-} icon-pause = %{T2}%{T-} icon-next = %{T2}%{T-} +label-song = %artist% label-song-maxlen = 25 label-song-ellipsis = true +label-time = %elapsed% / %total% @@ -221,7 +226,7 @@ screenchange-reload = true ;compositing-background = screen ;compositing-foreground = source ;compositing-border = over -;pseudo-transparency = false +pseudo-transparency = true diff --git a/conf.d/polybar/launch.sh b/conf.d/polybar/launch.sh new file mode 100644 index 0000000..f640aa2 --- /dev/null +++ b/conf.d/polybar/launch.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been shut down +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +# Launch Polybar, using default config location ~/.config/polybar/config +polybar saitama & + +echo "Polybar launched..."