summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-22 16:04:43 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-22 16:04:43 -0700
commit3cc9012c360d3a3fac313a5e5f4c3008136f70af (patch)
tree3c9518c6393a909b329472904a9f69930b866d96
parenta751a55fbd66ac6fa909a459b1bf3c1a79930f94 (diff)
Tidy up modules
-rw-r--r--.config/polybar/common.ini2
-rw-r--r--.config/polybar/config11
-rw-r--r--.config/polybar/filesystem.ini51
-rw-r--r--.config/polybar/xkeyboard.ini10
4 files changed, 60 insertions, 14 deletions
diff --git a/.config/polybar/common.ini b/.config/polybar/common.ini
index 1d4cf8e..b4dc511 100644
--- a/.config/polybar/common.ini
+++ b/.config/polybar/common.ini
@@ -19,7 +19,7 @@ line-size = 2
line-color = ${colors.blue}
border-size = 0
-border-color = ${colors.black}
+border-color = ${colors.white}
padding-left = 0
padding-right = 0
diff --git a/.config/polybar/config b/.config/polybar/config
index d41ed3e..db68c99 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -28,16 +28,11 @@ include-file = $XDG_CONFIG_HOME/polybar/powermenu.ini
include-file = $XDG_CONFIG_HOME/polybar/cpu.ini
include-file = $XDG_CONFIG_HOME/polybar/memory.ini
include-file = $XDG_CONFIG_HOME/polybar/xkeyboard.ini
+include-file = $XDG_CONFIG_HOME/polybar/filesystem.ini
-# [module/filesystem]
-# type = internal/fs
-# interval = 25
-# mount-0 = /
-
-# label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
-# label-unmounted = %mountpoint% not mounted
-# label-unmounted-foreground = ${colors.foreground-alt}
+# Other modules that came by default on the example config.
+# The ones that I configured are on separate ini files.
# [module/mpd]
# type = internal/mpd
diff --git a/.config/polybar/filesystem.ini b/.config/polybar/filesystem.ini
new file mode 100644
index 0000000..d148457
--- /dev/null
+++ b/.config/polybar/filesystem.ini
@@ -0,0 +1,51 @@
+[module/filesystem]
+type = internal/fs
+
+# Mountpoints to display
+mount-0 = /
+mount-1 = /home
+# mount-2 = /var
+
+# Seconds to sleep between updates
+# Default: 30
+interval = 30
+
+# Display fixed precision values
+# Default: false
+fixed-values = true
+
+# Spacing between entries
+# Default: 2
+spacing = 1
+
+# Available tags:
+# <label-mounted> (default)
+# <bar-free>
+# <bar-used>
+# <ramp-capacity>
+# format-mounted-prefix = " "
+format-mounted =  <label-mounted>
+format-mounted-underline = ${colors.cyan}
+
+# Available tags:
+# <label-unmounted> (default)
+format-unmounted = <label-unmounted>
+format-unmounted-foreground = ${colors.white}
+format-unmounted-underline = ${colors.white}
+
+# Available tokens:
+# %mountpoint%
+# %type%
+# %fsname%
+# %percentage_free%
+# %percentage_used%
+# %total%
+# %free%
+# %used%
+# Default: %mountpoint% %percentage_free%%
+label-mounted = %mountpoint%: %percentage_used%%
+
+# Available tokens:
+# %mountpoint%
+# Default: %mountpoint% is not mounted
+label-unmounted = %mountpoint%: -
diff --git a/.config/polybar/xkeyboard.ini b/.config/polybar/xkeyboard.ini
index f1de6f6..ce284d7 100644
--- a/.config/polybar/xkeyboard.ini
+++ b/.config/polybar/xkeyboard.ini
@@ -22,7 +22,7 @@ format-underline = ${colors.red}
# %icon%
# %variant% (unreleased)
# Default: %layout%
-label-layout = %icon% (%layout%)
+label-layout = %icon%
label-layout-padding = 0
# label-layout-background = #bc99ed
# label-layout-foreground = #000
@@ -31,16 +31,16 @@ label-layout-padding = 0
# layout-icon-[0-9]+ = layout;icon
# Assign each layout an icon that will be available as %icon% token for the
# <label-layout> tag. The part before ';' will try to match %layout% value.
-layout-icon-default = some-icon
layout-icon-0 = latam;ES
layout-icon-1 = us;EN
+layout-icon-default = X
# indicator-icon-[0-9]+ = indicator;off icon;on icon
# Provides the content of the %icon% token in label-indicator-*
+indicator-icon-0 = caps lock;;
+indicator-icon-1 = num lock;;
+# indicator-icon-2 = scroll lock;-SL;+SL
indicator-icon-default = D
-indicator-icon-0 = caps lock;-CL;+CL
-indicator-icon-1 = scroll lock;-SL;+SL
-indicator-icon-2 = num lock;-NL;+NL
# Available tokens:
# %name%