Polybar: Add FS and WLAN modules
This commit is contained in:
parent
763b031fe6
commit
4f4b7bf629
@ -66,6 +66,7 @@ inherit = template/bar
|
|||||||
border-bottom-size = ${res/config.border-size}
|
border-bottom-size = ${res/config.border-size}
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = xwindow
|
modules-center = xwindow
|
||||||
|
modules-right = fshome | wlan
|
||||||
|
|
||||||
[bar/primary-2]
|
[bar/primary-2]
|
||||||
monitor = ${env:PB_MONITOR:eDP-1}
|
monitor = ${env:PB_MONITOR:eDP-1}
|
||||||
@ -134,6 +135,34 @@ interval = 30
|
|||||||
format = <label>
|
format = <label>
|
||||||
label = %date% %time%
|
label = %date% %time%
|
||||||
|
|
||||||
|
[module/fshome]
|
||||||
|
type = internal/fs
|
||||||
|
mount-0 = /home
|
||||||
|
format-mounted = <bar-used> <label-mounted>
|
||||||
|
format-mounted-prefix = "Home: "
|
||||||
|
format-mounted-prefix-foreground = ${res/colors.yellow}
|
||||||
|
label-mounted = %free% free
|
||||||
|
bar-used-width = ${res/config.bar-width}
|
||||||
|
bar-used-fill = ${res/config.bar-fill}
|
||||||
|
bar-used-fill-foreground = ${res/colors.yellow}
|
||||||
|
bar-used-empty = ${res/config.bar-empty}
|
||||||
|
bar-used-empty-foreground = ${res/colors.gray}
|
||||||
|
bar-used-indicator = ${res/config.bar-indicator}
|
||||||
|
|
||||||
|
[module/fsroot]
|
||||||
|
type = internal/fs
|
||||||
|
mount-0 = /
|
||||||
|
format-mounted = <bar-used> <label-mounted>
|
||||||
|
format-mounted-prefix = "Root: "
|
||||||
|
format-mounted-prefix-foreground = ${res/colors.yellow}
|
||||||
|
label-mounted = %free% free
|
||||||
|
bar-used-width = ${res/config.bar-width}
|
||||||
|
bar-used-fill = ${res/config.bar-fill}
|
||||||
|
bar-used-fill-foreground = ${res/colors.yellow}
|
||||||
|
bar-used-empty = ${res/config.bar-empty}
|
||||||
|
bar-used-empty-foreground = ${res/colors.gray}
|
||||||
|
bar-used-indicator = ${res/config.bar-indicator}
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
format = <label-state> <label-mode>
|
format = <label-state> <label-mode>
|
||||||
@ -185,6 +214,16 @@ bar-volume-empty = ${res/config.bar-empty}
|
|||||||
bar-volume-empty-foreground = ${res/colors.gray}
|
bar-volume-empty-foreground = ${res/colors.gray}
|
||||||
bar-volume-indicator = ${res/config.bar-indicator}
|
bar-volume-indicator = ${res/config.bar-indicator}
|
||||||
|
|
||||||
|
[module/wlan]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp1s0
|
||||||
|
format-connected-prefix = "WLAN: "
|
||||||
|
format-connected-prefix-foreground = ${res/colors.green}
|
||||||
|
format-disconnected-prefix = "WLAN: "
|
||||||
|
format-disconnected-prefix-foreground = ${res/colors.green}
|
||||||
|
label-connected = %essid%
|
||||||
|
label-disconnected = Disconnected
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title:40%
|
label = %title:40%
|
||||||
|
Loading…
Reference in New Issue
Block a user