update polybar for laptop
This commit is contained in:
@@ -30,7 +30,7 @@ width = 100%
|
||||
height = 24pt
|
||||
radius = 0
|
||||
|
||||
monitor = DP-0
|
||||
monitor = eDP-1
|
||||
|
||||
; dpi = 96
|
||||
|
||||
@@ -55,7 +55,7 @@ font-0 = "JetBrainsMonoNL Nerd Font Mono:pixelsize=12;2"
|
||||
|
||||
modules-left = bspwm xwindow
|
||||
modules-center = date
|
||||
modules-right = music systray filesystem memory cpu bluetooth wlan powermenu
|
||||
modules-right = music memory cpu wlan pipewire backlight battery powermenu
|
||||
|
||||
cursor-click = pointer
|
||||
; cursor-scroll = ns-resize
|
||||
@@ -164,16 +164,12 @@ label-empty-padding = 1
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:60:...%
|
||||
label = %title:0:40:...%
|
||||
|
||||
[module/music]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/player-mpris-tail.py -f '%{F#A7C080}{icon}%{F-} {artist} - %{F#8ABEB7}{title}' --icon-playing --icon-paused --icon-none --icon-stopped
|
||||
tail = true
|
||||
click-middle = ~/.config/polybar/scripts/player-mpris-tail.py previous &
|
||||
click-right = ~/.config/polybar/scripts/player-mpris-tail.py next &
|
||||
click-left = ~/.config/polybar/scripts/player-mpris-tail.py play-pause &
|
||||
icon-playing =
|
||||
exec = ~/.config/polybar/scripts/now-playing.sh primary
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
@@ -195,6 +191,17 @@ scroll-up = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts
|
||||
scroll-down = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh decrease
|
||||
interval=0.5
|
||||
|
||||
[module/pipewire]
|
||||
type = custom/script
|
||||
label = %{F#A7C080}vol%{F-} %output%
|
||||
# interval = 3
|
||||
tail = true
|
||||
exec = ~/.config/polybar/scripts/pipewire-simple.sh
|
||||
click-right = exec pavucontrol &
|
||||
click-left = ~/.config/polybar/scripts/pipewire-simple.sh --mute &
|
||||
scroll-up = ~/.config/polybar/scripts/pipewire-simple.sh --up &
|
||||
scroll-down = ~/.config/polybar/scripts/pipewire-simple.sh --down &
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
@@ -252,13 +259,23 @@ label-disconnected = %{F#A7C080}%ifname%%{F#707880} disconnected
|
||||
[module/wlan]
|
||||
inherit = network-base
|
||||
interface-type = wireless
|
||||
label-connected = %{F#A7C080}%ifname%%{F-} %essid% %local_ip%
|
||||
label-connected = %{F#A7C080}%ifname%%{F-} %essid%
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %{F#A7C080}%ifname%%{F-} %local_ip%
|
||||
|
||||
[module/backlight]
|
||||
type = internal/backlight
|
||||
format = %{F#A7C080}bl%{F-} <label>
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
label-discharging = %{F#A7C080}bat%{F-} %percentage%%
|
||||
label-charging = %{F#A7C080}plg%{F-} %percentage%%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
Reference in New Issue
Block a user