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