diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/polybar/bspwm.ini | 2 | ||||
-rw-r--r-- | .config/polybar/config | 203 | ||||
-rw-r--r-- | .config/polybar/date.ini | 36 | ||||
-rw-r--r-- | .config/polybar/i3.ini | 148 | ||||
-rw-r--r-- | .config/polybar/main.ini | 6 | ||||
-rw-r--r-- | .config/polybar/powermenu.ini | 45 | ||||
-rw-r--r-- | .config/polybar/pulseaudio.ini | 65 | ||||
-rw-r--r-- | .config/polybar/second.ini | 2 | ||||
-rw-r--r-- | .config/polybar/xwindow.ini | 22 |
9 files changed, 327 insertions, 202 deletions
diff --git a/.config/polybar/bspwm.ini b/.config/polybar/bspwm.ini index 47fd476..2abaf1e 100644 --- a/.config/polybar/bspwm.ini +++ b/.config/polybar/bspwm.ini @@ -1,6 +1,8 @@ [module/bspwm] type = internal/bspwm +# This already integrates xworkspaces, apparently. + # Only show workspaces defined on the same output as the bar # NOTE: The bspwm and XRandR monitor names must match, which they do by default. # But if you rename your bspwm monitors with bspc -n this option will no longer diff --git a/.config/polybar/config b/.config/polybar/config index 63eb4c6..2f1e978 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -32,13 +32,13 @@ screenchange-reload = true [global/wm] margin-top = 0 margin-bottom = 0 -include-file = /home/lz/.config/polybar/bspwm.ini include-file = /home/lz/.config/polybar/main.ini include-file = /home/lz/.config/polybar/second.ini - -[module/xwindow] -type = internal/xwindow -label = %title:0:30:...% +include-file = /home/lz/.config/polybar/bspwm.ini +include-file = /home/lz/.config/polybar/xwindow.ini +include-file = /home/lz/.config/polybar/pulseaudio.ini +include-file = /home/lz/.config/polybar/date.ini +include-file = /home/lz/.config/polybar/powermenu.ini # [module/xkeyboard] # type = internal/xkeyboard @@ -66,44 +66,6 @@ label = %title:0:30:...% # label-unmounted = %mountpoint% not mounted # label-unmounted-foreground = ${colors.foreground-alt} -# [module/i3] -# type = internal/i3 -# format = <label-state> <label-mode> -# index-sort = true -# wrapping-scroll = false - -# Only show workspaces on the same output as the bar -# pin-workspaces = true - -# label-mode-padding = 2 -# label-mode-foreground = #000 -# label-mode-background = ${colors.blue} - -# focused = Active workspace on focused monitor -# label-focused = %index% -# label-focused-background = ${colors.background-alt} -# label-focused-underline= ${colors.blue} -# label-focused-padding = 2 - -# unfocused = Inactive workspace on any monitor -# label-unfocused = %index% -# label-unfocused-padding = 2 - -# visible = Active workspace on unfocused monitor -# label-visible = %index% -# label-visible-background = ${self.label-focused-background} -# label-visible-underline = ${self.label-focused-underline} -# label-visible-padding = ${self.label-focused-padding} - -# urgent = Workspace with urgency hint set -# label-urgent = %index% -# label-urgent-background = ${colors.red} -# label-urgent-padding = 2 - -# Separator in between workspaces -# label-separator = | - - # [module/mpd] # type = internal/mpd # format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> @@ -117,28 +79,6 @@ label = %title:0:30:...% # label-song-maxlen = 25 # label-song-ellipsis = true -# [module/xbacklight] -# type = internal/xbacklight - -# format = <label> <bar> -# label = BL - -# bar-width = 10 -# bar-indicator = | -# bar-indicator-foreground = #fff -# bar-indicator-font = 2 -# bar-fill = β -# bar-fill-font = 2 -# bar-fill-foreground = #9f78e1 -# bar-empty = β -# bar-empty-font = 2 -# bar-empty-foreground = ${colors.foreground-alt} - -# [module/backlight-acpi] -# inherit = module/xbacklight -# type = internal/backlight -# card = intel_backlight - # [module/cpu] # type = internal/cpu # interval = 2 @@ -193,110 +133,6 @@ label = %title:0:30:...% # label-disconnected = %ifname% disconnected # label-disconnected-foreground = ${colors.foreground-alt} -[module/date] -type = internal/date -interval = 5 - -date = -date-alt = " %Y-%m-%d" - -time = %H:%M -time-alt = %H:%M:%S - -format-prefix = ξ -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 - -label = %date% %time% - -[module/pulseaudio] -type = internal/pulseaudio - -format-volume = <label-volume> <bar-volume> -label-volume = VOL %percentage%% -label-volume-foreground = ${root.foreground} - -label-muted = π muted -label-muted-foreground = #666 - -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = β -bar-volume-fill-font = 2 -bar-volume-empty = β -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} - -# [module/alsa] -# type = internal/alsa - -# format-volume = <label-volume> <bar-volume> -# label-volume = VOL -# label-volume-foreground = ${root.foreground} - -# format-muted-prefix = "ξ " -# format-muted-foreground = ${colors.foreground-alt} -# label-muted = sound muted - -# bar-volume-width = 10 -# bar-volume-foreground-0 = #55aa55 -# bar-volume-foreground-1 = #55aa55 -# bar-volume-foreground-2 = #55aa55 -# bar-volume-foreground-3 = #55aa55 -# bar-volume-foreground-4 = #55aa55 -# bar-volume-foreground-5 = #f5a70a -# bar-volume-foreground-6 = #ff5555 -# bar-volume-gradient = false -# bar-volume-indicator = | -# bar-volume-indicator-font = 2 -# bar-volume-fill = β -# bar-volume-fill-font = 2 -# bar-volume-empty = β -# bar-volume-empty-font = 2 -# bar-volume-empty-foreground = ${colors.foreground-alt} - -# [module/battery] -# type = internal/battery -# battery = BAT0 -# adapter = ADP1 -# full-at = 98 - -# format-charging = <animation-charging> <label-charging> -# format-charging-underline = #ffb52a - -# format-discharging = <animation-discharging> <label-discharging> -# format-discharging-underline = ${self.format-charging-underline} - -# format-full-prefix = "ξΊ " -# format-full-prefix-foreground = ${colors.foreground-alt} -# format-full-underline = ${self.format-charging-underline} - -# ramp-capacity-0 = ξΆ -# ramp-capacity-1 = ξ· -# ramp-capacity-2 = ξΈ -# ramp-capacity-foreground = ${colors.foreground-alt} - -# animation-charging-0 = ξΆ -# animation-charging-1 = ξ· -# animation-charging-2 = ξΈ -# animation-charging-foreground = ${colors.foreground-alt} -# animation-charging-framerate = 750 - -# animation-discharging-0 = ξΈ -# animation-discharging-1 = ξ· -# animation-discharging-2 = ξΆ -# animation-discharging-foreground = ${colors.foreground-alt} -# animation-discharging-framerate = 750 - # [module/temperature] # type = internal/temperature # thermal-zone = 0 @@ -315,32 +151,3 @@ bar-volume-empty-foreground = ${colors.foreground-alt} # ramp-1 = ξ # ramp-2 = ξ # ramp-foreground = ${colors.foreground-alt} - -# [module/powermenu] -# type = custom/menu - -# expand-right = true - -# format-spacing = 1 - -# label-open = ξ -# label-open-foreground = ${colors.cyan} -# label-close = ξ₯ cancel -# label-close-foreground = ${colors.cyan} -# label-separator = | -# label-separator-foreground = ${colors.foreground-alt} - -# menu-0-0 = reboot -# menu-0-0-exec = menu-open-1 -# menu-0-1 = power off -# menu-0-1-exec = menu-open-2 - -# menu-1-0 = cancel -# menu-1-0-exec = menu-open-0 -# menu-1-1 = reboot -# menu-1-1-exec = sudo reboot - -# menu-2-0 = power off -# menu-2-0-exec = sudo poweroff -# menu-2-1 = cancel -# menu-2-1-exec = menu-open-0 diff --git a/.config/polybar/date.ini b/.config/polybar/date.ini new file mode 100644 index 0000000..4385072 --- /dev/null +++ b/.config/polybar/date.ini @@ -0,0 +1,36 @@ +# NOTE: This module supports mostβbut not allβof the formatting sequences that can be found in man date. For example, to display the time in 12-hour format, you can use either %I:%M or %l:%M for a 0-padded hour or a space-padded hour respectively. +# Formatting sequences such as %-I (12-hour time without padding) will not work. Use a custom script with the date command as a workaround. +[module/date] +type = internal/date +# Seconds to sleep between updates +# Default: 1.0 +interval = 1.0 + +# See "https://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string +# NOTE: if you want to use syntax tags here you need to use %%{...} +date = %d-%m-%y% + +# Optional time format +time = %H:%M + +# if 'date-alt' or 'time-alt' is defined, clicking +# the module will toggle between formats +date-alt = %A, %d %B %Y +time-alt = %H:%M:%S + +# Available tags: +# <label> (default) +# format-prefix = ο +# format-prefix-foreground = ${colors.foreground-alt} +format = ο <label> +# format-background = #55ff3399 +# format-foreground = #fff +format-underline = ${colors.cyan} + +# Available tokens: +# %date% +# %time% +# Default: %date% +label = %date% %time% +# label-font = 3 +# label-foreground = #9A32DB diff --git a/.config/polybar/i3.ini b/.config/polybar/i3.ini new file mode 100644 index 0000000..3d42e93 --- /dev/null +++ b/.config/polybar/i3.ini @@ -0,0 +1,148 @@ +[module/i3] +type = internal/i3 +# Only show workspaces defined on the same output as the bar +# Useful if you want to show monitor specific workspaces +# on different bars +# Default: false +pin-workspaces = true + +# This will split the workspace name on ':' +# Default: false +strip-wsnumbers = true + +# Sort the workspaces by index instead of the default +# sorting that groups the workspaces by output +# Default: false +index-sort = true + +# Create click handler used to focus workspace +# Default: true +enable-click = false + +# Create scroll handlers used to cycle workspaces +# Default: true +enable-scroll = false + +# Wrap around when reaching the first/last workspace +# Default: true +wrapping-scroll = false + +# Set the scroll cycle direction +# Default: true +reverse-scroll = false + +# Use fuzzy (partial) matching on labels when assigning +# icons to workspaces +# Example: code;β will apply the icon to all workspaces +# containing 'code' in the label +# Default: false +fuzzy-match = true + +# ws-icon-[0-9]+ = <label>;<icon> +# NOTE: The <label> needs to match the name of the i3 workspace +# Neither <label> nor <icon> can contain a semicolon (;) +ws-icon-0 = 1;β +ws-icon-1 = 2;β +ws-icon-2 = 3;β +ws-icon-3 = 4;β +ws-icon-4 = 5;β +ws-icon-default = β +# NOTE: You cannot skip icons, e.g. to get a ws-icon-6 +# you must also define a ws-icon-5. +# NOTE: Icon will be available as the %icon% token inside label-* + +# Available tags: +# <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)> +# <label-mode> (default) +format = <label-state> <label-mode> + +# Available tokens: +# %mode% +# Default: %mode% +label-mode = %mode% +label-mode-padding = 2 +label-mode-background = #e60053 + +# Available tokens: +# %name% +# %icon% +# %index% +# %output% +# Default: %icon% %name% +label-focused = %index% +label-focused-foreground = #ffffff +label-focused-background = #3f3f3f +label-focused-underline = #fba922 +label-focused-padding = 4 + +# Available tokens: +# %name% +# %icon% +# %index% +# %output% +# Default: %icon% %name% +label-unfocused = %index% +label-unfocused-padding = 4 + +# Available tokens: +# %name% +# %icon% +# %index% +# %output% +# Default: %icon% %name% +label-visible = %index% +label-visible-underline = #555555 +label-visible-padding = 4 + +# Available tokens: +# %name% +# %icon% +# %index% +# %output% +# Default: %icon% %name% +label-urgent = %index% +label-urgent-foreground = #000000 +label-urgent-background = #bd2c40 +label-urgent-padding = 4 + +# Separator in between workspaces +label-separator = | +label-separator-padding = 2 +label-separator-foreground = #ffb52a + +# Default config already in example. + +# format = <label-state> <label-mode> +# index-sort = true +# wrapping-scroll = false + +# Only show workspaces on the same output as the bar +# pin-workspaces = true + +# label-mode-padding = 2 +# label-mode-foreground = #000 +# label-mode-background = ${colors.blue} + +# focused = Active workspace on focused monitor +# label-focused = %index% +# label-focused-background = ${colors.background-alt} +# label-focused-underline= ${colors.blue} +# label-focused-padding = 2 + +# unfocused = Inactive workspace on any monitor +# label-unfocused = %index% +# label-unfocused-padding = 2 + +# visible = Active workspace on unfocused monitor +# label-visible = %index% +# label-visible-background = ${self.label-focused-background} +# label-visible-underline = ${self.label-focused-underline} +# label-visible-padding = ${self.label-focused-padding} + +# urgent = Workspace with urgency hint set +# label-urgent = %index% +# label-urgent-background = ${colors.red} +# label-urgent-padding = 2 + +# Separator in between workspaces +# label-separator = | diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini index 20dc6a4..c02134c 100644 --- a/.config/polybar/main.ini +++ b/.config/polybar/main.ini @@ -14,7 +14,7 @@ font-3 = Font Awesome 5 Free Solid:pixelsize=10;1 font-4 = Font Awesome 5 Brands:pixelsize=10;1 background = ${colors.background} -foreground = ${colors.foreground} +foreground = ${colors.blue} line-size = 2 line-color = ${colors.blue} @@ -26,11 +26,11 @@ padding-left = 0 padding-right = 0 module-margin-left = 1 -module-margin-right = 2 +module-margin-right = 1 modules-left=bspwm modules-center=xwindow -modules-right=date pulseaudio +modules-right=date pulseaudio powermenu tray-position = right tray-padding = 2 diff --git a/.config/polybar/powermenu.ini b/.config/polybar/powermenu.ini new file mode 100644 index 0000000..83950f8 --- /dev/null +++ b/.config/polybar/powermenu.ini @@ -0,0 +1,45 @@ +[module/powermenu] +type = custom/menu +# This is actually a menu type. + +# If true, <label-toggle> will be to the left of the menu items (default). +# If false, it will be on the right of all the items. +expand-right = true + +format-spacing = 1 + +# Available tags: +# <label-toggle> (default) - gets replaced with <label-(open|close)> +# <menu> (default) +# If expand-right is true, the default will be "<label-toggle><menu>" and the +# other way around otherwise. +# Note that if you use <label-toggle> you must also include +# the definition for <label-open> +# format = <label-toggle><menu> +label-open = ο +label-open-underline = ${colors.red} +# label-open-foreground = ${colors.cyan} +label-close = ο +label-close-underline = ${colors.red} +# label-close-foreground = ${colors.cyan} +label-separator = | +# label-separator-foreground = ${colors.foreground-alt} + +# "menu-LEVEL-N" has the same properties as "label-NAME" with +# the additional "exec" property +# Commands will be executed using "/bin/sh -c $COMMAND" + +menu-0-0 = reboot +menu-0-0-exec = menu-open-1 +menu-0-1 = power off +menu-0-1-exec = menu-open-2 + +menu-1-0 = cancel +menu-1-0-exec = menu-open-0 +menu-1-1 = reboot +menu-1-1-exec = sudo reboot + +menu-2-0 = power off +menu-2-0-exec = sudo poweroff +menu-2-1 = cancel +menu-2-1-exec = menu-open-0 diff --git a/.config/polybar/pulseaudio.ini b/.config/polybar/pulseaudio.ini new file mode 100644 index 0000000..c5e93c2 --- /dev/null +++ b/.config/polybar/pulseaudio.ini @@ -0,0 +1,65 @@ +[module/pulseaudio] +type = internal/pulseaudio + +# Sink to be used, if it exists (find using `pacmd list-sinks`, name field) +# If not, uses default sink +# sink = alsa_output.pci-0000_12_00.3.analog-stereo + +# Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false +# Default: true +use-ui-max = true + +# Interval for volume increase/decrease (in percent points) +# Default: 5 +interval = 2 + +# Available tags: +# <label-volume> (default) +# <ramp-volume> +# <bar-volume> +format-volume = <ramp-volume> <label-volume> <bar-volume> +format-volume-underline = ${colors.green} + +# Available tags: +# <label-muted> (default) +# <ramp-volume> +# <bar-volume> +format-muted = <label-muted> + +# Available tokens: +# %percentage% (default) +# %decibels% +label-volume = %percentage%% +# label-volume-foreground = ${colors.foreground} + +# Available tokens: +# %percentage% (default) +# %decibels% +label-muted = ο© (muted) +label-muted-foreground = ${colors.white} + +# Only applies if <ramp-volume> is used +ramp-volume-0 = ο¦ +ramp-volume-1 = ο§ +ramp-volume-2 = ο¨ + +# Right and Middle click +click-right = pavucontrol +# click-middle = + +bar-volume-width = 10 +bar-volume-foreground-0 = ${colors.green} +bar-volume-foreground-1 = ${colors.green} +bar-volume-foreground-2 = ${colors.green} +bar-volume-foreground-3 = ${colors.green} +bar-volume-foreground-4 = ${colors.green} +bar-volume-foreground-5 = ${colors.yellow} +bar-volume-foreground-6 = ${colors.red} +bar-volume-gradient = false +bar-volume-indicator = | +bar-volume-indicator-font = 2 +bar-volume-fill = β +bar-volume-fill-font = 2 +bar-volume-empty = - +bar-volume-empty-font = 2 +bar-volume-empty-foreground = ${colors.black-alt} diff --git a/.config/polybar/second.ini b/.config/polybar/second.ini index 5a6ace7..132c3df 100644 --- a/.config/polybar/second.ini +++ b/.config/polybar/second.ini @@ -14,7 +14,7 @@ font-3 = Font Awesome 5 Free Solid:pixelsize=10;1 font-4 = Font Awesome 5 Brands:pixelsize=10;1 background = ${colors.background} -foreground = ${colors.foreground} +foreground = ${colors.blue} line-size = 2 line-color = ${colors.blue} diff --git a/.config/polybar/xwindow.ini b/.config/polybar/xwindow.ini new file mode 100644 index 0000000..b27a545 --- /dev/null +++ b/.config/polybar/xwindow.ini @@ -0,0 +1,22 @@ +[module/xwindow] +type = internal/xwindow +# label = %title:0:30:...% + +# Available tags: +# <label> (default) +format = <label> +# format-background = #f00 +# format-foreground = #000 +format-padding = 4 + +# Available tokens: +# %title% +# Default: %title% +label = %title% +label-maxlen = 50 + +# Used instead of label when there is no window title +# Available tokens: +# None +label-empty = Empty +# label-empty-foreground = #707880 |