diff options
-rwxr-xr-x | .config/bspwm/bspwmrc | 4 | ||||
-rw-r--r-- | .config/polybar/bspwm.ini | 135 | ||||
-rw-r--r-- | .config/polybar/config | 55 | ||||
-rw-r--r-- | .config/polybar/main.ini | 51 | ||||
-rw-r--r-- | .config/polybar/second.ini | 51 | ||||
-rwxr-xr-x | .local/bin/statusbar/polybar_panel | 2 |
6 files changed, 235 insertions, 63 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index aea7991..00a0969 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -26,8 +26,8 @@ if [ $(uname -n) = "arch" ]; then bspwm_enforce_monitor_position $MAINMON '^1' & fi - bspc monitor $MAINMON -d 1 2 3 4 5 - bspc monitor $SECMON -d 6 7 8 9 10 + bspc monitor $MAINMON -d Terminal Editor Code File Multimedia + bspc monitor $SECMON -d Browser Messages Reader Gaming Music else bspc monitor -d I II III IV V VI VII VIII IX X fi diff --git a/.config/polybar/bspwm.ini b/.config/polybar/bspwm.ini index 1c2da93..47fd476 100644 --- a/.config/polybar/bspwm.ini +++ b/.config/polybar/bspwm.ini @@ -1,22 +1,143 @@ [module/bspwm] type = internal/bspwm -label-focused = %name% -label-focused-background = ${colors.blue-alt} +# 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 +# behave correctly. +# Default: true +pin-workspaces = true + +# Output mode flags after focused state label +# Default: false +inline-mode = false + +# Create click handler used to focus workspace +# Default: true +enable-click = true + +# Create scroll handlers used to cycle workspaces +# Default: true +enable-scroll = true + +# Set the scroll cycle direction +# Default: true +reverse-scroll = true + +# 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 that the <label> needs to correspond with the bspwm workspace name +# Neither <label> nor <icon> can contain a semicolon (;) +ws-icon-0 = Terminal; +ws-icon-1 = Editor; +ws-icon-2 = Code; +ws-icon-3 = File; +ws-icon-4 = Multimedia; +ws-icon-5 = Browser; +ws-icon-6 = Messages; +ws-icon-7 = Reader; +ws-icon-8 = Gaming; +ws-icon-9 = Music; +# ws-icon-default = X + +# Available tags: +# <label-monitor> +# <label-state> - gets replaced with <label-(focused|urgent|occupied|empty)> +# <label-mode> - gets replaced with <label-(monocle|tiled|fullscreen|floating|locked|sticky|private)> +# Default: <label-state> +format = <label-state> <label-mode> + +# Available tokens: +# %name% +# Default: %name% +label-monitor = %name% + +# If any values for label-dimmed-N are defined, the workspace/mode +# colors will get overridden with those values if the monitor is out of focus +# To only override workspaces in a specific state, use: +# label-dimmed-focused +# label-dimmed-occupied +# label-dimmed-urgent +# label-dimmed-empty +# label-dimmed-foreground = #555 +# label-dimmed-underline = ${color.background} +# label-dimmed-focused-background = #f00 + +# Available tokens: +# %name% +# %icon% +# %index% +# Default: %icon% %name% +label-focused = %icon% %name% +label-focused-background = ${colors.blue} label-focused-foreground = ${colors.black} label-focused-underline= ${colors.cyan} +label-dimmed-focused-background = ${colors.blue-alt} +label-dimmed-focused-foreground = ${colors.black-alt} +label-dimmed-focused-underline= ${colors.cyan-alt} label-focused-padding = 4 -label-occupied = %name% -label-occupied-padding = 3 +# Available tokens: +# %name% +# %icon% +# %index% +# Default: %icon% %name% +label-occupied = %icon% %name% +label-occupied-foreground= ${colors.white-alt} +label-occupied-underline = ${colors.blue} +label-dimmed-occupied-foreground= ${colors.white} +label-dimmed-occupied-underline = ${colors.blue-alt} +label-occupied-padding = 2 -label-urgent = %name%! +# Available tokens: +# %name% +# %icon% +# %index% +# Default: %icon% %name% +label-urgent = %icon% %name% +label-urgent-foreground = ${colors.white-alt} label-urgent-background = ${colors.red} +label-urgent-underline = ${colors.yellow} +label-dimmed-urgent-foreground = ${colors.white} +label-dimmed-urgent-background = ${colors.red-alt} +label-dimmed-urgent-underline = ${colors.yellow-alt} label-urgent-padding = 2 -label-empty = %name% -label-empty-foreground = ${colors.foreground-alt} +# Available tokens: +# %name% +# %icon% +# %index% +# Default: %icon% %name% +label-empty = %icon% +label-empty-foreground = ${colors.yellow} +label-dimmed-empty-foreground = ${colors.yellow-alt} label-empty-padding = 1 +# The following labels will be used to indicate the layout/mode +# for the focused workspace. Requires <label-mode> + +# Available tokens: +# None +label-monocle = M +label-tiled = T +label-fullscreen = F +label-floating = f +label-pseudotiled = pT +label-locked = L +label-locked-foreground = ${colors.red} +label-sticky = S +label-sticky-foreground = ${colors.green} +label-private = P +label-private-foreground = ${colors.cyan} +label-marked = m + # Separator in between workspaces # label-separator = | +# label-separator-padding = 1 +# label-separator-foreground = ${colors.foreground-alt} diff --git a/.config/polybar/config b/.config/polybar/config index 37362f2..63eb4c6 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -33,58 +33,8 @@ screenchange-reload = true margin-top = 0 margin-bottom = 0 include-file = /home/lz/.config/polybar/bspwm.ini - -[bar/main] -monitor = ${env:MAINMON:HDMI-0} -width = 100% -height = 24 -offset-x = 0% -offset-y = 0% -radius = 0.0 -fixed-center = false - -font-0 = Noto Sans Mono:pixelsize=10;1 -# font-0 = fixed:pixelsize=10;1 -# font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -# font-2 = siji:pixelsize=10;1 - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 2 -line-color = ${colors.blue} - -border-size = 0 -border-color = ${colors.black} - -padding-left = 0 -padding-right = 0 - -module-margin-left = 1 -module-margin-right = 2 - -modules-left=bspwm -modules-center=xwindow -modules-right=date pulseaudio - -tray-position = right -tray-padding = 2 -# tray-background = ${colors.cyan} - -override-redirect = true - -wm-restack = bspwm -# wm-restack = i3 - -# scroll-up = bspwm-desknext -# scroll-down = bspwm-deskprev - -# scroll-up = i3wm-wsnext -# scroll-down = i3wm-wsprev - -cursor-click = pointer -cursor-scroll = ns-resize - +include-file = /home/lz/.config/polybar/main.ini +include-file = /home/lz/.config/polybar/second.ini [module/xwindow] type = internal/xwindow @@ -394,4 +344,3 @@ bar-volume-empty-foreground = ${colors.foreground-alt} # menu-2-0-exec = sudo poweroff # menu-2-1 = cancel # menu-2-1-exec = menu-open-0 - diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini new file mode 100644 index 0000000..20dc6a4 --- /dev/null +++ b/.config/polybar/main.ini @@ -0,0 +1,51 @@ +[bar/main] +monitor = ${env:MAINMON:HDMI-0} +width = 100% +height = 24 +offset-x = 0% +offset-y = 0% +radius = 0.0 +fixed-center = false + +font-0 = Noto Sans Mono:pixelsize=10;1 +font-1 = Noto Color Emoji:scale=10;1 +font-2 = Font Awesome 5 Free:pixelsize=10;1 +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} + +line-size = 2 +line-color = ${colors.blue} + +border-size = 0 +border-color = ${colors.black} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 1 +module-margin-right = 2 + +modules-left=bspwm +modules-center=xwindow +modules-right=date pulseaudio + +tray-position = right +tray-padding = 2 +# tray-background = ${colors.cyan} + +override-redirect = true + +wm-restack = bspwm +# wm-restack = i3 + +# scroll-up = bspwm-desknext +# scroll-down = bspwm-deskprev + +# scroll-up = i3wm-wsnext +# scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize diff --git a/.config/polybar/second.ini b/.config/polybar/second.ini new file mode 100644 index 0000000..5a6ace7 --- /dev/null +++ b/.config/polybar/second.ini @@ -0,0 +1,51 @@ +[bar/second] +monitor = ${env:SECMON:HDMI-0} +width = 100% +height = 24 +offset-x = 0% +offset-y = 0% +radius = 0.0 +fixed-center = false + +font-0 = Noto Sans Mono:pixelsize=10;1 +font-1 = Noto Color Emoji:scale=10;1 +font-2 = Font Awesome 5 Free:pixelsize=10;1 +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} + +line-size = 2 +line-color = ${colors.blue} + +border-size = 0 +border-color = ${colors.black} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 1 +module-margin-right = 2 + +modules-left=bspwm +modules-center=xwindow +modules-right=date + +# tray-position = right +# tray-padding = 2 +# tray-background = ${colors.cyan} + +override-redirect = true + +wm-restack = bspwm +# wm-restack = i3 + +# scroll-up = bspwm-desknext +# scroll-down = bspwm-deskprev + +# scroll-up = i3wm-wsnext +# scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize diff --git a/.local/bin/statusbar/polybar_panel b/.local/bin/statusbar/polybar_panel index 7e20845..76a7cc2 100755 --- a/.local/bin/statusbar/polybar_panel +++ b/.local/bin/statusbar/polybar_panel @@ -12,7 +12,7 @@ bar2=second echo "---" | tee -a /tmp/$bar1.log /tmp/$bar2.log polybar --reload $bar1 >> /tmp/$bar1.log 2>&1 & disown -polybar --reload $bar2 >> /tmp&$bar2.log 2>&1 & disown +polybar --reload $bar2 >> /tmp/$bar2.log 2>&1 & disown # To display the same bar on multiple monitors. # if type "xrandr"; then |