aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2020-11-11 18:06:07 +0100
committerlonkaars <l.leblansch@gmail.com>2020-11-11 18:06:07 +0100
commit3aaea2beaf06335aac27d3c5e01b2b7922de3193 (patch)
tree738b785ccd89b0682e1157d79efd3279efaaf605
parent1822c81fbd6ce2c72510972a56c637f21e5a9f0e (diff)
added polybar config
-rw-r--r--.config/polybar/config238
1 files changed, 34 insertions, 204 deletions
diff --git a/.config/polybar/config b/.config/polybar/config
index f718a84..1f3bffc 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -7,48 +7,43 @@ margin-top = 0
[bar/main]
-; tray-position = right
-; tray-padding = ${barsettings.padding}
-; tray-background = ${color.bg}
-; tray-margin = 0
+tray-position = right
+tray-padding = ${barsettings.padding}
+tray-background = ${color.bg}
+tray-margin = 8
monitor =
-
monitor-fallback =
-
monitor-strict = false
override-redirect = false
bottom = false
-
fixed-center = true
width = 100%
-height = 16
-
+height = 32
offset-x = 0
offset-y = 0
-background = ${color.alpha}
-
+background = ${color.bg}
foreground = ${color.fg}
radius-top = 0.0
radius-bottom = 0.0
-padding = 0
+padding = 4
-module-margin-left = 0
-module-margin-right = 0
+module-margin-left = 2
+module-margin-right = 2
-font-0 = "Scientifica-11.bdf:pixelsize=11:weight=regular:size=4;2"
-font-1 = "Weather Icons:antialias=false:size=6;2"
-font-2 = "Siji:size=8;2"
-font-3 = "Material Design Icons:antialias=false:size=8;2"
-font-4 = "Fira Code:size=10;2"
+font-0 = "Product Sans:pixelsize=11:weight=regular:size=0;2"
+font-1 = "Product Sans:pixelsize=11:weight=bold:size=0;2"
+font-2 = "Material Design Icons:size=12;2"
-modules-center = onstart time weather date alsa
+modules-left = time date
+modules-center = weather mpd
+modules-right = alsa whoami
separator =
@@ -119,82 +114,23 @@ format-volume-padding = ${barsettings.padding}
label-volume = %percentage%%
-format-muted-prefix = " "
+format-muted-prefix = "󰖁 "
format-muted-background = ${color.fg}
format-muted-foreground = ${color.bg}
format-muted-padding = ${barsettings.padding}
label-muted = "Muted"
-ramp-volume-0 = 
-ramp-volume-1 = 
-ramp-volume-2 = 
-
-ramp-headphones-0 = 
-ramp-headphones-1 = 
-
-[module/battery]
-type = internal/battery
-
-full-at = 99
-battery = BAT1
-adapter = ACAD
-poll-interval = 2
-time-format = %H:%M
-
-format-charging = <animation-charging> <label-charging>
-format-charging-background = ${color.shade3}
-format-charging-foreground = ${color.fg-alt}
-format-charging-padding = ${barsettings.padding}
+ramp-volume-0 = 󰕿
+ramp-volume-1 = 󰖀
+ramp-volume-2 = 󰕾
-format-discharging = <ramp-capacity> <label-discharging>
-format-discharging-background = ${color.shade3}
-format-discharging-foreground = ${color.fg-alt}
-format-discharging-padding = ${barsettings.padding}
-
-format-full = <label-full>
-format-full-background = ${color.shade3}
-format-full-foreground = ${color.fg-alt}
-format-full-padding = ${barsettings.padding}
-
-label-charging = %percentage%%
-label-discharging = %percentage%%
-label-full = 100% Charged
-
-ramp-capacity-0 = 
-ramp-capacity-1 = 
-ramp-capacity-2 = 
-ramp-capacity-3 = 
-ramp-capacity-4 = 
-ramp-capacity-5 = 
-ramp-capacity-6 = 
-ramp-capacity-7 = 
-ramp-capacity-8 = 
-ramp-capacity-9 = 
-
-animation-charging-0 = 
-animation-charging-1 = 
-animation-charging-2 = 
-animation-charging-3 = 
-
-animation-charging-framerate = 750
-
-[module/cpu]
-type = internal/cpu
-
-interval = 1
-
-format = <label>
-format-prefix = 󰍛
-format-background = ${color.bg}
-format-foreground = ${color.shade2}
-format-padding = ${barsettings.padding}
-
-label = " %percentage%%"
+ramp-headphones-0 = 󰋋
+ramp-headphones-1 = 󰟎
[module/date]
type = internal/date
interval = 1.0
-time =  %A, %B %d
+time = 󰃭 %A, %B %d
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
@@ -205,7 +141,7 @@ label = %time%
[module/time]
type = internal/date
interval = 1.0
-time =  %H:%M
+time = 󰅐 %H:%M
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
@@ -213,37 +149,17 @@ format-padding = ${barsettings.padding}
label = %time%
-[module/memory]
-type = internal/memory
-
-interval = 3
-
-format = <label>
-format-prefix = 󰘚
-format-background = ${color.bg}
-format-foreground = ${color.fg}
-format-padding = ${barsettings.padding}
+[module/mpd]
+type = internal/mpd
+format-online = 󰎇 <label-song>
+format-offline =
-label = " %mb_used%"
+icon-play = 󰐊
+icon-pause = 󰏤
-[module/packages]
-type = custom/script
-exec = echo "󰏗 `pacman -Q | wc -l`"
-format-padding = ${barsettings.padding}
-interval = 60
-format-background = ${color.bg}
-format-foreground = ${color.shade3}
-
-[module/player-mpris-simple]
-type = custom/script
-exec = ~/.config/polybar/player-mpris-simple.sh
-interval = 3
-format-background = ${color.bg}
-format-foreground = ${color.fg}
-format-padding = ${barsettings.padding}
-click-middle = playerctl previous &
-click-right = playerctl next &
-click-left = playerctl play-pause &
+label-song = %{T2}%artist%%{T-}: %title%
+label-song-maxlen = 50
+label-song-ellipsis = true
[module/weather]
type = custom/script
@@ -257,97 +173,11 @@ format-padding = ${barsettings.padding}
[module/whoami]
type = custom/script
-exec = echo "$(whoami)@$(hostname)"
+exec = echo "󰀄 %{T2}$(whoami)%{T-}@%{T2}$(hostname)%{T-}"
interval = 9999999
label-font = 2
-format-background = ${color.shade1}
+format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}
-[module/intip]
-type = custom/script
-exec = echo "$(ifconfig | grep -Po --color=never '(?<=inet addr:)(192\.\d+.\d+\.\d+)')"
-interval = 9999999
-label-font = 2
-format-background = ${color.shade3}
-format-foreground = ${color.fg-alt}
-format-padding = ${barsettings.padding}
-[module/extip]
-type = custom/script
-exec = echo "$(curl -s ifconfig.me)"
-interval = 9999999
-label-font = 2
-format-background = ${color.shade3}
-format-foreground = ${color.fg-alt}
-format-padding = ${barsettings.padding}
-
-[module/network]
-type = internal/network
-interface = wlan0
-
-interval = 1.0
-accumulate-stats = true
-unknown-as-up = true
-
-format-connected = <ramp-signal> <label-connected>
-format-connected-background = ${color.shade2}
-format-connected-foreground = ${color.fg-alt}
-format-connected-padding = ${barsettings.padding}
-
-format-disconnected = <label-disconnected>
-format-disconnected-background = ${color.shade2}
-format-disconnected-foreground = ${color.fg-alt}
-format-disconnected-padding = ${barsettings.padding}
-
-label-connected = %essid%
-label-disconnected =  Disconnected
-
-ramp-signal-0 = 
-ramp-signal-1 = 
-ramp-signal-2 = 
-ramp-signal-3 = 
-ramp-signal-4 = 
-
-; [module/i3]
-; type = internal/xworkspaces
-
-; pin-workspaces = true
-
-; enable-click = true
-; enable-scroll = true
-
-; format = <label-state>
-; format-padding = 0
-
-; label-monitor = %name%
-
-; label-active = %name%
-; label-active-foreground = ${color.bg}
-; label-active-background = ${color.shade5}
-
-; label-occupied = %icon%
-; label-occupied-underline = ${color.bg}
-
-; label-urgent = %icon%
-; label-urgent-foreground = ${color.fg}
-; label-urgent-background = ${color.bg}
-
-; label-empty = %name%
-; label-empty-background = ${color.bg}
-; label-empty-foreground = ${color.fg}
-
-; label-active-padding = ${barsettings.padding}
-; label-urgent-padding = ${barsettings.padding}
-; label-occupied-padding = ${barsettings.padding}
-; label-empty-padding = ${barsettings.padding}
-
-[module/onstart]
-type = custom/script
-exec = sh ~/.config/polybar/onstart.sh > /dev/null
-interval = 999999999
-format-background = ${color.alpha}
-format-foreground = #ff00ff
-format-padding = 0
-
-
; vim:ft=dosini