Update polybar
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
# the top and down respectively.
|
# the top and down respectively.
|
||||||
# The width can be negative. In this case the actual width is the
|
# The width can be negative. In this case the actual width is the
|
||||||
# screen width minus the width defined in within the geometry option.
|
# screen width minus the width defined in within the geometry option.
|
||||||
geometry = "400x20-14+44"
|
geometry = "400x20-4+34"
|
||||||
|
|
||||||
# Show how many messages are currently hidden (because of geometry).
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
indicate_hidden = yes
|
indicate_hidden = yes
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ client.background $border
|
|||||||
|
|
||||||
# i3-gaps
|
# i3-gaps
|
||||||
gaps inner 4
|
gaps inner 4
|
||||||
gaps top 34
|
|
||||||
|
|
||||||
# ============================== Keybinds
|
# ============================== Keybinds
|
||||||
#Terminal
|
#Terminal
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ shadow-exclude = [
|
|||||||
"class_g *?= 'i3-frame'",
|
"class_g *?= 'i3-frame'",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
corner-radius = 12
|
||||||
|
rounded-corners-exclude = [
|
||||||
|
"class_g *?= 'polybar'",
|
||||||
|
"class_g *?= 'dmenu'",
|
||||||
|
"class_g *?= 'i3-frame'",
|
||||||
|
]
|
||||||
|
|
||||||
#backend = "glx";
|
#backend = "glx";
|
||||||
#blur: {
|
#blur: {
|
||||||
# method: "dual_kawase";
|
# method: "dual_kawase";
|
||||||
|
|||||||
@@ -33,73 +33,43 @@ accent = ${colors.green}
|
|||||||
# ======================================== BARS
|
# ======================================== BARS
|
||||||
[bar/main]
|
[bar/main]
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
|
|
||||||
height = 30px
|
height = 30px
|
||||||
offset-y = 4px
|
width = 100%
|
||||||
|
radius-bottom = 12
|
||||||
|
|
||||||
|
border-left-size = 4px
|
||||||
|
border-right-size = 4px
|
||||||
|
|
||||||
|
padding-left = 3
|
||||||
|
padding-right = 3
|
||||||
|
|
||||||
|
module-margin-left = 3
|
||||||
|
module-margin-center = 3
|
||||||
|
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
|
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
|
|
||||||
line-size = 3
|
line-size = 2
|
||||||
|
|
||||||
module-margin = 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"
|
||||||
font-2 = "Noto Sans CJK JP:antialiase=false:pixelsize=9;2"
|
font-2 = "Noto Sans CJK JP:antialiase=false:pixelsize=9;2"
|
||||||
font-3 = "Material Design Icons:size=9;2"
|
font-3 = "Material Design Icons:size=11;3"
|
||||||
|
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
override-redirect = true
|
override-redirect = false
|
||||||
|
|
||||||
# ========= workspaces
|
|
||||||
[bar/workspaces]
|
|
||||||
inherit = bar/main
|
|
||||||
|
|
||||||
background = ${colors.clear}
|
|
||||||
|
|
||||||
width = 20%
|
|
||||||
offset-x = 4px
|
|
||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
|
modules-center = date
|
||||||
|
modules-right = spotify cpu memory volume
|
||||||
|
|
||||||
# ========== info
|
[bar/laptop]
|
||||||
[bar/info]
|
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
|
|
||||||
width = 17%
|
modules-right = spotify cpu memory wlan volume battery
|
||||||
offset-x = 83%:-183px
|
|
||||||
|
|
||||||
modules-center = cpu memory volume date
|
|
||||||
|
|
||||||
[bar/info_laptop]
|
|
||||||
inherit = bar/info
|
|
||||||
|
|
||||||
width = 20%
|
|
||||||
offset-x = 80%:-183px
|
|
||||||
|
|
||||||
modules-center = cpu memory battery volume date
|
|
||||||
|
|
||||||
[bar/tray]
|
|
||||||
inherit = bar/main
|
|
||||||
|
|
||||||
width = 175px
|
|
||||||
offset-x = 100%:-179px
|
|
||||||
|
|
||||||
modules-center = blank
|
|
||||||
|
|
||||||
tray-position = center
|
|
||||||
tray-padding = 1
|
|
||||||
|
|
||||||
# ========== music
|
|
||||||
[bar/music]
|
|
||||||
inherit = bar/main
|
|
||||||
|
|
||||||
width = 18%
|
|
||||||
offset-x = 41%
|
|
||||||
|
|
||||||
modules-center = spotify
|
|
||||||
|
|
||||||
# ======================================== MODULES
|
# ======================================== MODULES
|
||||||
[module/i3]
|
[module/i3]
|
||||||
@@ -120,7 +90,7 @@ ws-icon-8 = 9;九
|
|||||||
ws-icon-9 = 10;十
|
ws-icon-9 = 10;十
|
||||||
|
|
||||||
label-focused = "%icon%"
|
label-focused = "%icon%"
|
||||||
label-focused-underline = ${colors.accent}
|
label-focused-overline = ${colors.accent}
|
||||||
label-focused-foreground = ${colors.foreground}
|
label-focused-foreground = ${colors.foreground}
|
||||||
label-focused-background = ${colors.background}
|
label-focused-background = ${colors.background}
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
@@ -153,19 +123,11 @@ label-underline = ${colors.accent}
|
|||||||
type = internal/date
|
type = internal/date
|
||||||
label = %date% %time%
|
label = %date% %time%
|
||||||
|
|
||||||
#date = %{T2}%a%{T-} %d
|
|
||||||
date = %a %d
|
date = %a %d
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-underline = ${colors.red}
|
#format-underline = ${colors.red}
|
||||||
|
|
||||||
[module/time]
|
|
||||||
type = internal/date
|
|
||||||
date = %{T2}%H:%M%{T-}
|
|
||||||
|
|
||||||
format-prefix = " "
|
|
||||||
format-underline = ${colors.accent}
|
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
@@ -174,7 +136,7 @@ card = amdgpu_bl0
|
|||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-underline = ${colors.accent}
|
#format-underline = ${colors.accent}
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
@@ -184,15 +146,15 @@ apdapter = ADP1
|
|||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
label-charging = %percentage%%
|
label-charging = %percentage%%
|
||||||
animation-charging-foreground = ${colors.accent}
|
animation-charging-foreground = ${colors.accent}
|
||||||
format-charging-underline = ${colors.yellow}
|
#format-charging-underline = ${colors.yellow}
|
||||||
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
label-discharging = %percentage%%
|
label-discharging = %percentage%%
|
||||||
format-discharging-underline = ${colors.accent}
|
#format-discharging-underline = ${colors.accent}
|
||||||
|
|
||||||
format-full = <ramp-capacity> <label-full>
|
format-full = <ramp-capacity> <label-full>
|
||||||
label-full = %percentage%%
|
label-full = %percentage%%
|
||||||
format-full-underline = ${colors.accent}
|
#format-full-underline = ${colors.accent}
|
||||||
|
|
||||||
ramp-capacity-foreground = ${colors.accent}
|
ramp-capacity-foreground = ${colors.accent}
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
@@ -224,15 +186,12 @@ format-volume = <label-volume>
|
|||||||
|
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
format-volume-prefix = " "
|
format-volume-prefix = " "
|
||||||
format-volume-underline = ${colors.yellow}
|
#format-volume-underline = ${colors.yellow}
|
||||||
|
|
||||||
label-muted = Muted
|
label-muted = Muted
|
||||||
format-muted-prefix = " "
|
format-muted-prefix = " "
|
||||||
format-muted-foreground = ${colors.urgent}
|
format-muted-foreground = ${colors.urgent}
|
||||||
|
|
||||||
format-prefix = " "
|
|
||||||
format-underline = ${colors.accent}
|
|
||||||
|
|
||||||
[module/spotify]
|
[module/spotify]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
#exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song} '
|
#exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song} '
|
||||||
@@ -240,15 +199,15 @@ exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "No player found"
|
|||||||
interval = 1
|
interval = 1
|
||||||
tail = true
|
tail = true
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-underline = ${colors.accent}
|
#format-underline = ${colors.accent}
|
||||||
|
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/scripts/cpu.sh
|
exec = ~/.config/polybar/scripts/cpu.sh
|
||||||
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-underline = ${colors.accent}
|
#format-underline = ${colors.accent}
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
@@ -256,17 +215,15 @@ exec = ~/.config/polybar/scripts/memory.sh
|
|||||||
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-underline = ${colors.blue}
|
#format-underline = ${colors.blue}
|
||||||
|
|
||||||
[module/temp]
|
[module/wlan]
|
||||||
type = custom/script
|
type = internal/network
|
||||||
exec = ~/.config/polybar/scripts/temp.sh
|
interface =
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
format-prefix = " "
|
format-connected = <label-connected>
|
||||||
format-underline = ${colors.accent}
|
format-connected-prefix = " "
|
||||||
|
label-connected = %essid%
|
||||||
|
|
||||||
[module/blank]
|
format-disconnected = " No Connection"
|
||||||
type = custom/text
|
|
||||||
content = .
|
|
||||||
content-foreground = ${colors.clear}
|
|
||||||
content-background = ${colors.clear}
|
|
||||||
|
|||||||
@@ -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 = 50
|
trunclen = 60
|
||||||
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-}}'
|
||||||
|
|||||||
@@ -3,14 +3,15 @@ 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 main &
|
||||||
MONITOR=$mon polybar --reload music &
|
# MONITOR=$mon polybar --reload workspaces &
|
||||||
MONITOR=$mon polybar --reload tray &
|
# MONITOR=$mon polybar --reload music &
|
||||||
if [ $mon = "eDP" ]; then
|
# MONITOR=$mon polybar --reload tray &
|
||||||
MONITOR=$mon polybar --reload info_laptop &
|
# if [ $mon = "eDP" ]; then
|
||||||
else
|
# MONITOR=$mon polybar --reload info_laptop &
|
||||||
MONITOR=$mon polybar --reload info &
|
# else
|
||||||
fi
|
# MONITOR=$mon polybar --reload info &
|
||||||
|
# fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "No Bars loaded."
|
echo "No Bars loaded."
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Reference in New Issue
Block a user