From 0f582c9bb346edfc6441e113ba664c21c2e38c2d Mon Sep 17 00:00:00 2001 From: therbron Date: Wed, 8 Jul 2020 23:38:21 +0200 Subject: [PATCH] Setup workspace display for polybar --- .config/polybar/colors.ini | 1 + .config/polybar/modules.ini | 234 ++++++++++++++++++------------------ 2 files changed, 118 insertions(+), 117 deletions(-) diff --git a/.config/polybar/colors.ini b/.config/polybar/colors.ini index 951dbcf..5b7cf3d 100644 --- a/.config/polybar/colors.ini +++ b/.config/polybar/colors.ini @@ -16,6 +16,7 @@ bg = #263238 fg = #DFDFDF ac = #00BCD4 +sbg = #004a54 ;; Bars bi = #00BCD4 diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini index f2a5420..7152f41 100644 --- a/.config/polybar/modules.ini +++ b/.config/polybar/modules.ini @@ -516,8 +516,8 @@ label-unmounted = %mountpoint%: not mounted ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ -;;[module/i3] -;;type = internal/i3 +[module/workspaces] +type = internal/i3 ; Only show workspaces defined on the same output as the bar ; @@ -525,62 +525,62 @@ label-unmounted = %mountpoint%: not mounted ; on different bars ; ; Default: false -;;pin-workspaces = true +pin-workspaces = true ; This will split the workspace name on ':' ; Default: false -;;strip-wsnumbers = true +strip-wsnumbers = true ; Sort the workspaces by index instead of the default ; sorting that groups the workspaces by output ; Default: false -;;index-sort = true +index-sort = true ; Create click handler used to focus workspace ; Default: true -;;enable-click = false +enable-click = false ; Create scroll handlers used to cycle workspaces ; Default: true -;;enable-scroll = false +enable-scroll = false ; Wrap around when reaching the first/last workspace ; Default: true -;;wrapping-scroll = false +wrapping-scroll = false ; Set the scroll cycle direction ; Default: true -;;reverse-scroll = false +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 +fuzzy-match = true ; ws-icon-[0-9]+ = label;icon ; NOTE: The label needs to match the name of the i3 workspace -;;ws-icon-0 = 1;♚ -;;ws-icon-1 = 2;♛ -;;ws-icon-2 = 3;♜ -;;ws-icon-3 = 4;♝ -;;ws-icon-4 = 5;♞ -;;ws-icon-default = ♟ +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. ; Available tags: ; (default) - gets replaced with ; (default) -;;format = +format = ; Available tokens: ; %mode% ; Default: %mode% -;;label-mode = %mode% -;;label-mode-padding = 2 -;;label-mode-background = #e60053 +label-mode = %mode% +label-mode-padding = 2 +label-mode-background = #e60053 ; Available tokens: ; %name% @@ -588,11 +588,11 @@ label-unmounted = %mountpoint%: not mounted ; %index% ; %output% ; Default: %icon% %name% -;;label-focused = %index% -;;label-focused-foreground = #ffffff -;;label-focused-background = #3f3f3f -;;label-focused-underline = #fba922 -;;label-focused-padding = 4 +label-focused = %index% +label-focused-foreground = #ffffff +label-focused-background = ${color.sbg} +label-focused-underline = ${color.ac} +label-focused-padding = 4 ; Available tokens: ; %name% @@ -600,8 +600,8 @@ label-unmounted = %mountpoint%: not mounted ; %index% ; %output% ; Default: %icon% %name% -;;label-unfocused = %index% -;;label-unfocused-padding = 4 +label-unfocused = %index% +label-unfocused-padding = 4 ; Available tokens: ; %name% @@ -609,9 +609,9 @@ label-unmounted = %mountpoint%: not mounted ; %index% ; %output% ; Default: %icon% %name% -;;label-visible = %index% -;;label-visible-underline = #555555 -;;label-visible-padding = 4 +label-visible = %index% +label-visible-underline = #555555 +label-visible-padding = 4 ; Available tokens: ; %name% @@ -619,15 +619,15 @@ label-unmounted = %mountpoint%: not mounted ; %index% ; %output% ; Default: %icon% %name% -;;label-urgent = %index% -;;label-urgent-foreground = #000000 -;;label-urgent-background = #bd2c40 -;;label-urgent-padding = 4 +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 +label-separator = | +label-separator-padding = 2 +label-separator-foreground = ${color.ac} ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ @@ -1053,88 +1053,88 @@ label-maxlen = 30 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ -[module/workspaces] -type = internal/xworkspaces - -; Only show workspaces defined on the same output as the bar +;[module/workspaces] +;type = internal/xworkspaces ; -; Useful if you want to show monitor specific workspaces -; on different bars +;; 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 ; -; Default: false -pin-workspaces = true - -; Create click handler used to focus desktop -; Default: true -enable-click = true - -; Create scroll handlers used to cycle desktops -; Default: true -enable-scroll = true - -; icon-[0-9]+ = ; -; NOTE: The desktop name needs to match the name configured by the WM -; You can get a list of the defined desktops using: -; $ xprop -root _NET_DESKTOP_NAMES -icon-0 = TTY; -icon-1 = WEB; -icon-2 = LAB; -icon-3 = MED; -;icon-4 = 5; -icon-default = - -; Available tags: -; -; - gets replaced with -; Default: -format = -format-padding = 0 - -; Available tokens: -; %name% -; Default: %name% -label-monitor = %name% - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-active = %name% %icon% -label-active-foreground = ${color.ac} -label-active-background = ${color.bg} -;;label-active-underline = ${color.ac} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-occupied = %icon% -label-occupied-underline = ${color.fg} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-urgent = %icon% -label-urgent-foreground = ${color.red} -label-urgent-background = ${color.bg} -;;label-urgent-underline = ${color.red} - -; Available tokens: -; %name% -; %icon% -; %index% -; Default: %icon% %name% -label-empty = %icon% -label-empty-foreground = ${color.fg} - -label-active-padding = 1 -label-urgent-padding = 1 -label-occupied-padding = 1 -label-empty-padding = 1 +;; Create click handler used to focus desktop +;; Default: true +;enable-click = true +; +;; Create scroll handlers used to cycle desktops +;; Default: true +;enable-scroll = true +; +;; icon-[0-9]+ = ; +;; NOTE: The desktop name needs to match the name configured by the WM +;; You can get a list of the defined desktops using: +;; $ xprop -root _NET_DESKTOP_NAMES +;icon-0 = TTY; +;icon-1 = WEB; +;icon-2 = LAB; +;icon-3 = MED; +;;icon-4 = 5; +;icon-default = +; +;; Available tags: +;; +;; - gets replaced with +;; Default: +;format = +;format-padding = 0 +; +;; Available tokens: +;; %name% +;; Default: %name% +;label-monitor = %name% +; +;; Available tokens: +;; %name% +;; %icon% +;; %index% +;; Default: %icon% %name% +;label-active = %name% %icon% +;label-active-foreground = ${color.ac} +;label-active-background = ${color.bg} +;;;label-active-underline = ${color.ac} +; +;; Available tokens: +;; %name% +;; %icon% +;; %index% +;; Default: %icon% %name% +;label-occupied = %icon% +;label-occupied-underline = ${color.fg} +; +;; Available tokens: +;; %name% +;; %icon% +;; %index% +;; Default: %icon% %name% +;label-urgent = %icon% +;label-urgent-foreground = ${color.red} +;label-urgent-background = ${color.bg} +;;;label-urgent-underline = ${color.red} +; +;; Available tokens: +;; %name% +;; %icon% +;; %index% +;; Default: %icon% %name% +;label-empty = %icon% +;label-empty-foreground = ${color.fg} +; +;label-active-padding = 1 +;label-urgent-padding = 1 +;label-occupied-padding = 1 +;label-empty-padding = 1 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; __________ ______