mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
polybar
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
;=====================================================
|
||||
=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
@@ -51,10 +51,10 @@ scroll-down = i3wm-wsprev
|
||||
|
||||
[bar/example_left]
|
||||
inherit = bar/example
|
||||
monitor = ${env:MONITOR:DVI-D-1}
|
||||
monitor = ${env:MONITOR:HDMI-0}
|
||||
modules-left = i3
|
||||
modules-center =
|
||||
modules-right = spotify volume filesystem memory cpu gpu date
|
||||
modules-center = xwindow
|
||||
modules-right = spotify mpd volume filesystem memory gpu cpu date
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
;tray-transparent = true
|
||||
@@ -63,21 +63,12 @@ tray-padding = 2
|
||||
|
||||
[bar/example_right]
|
||||
inherit = bar/example
|
||||
monitor = ${env:MONITOR:HDMI-0}
|
||||
monitor = ${env:MONITOR:DP-0}
|
||||
modules-left = i3
|
||||
modules-right = date
|
||||
|
||||
[bar/example_laptop]
|
||||
inherit = bar/example
|
||||
modules-left = i3
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
modules-right = spotify volume filesystemroot memory cpu battery battery2 date
|
||||
modules-center = xwindow
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0::...%
|
||||
label = %title:0:30:...%
|
||||
|
||||
|
||||
[module/xkeyboard]
|
||||
@@ -96,20 +87,13 @@ label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystemroot]
|
||||
type=internal/fs
|
||||
interval = 25
|
||||
mount-0 = /
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/filesystemrootscratch]
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-1 = /scratch
|
||||
mount-2 = /scratch2
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
@@ -171,7 +155,7 @@ ws-icon-5 = 6;6
|
||||
ws-icon-6 = 7;
|
||||
ws-icon-7 = 8;
|
||||
ws-icon-8 = 9;
|
||||
ws-icon-9 = 10;9
|
||||
ws-icon-9 = 0;0
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
@@ -215,7 +199,6 @@ format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage%%
|
||||
format = <label> <ramp-coreload>
|
||||
|
||||
ramp-coreload-0 = ▁
|
||||
ramp-coreload-1 = ▂
|
||||
ramp-coreload-2 = ▃
|
||||
@@ -225,6 +208,7 @@ ramp-coreload-5 = ▆
|
||||
ramp-coreload-6 = ▇
|
||||
ramp-coreload-7 = █
|
||||
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
@@ -235,7 +219,7 @@ label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp4s0
|
||||
interface =
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
@@ -248,11 +232,11 @@ format-disconnected =
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 = :
|
||||
ramp-signal-1 = ::
|
||||
ramp-signal-2 = :::
|
||||
ramp-signal-3 = ::::
|
||||
ramp-signal-4 = :::::
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
@@ -288,7 +272,7 @@ label = %time% %date%
|
||||
format = <label>
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
type = internal/pulseaudio
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume =
|
||||
label-volume-foreground = ${root.foreground}
|
||||
@@ -315,7 +299,7 @@ bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery0 = BAT0
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
@@ -329,23 +313,17 @@ format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.foreground}
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground}
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/battery2]
|
||||
inherit = module/battery
|
||||
battery = BAT1
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
@@ -413,7 +391,7 @@ format-underline = #268bd2
|
||||
|
||||
[module/spotify]
|
||||
type=custom/script
|
||||
exec = python ~/.config/polybar/spotify.py
|
||||
exec = python3 ~/.config/polybar/spotify.py
|
||||
interval = 1
|
||||
tail = false
|
||||
format = <label>
|
||||
|
||||
@@ -8,6 +8,5 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config example_left &
|
||||
polybar -c ~/.config/polybar/config example_right &
|
||||
polybar -c ~/.config/polybar/config example_laptop &
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
Reference in New Issue
Block a user