Fixing polybar
This commit is contained in:
@@ -41,10 +41,9 @@ background = ${colors.background}
|
|||||||
|
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
line-size = 2
|
line-size = 3
|
||||||
|
|
||||||
module-margin-right = 2
|
module-margin= 2
|
||||||
module-margin-left = 2
|
|
||||||
|
|
||||||
font-0 = "Product Sans:pixelsize=9:weight=regular;2"
|
font-0 = "Product Sans:pixelsize=9:weight=regular;2"
|
||||||
font-1 = "Product Sans:pixelsize=9:weight=bold;2"
|
font-1 = "Product Sans:pixelsize=9:weight=bold;2"
|
||||||
@@ -58,24 +57,30 @@ override-redirect = true
|
|||||||
[bar/workspaces]
|
[bar/workspaces]
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
|
|
||||||
|
background = ${colors.clear}
|
||||||
|
|
||||||
width = 8%
|
width = 8%
|
||||||
offset-x = 4px
|
offset-x = 4px
|
||||||
|
|
||||||
modules-center = i3
|
modules-left = i3
|
||||||
|
|
||||||
# ========== info
|
# ========== info
|
||||||
[bar/info]
|
[bar/info]
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
|
|
||||||
width = 17%
|
width = 16%
|
||||||
offset-x = 83%:-133px
|
offset-x = 84%:-133px
|
||||||
|
|
||||||
# TODO battery?
|
|
||||||
modules-center = cpu memory volume date
|
modules-center = cpu memory volume date
|
||||||
|
|
||||||
[bar/info_laptop]
|
[bar/info_laptop]
|
||||||
inherit = bar/info
|
inherit = bar/info
|
||||||
|
|
||||||
|
width = 18%
|
||||||
|
offset-x = 82%:-133px
|
||||||
|
|
||||||
|
modules-center = cpu memory battery volume date
|
||||||
|
|
||||||
[bar/tray]
|
[bar/tray]
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
|
|
||||||
@@ -91,12 +96,13 @@ tray-padding = 1
|
|||||||
[bar/music]
|
[bar/music]
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
|
|
||||||
width = 15%
|
background = ${colors.background}
|
||||||
offset-x = 8%:+8px
|
|
||||||
|
width = 18%
|
||||||
|
offset-x = 41%
|
||||||
|
|
||||||
modules-center = spotify
|
modules-center = spotify
|
||||||
|
|
||||||
|
|
||||||
# ======================================== MODULES
|
# ======================================== MODULES
|
||||||
[module/i3]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
@@ -117,9 +123,13 @@ ws-icon-9 = 10;十
|
|||||||
|
|
||||||
label-focused = "%icon%"
|
label-focused = "%icon%"
|
||||||
label-focused-underline = ${colors.accent}
|
label-focused-underline = ${colors.accent}
|
||||||
|
label-focused-foreground = ${colors.foreground}
|
||||||
|
label-focused-background = ${colors.background}
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
|
|
||||||
label-unfocused = "%icon%"
|
label-unfocused = "%icon%"
|
||||||
|
label-unfocused-foreground = ${colors.foreground}
|
||||||
|
label-unfocused-background = ${colors.background}
|
||||||
label-unfocused-padding = 2
|
label-unfocused-padding = 2
|
||||||
|
|
||||||
label-visible = "%icon%"
|
label-visible = "%icon%"
|
||||||
@@ -128,6 +138,7 @@ label-visible-padding = 2
|
|||||||
label-urgent = "%icon%"
|
label-urgent = "%icon%"
|
||||||
label-urgent-overline = ${colors.urgent}
|
label-urgent-overline = ${colors.urgent}
|
||||||
label-urgent-foreground = ${colors.urgent}
|
label-urgent-foreground = ${colors.urgent}
|
||||||
|
label-urgent-background = ${colors.background}
|
||||||
label-urgent-padding = 2
|
label-urgent-padding = 2
|
||||||
|
|
||||||
label-mode = "%mode%"
|
label-mode = "%mode%"
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ def truncate(name, trunclen):
|
|||||||
|
|
||||||
# Default parameters
|
# Default parameters
|
||||||
output = fix_string(u'{play_pause} {artist}: {song}')
|
output = fix_string(u'{play_pause} {artist}: {song}')
|
||||||
trunclen = 35
|
trunclen = 50
|
||||||
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
||||||
|
|
||||||
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
MONITOR=$mon polybar --reload workspaces &
|
MONITOR=$mon polybar --reload workspaces &
|
||||||
#MONITOR=$mon polybar --reload music &
|
MONITOR=$mon polybar --reload music &
|
||||||
MONITOR=$mon polybar --reload tray &
|
MONITOR=$mon polybar --reload tray &
|
||||||
if [ $mon = "eDP" ]; then
|
if [ $mon = "eDP" ]; then
|
||||||
MONITOR=$mon polybar --reload info_laptop &
|
MONITOR=$mon polybar --reload info_laptop &
|
||||||
|
|||||||
Reference in New Issue
Block a user