feat: update polybar, bspwm and sxhkd configs for PC and only polybar for Laptop

This commit is contained in:
2025-09-16 20:42:29 +04:00
parent f9f27dbe33
commit a61455a7cc
7 changed files with 97 additions and 39 deletions

View File

@@ -25,7 +25,10 @@ secondary = #E0A3B6
alert = #E7A063
disabled = #9DA991
[bar/example]
[bar/prime]
monitor = HDMI-0
width = 100%
height = 22pt
@@ -45,7 +48,7 @@ font-0 = "FiraCode Nerd Font Propo:size=10;2"
modules-left = xworkspaces
modules-center = xwindow
modules-right = cpu memory pulseaudio xkeyboard eth date calendar powermenu
modules-right = systray pulseaudio xkeyboard eth date calendar powermenu
cursor-click = pointer
cursor-scroll = ns-resize
@@ -67,6 +70,73 @@ wm-restack = bspwm
; For more information, see the documentation page for this module:
; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
[bar/second]
monitor=DP-0
width = 100%
height = 22pt
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2pt
padding-left = 0
padding-right = 1
module-margin = 1
font-0 = "FiraCode Nerd Font Propo:size=10;2"
modules-left = cpu memory
modules-center = xwindow
modules-right = pulseaudio xkeyboard date calendar powermenu
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
; wm-restack = generic
wm-restack = bspwm
[module/cpu]
type = internal/cpu
; Seconds to sleep between updates
; Default: 1
interval = 0.5
; Default: 80
; New in version 3.6.0
warn-percentage = 95
format = <label> <ramp-coreload>
label = " 󰻠 %percentage%% "
label-foreground = ${colors.primary}
ramp-coreload-spacing = 1
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-6 =
ramp-coreload-7 =
[module/memory]
type = internal/memory
interval = 3
format = <label>
label =  %gb_used%
label-foreground = ${colors.primary}
[module/systray]
type = internal/tray
@@ -96,17 +166,6 @@ label-empty-padding = 1
type = internal/xwindow
label = %title:0:60:...%
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#89A989}%mountpoint%%{F-} %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
@@ -137,20 +196,6 @@ label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[network-base]
type = internal/network
interval = 5