aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/polybar/config.ini55
1 files changed, 40 insertions, 15 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index d5d54c4..49614a6 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -45,6 +45,9 @@ ws-empty-ul = ${colors.background}
time-fg = ${colors.module-color-0}
time-bg = ${colors.module-bg}
+uptime-fg = ${colors.module-color-0}
+uptime-bg = ${colors.module-bg}
+
ethernet-fg = ${colors.module-color-1}
ethernet-bg = ${colors.module-bg}
@@ -57,10 +60,13 @@ fs-root-bg = ${colors.module-bg}
fs-home-fg = ${colors.module-color-1}
fs-home-bg = ${colors.module-bg}
-cpu-fg = ${colors.module-color-0}
+fs-hdd-fg = ${colors.module-color-0}
+fs-hdd-bg = ${colors.module-bg}
+
+cpu-fg = ${colors.module-color-1}
cpu-bg = ${colors.module-bg}
-temp-fg = ${colors.cpu-fg}
+temp-fg = ${colors.module-color-0}
temp-bg = ${colors.module-bg}
mem-fg = ${colors.module-color-1}
@@ -103,7 +109,7 @@ font-3 = fixed:pixelsize=10;1
;font-4 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-5 = siji:pixelsize=10;1
-modules-left = date wlan eth filesystem-root filesystem-home cpu temperature memory xwindow
+modules-left = date uptime wlan eth filesystem-root filesystem-home filesystem-hdd cpu temperature memory xwindow
;modules-center = xwindow
modules-right = pulseaudio ewmh
@@ -118,7 +124,7 @@ cursor-scroll = ns-resize
[module/xwindow]
type = internal/xwindow
-label = " %title:0:60:...%"
+label = " %title:0:50:...%"
label-foreground = ${colors.xwindow-fg}
[module/filesystem-root]
@@ -127,7 +133,7 @@ interval = 25
mount-0 = /
-label-mounted = " %mountpoint% %percentage_used%% "
+label-mounted = " %{A1:pcmanfm /:}%mountpoint% %percentage_used%%%{A1} "
label-mounted-background = ${colors.fs-root-bg}
label-mounted-foreground = ${colors.fs-root-fg}
@@ -137,14 +143,24 @@ interval = 25
mount-0 = /home
-label-mounted = " %mountpoint% %percentage_used%% "
+label-mounted = " %{A1:pcmanfm /home:}%mountpoint% %percentage_used%%%{A1} "
label-mounted-background = ${colors.fs-home-bg}
label-mounted-foreground = ${colors.fs-home-fg}
+[module/filesystem-hdd]
+type = internal/fs
+interval = 25
+
+mount-0 = /hdd
+
+label-mounted = " %{A1:pcmanfm /hdd:}%mountpoint% %percentage_used%%%{A1} "
+label-mounted-background = ${colors.fs-hdd-bg}
+label-mounted-foreground = ${colors.fs-hdd-fg}
+
[module/cpu]
type = internal/cpu
interval = 2
-label = " CPU: %percentage:2%%"
+label = " CPU: %percentage:2%% "
label-background = ${colors.cpu-bg}
label-foreground = ${colors.cpu-fg}
@@ -152,6 +168,7 @@ label-foreground = ${colors.cpu-fg}
type = internal/memory
interval = 2
+
label-background = ${colors.mem-bg}
label-foreground = ${colors.mem-fg}
label = " MEM: %percentage_used%% "
@@ -164,7 +181,7 @@ interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-background = ${colors.wifi-bg}
format-connected-foreground = ${colors.wifi-fg}
-label-connected = "%essid% (%local_ip%)"
+label-connected = "%{A1:alacritty -t 'nmtui' -e 'nmtui':}WIFI: %essid% (%local_ip%)%{A1}"
;label-connected = "%local_ip%"
label-disconnected = ""
@@ -187,7 +204,7 @@ label-connected-background = ${colors.ethernet-bg}
label-connected-foreground = ${colors.ethernet-fg}
format-connected-underline = #55aa55
-format-connected-prefix = ""
+format-connected-prefix = "LAN: "
format-connected-prefix-foreground = ${colors.foreground}
label-connected = " %local_ip% "
@@ -201,16 +218,24 @@ format-disconnected =
type = internal/date
interval = 5
-;date =
-;date-alt = "%d-%m-%Y "
-
time = " %I:%M %p "
-time-alt = " %d %B %Y (%A) %H:%M:%S"
+time-alt = " %d %B %Y (%A) %H:%M:%S "
format-foreground = ${colors.time-fg}
format-background = ${colors.time-bg}
-label = %time%
+label = %{A3:#uptime.module_toggle:}%time%%{A3}
+
+[module/uptime]
+type = custom/script
+click-left = module_toggle
+interval = 100
+exec = "uptime | awk -F, '{sub(".*up ",x,$1);sub(" min","M",$1);print $1}'"
+label = "/ UP: %output% "
+
+hidden = true
+format-foreground = ${colors.uptime-fg}
+format-background = ${colors.uptime-bg}
[module/pulseaudio]
type = internal/pulseaudio
@@ -228,7 +253,7 @@ type = internal/temperature
thermal-zone = 0
warn-temperature = 65
-label = "@%temperature-c% "
+label = " TEMP: %temperature-c% "
label-warn-foreground = ${colors.vol-fg-alt}
label-warn-background = ${colors.temp-bg}