From 3cc9012c360d3a3fac313a5e5f4c3008136f70af Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Tue, 22 Dec 2020 16:04:43 -0700 Subject: Tidy up modules --- .config/polybar/common.ini | 2 +- .config/polybar/config | 11 +++------ .config/polybar/filesystem.ini | 51 ++++++++++++++++++++++++++++++++++++++++++ .config/polybar/xkeyboard.ini | 10 ++++----- 4 files changed, 60 insertions(+), 14 deletions(-) create mode 100644 .config/polybar/filesystem.ini 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: +# (default) +# +# +# +# format-mounted-prefix = " " +format-mounted =  +format-mounted-underline = ${colors.cyan} + +# Available tags: +# (default) +format-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 # 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% -- cgit v1.2.3-54-g00ecf