Setup workspace display for polybar

This commit is contained in:
Tanguy Herbron 2020-07-08 23:38:21 +02:00
parent 04ae63db65
commit 0f582c9bb3
2 changed files with 118 additions and 117 deletions

View File

@ -16,6 +16,7 @@
bg = #263238 bg = #263238
fg = #DFDFDF fg = #DFDFDF
ac = #00BCD4 ac = #00BCD4
sbg = #004a54
;; Bars ;; Bars
bi = #00BCD4 bi = #00BCD4

View File

@ -516,8 +516,8 @@ label-unmounted = %mountpoint%: not mounted
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;;[module/i3] [module/workspaces]
;;type = internal/i3 type = internal/i3
; Only show workspaces defined on the same output as the bar ; Only show workspaces defined on the same output as the bar
; ;
@ -525,62 +525,62 @@ label-unmounted = %mountpoint%: not mounted
; on different bars ; on different bars
; ;
; Default: false ; Default: false
;;pin-workspaces = true pin-workspaces = true
; This will split the workspace name on ':' ; This will split the workspace name on ':'
; Default: false ; Default: false
;;strip-wsnumbers = true strip-wsnumbers = true
; Sort the workspaces by index instead of the default ; Sort the workspaces by index instead of the default
; sorting that groups the workspaces by output ; sorting that groups the workspaces by output
; Default: false ; Default: false
;;index-sort = true index-sort = true
; Create click handler used to focus workspace ; Create click handler used to focus workspace
; Default: true ; Default: true
;;enable-click = false enable-click = false
; Create scroll handlers used to cycle workspaces ; Create scroll handlers used to cycle workspaces
; Default: true ; Default: true
;;enable-scroll = false enable-scroll = false
; Wrap around when reaching the first/last workspace ; Wrap around when reaching the first/last workspace
; Default: true ; Default: true
;;wrapping-scroll = false wrapping-scroll = false
; Set the scroll cycle direction ; Set the scroll cycle direction
; Default: true ; Default: true
;;reverse-scroll = false reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning ; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces ; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces ; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label ; containing 'code' in the label
; Default: false ; Default: false
;;fuzzy-match = true fuzzy-match = true
; ws-icon-[0-9]+ = label;icon ; ws-icon-[0-9]+ = label;icon
; NOTE: The label needs to match the name of the i3 workspace ; NOTE: The label needs to match the name of the i3 workspace
;;ws-icon-0 = 1;♚ ws-icon-0 = 1;♚
;;ws-icon-1 = 2;♛ ws-icon-1 = 2;♛
;;ws-icon-2 = 3;♜ ws-icon-2 = 3;♜
;;ws-icon-3 = 4;♝ ws-icon-3 = 4;♝
;;ws-icon-4 = 5;♞ ws-icon-4 = 5;♞
;;ws-icon-default = ws-icon-default =
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6 ; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
; you must also define a ws-icon-5. ; you must also define a ws-icon-5.
; Available tags: ; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)> ; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default) ; <label-mode> (default)
;;format = <label-state> <label-mode> format = <label-state> <label-mode>
; Available tokens: ; Available tokens:
; %mode% ; %mode%
; Default: %mode% ; Default: %mode%
;;label-mode = %mode% label-mode = %mode%
;;label-mode-padding = 2 label-mode-padding = 2
;;label-mode-background = #e60053 label-mode-background = #e60053
; Available tokens: ; Available tokens:
; %name% ; %name%
@ -588,11 +588,11 @@ label-unmounted = %mountpoint%: not mounted
; %index% ; %index%
; %output% ; %output%
; Default: %icon% %name% ; Default: %icon% %name%
;;label-focused = %index% label-focused = %index%
;;label-focused-foreground = #ffffff label-focused-foreground = #ffffff
;;label-focused-background = #3f3f3f label-focused-background = ${color.sbg}
;;label-focused-underline = #fba922 label-focused-underline = ${color.ac}
;;label-focused-padding = 4 label-focused-padding = 4
; Available tokens: ; Available tokens:
; %name% ; %name%
@ -600,8 +600,8 @@ label-unmounted = %mountpoint%: not mounted
; %index% ; %index%
; %output% ; %output%
; Default: %icon% %name% ; Default: %icon% %name%
;;label-unfocused = %index% label-unfocused = %index%
;;label-unfocused-padding = 4 label-unfocused-padding = 4
; Available tokens: ; Available tokens:
; %name% ; %name%
@ -609,9 +609,9 @@ label-unmounted = %mountpoint%: not mounted
; %index% ; %index%
; %output% ; %output%
; Default: %icon% %name% ; Default: %icon% %name%
;;label-visible = %index% label-visible = %index%
;;label-visible-underline = #555555 label-visible-underline = #555555
;;label-visible-padding = 4 label-visible-padding = 4
; Available tokens: ; Available tokens:
; %name% ; %name%
@ -619,15 +619,15 @@ label-unmounted = %mountpoint%: not mounted
; %index% ; %index%
; %output% ; %output%
; Default: %icon% %name% ; Default: %icon% %name%
;;label-urgent = %index% label-urgent = %index%
;;label-urgent-foreground = #000000 label-urgent-foreground = #000000
;;label-urgent-background = #bd2c40 label-urgent-background = #bd2c40
;;label-urgent-padding = 4 label-urgent-padding = 4
; Separator in between workspaces ; Separator in between workspaces
;;label-separator = | label-separator = |
;;label-separator-padding = 2 label-separator-padding = 2
;;label-separator-foreground = #ffb52a label-separator-foreground = ${color.ac}
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
@ -1053,88 +1053,88 @@ label-maxlen = 30
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[module/workspaces] ;[module/workspaces]
type = internal/xworkspaces ;type = internal/xworkspaces
; Only show workspaces defined on the same output as the bar
; ;
; Useful if you want to show monitor specific workspaces ;; Only show workspaces defined on the same output as the bar
; on different bars ;;
;; Useful if you want to show monitor specific workspaces
;; on different bars
;;
;; Default: false
;pin-workspaces = true
; ;
; Default: false ;; Create click handler used to focus desktop
pin-workspaces = true ;; Default: true
;enable-click = true
; Create click handler used to focus desktop ;
; Default: true ;; Create scroll handlers used to cycle desktops
enable-click = true ;; Default: true
;enable-scroll = true
; Create scroll handlers used to cycle desktops ;
; Default: true ;; icon-[0-9]+ = <desktop-name>;<icon>
enable-scroll = true ;; NOTE: The desktop name needs to match the name configured by the WM
;; You can get a list of the defined desktops using:
; icon-[0-9]+ = <desktop-name>;<icon> ;; $ xprop -root _NET_DESKTOP_NAMES
; NOTE: The desktop name needs to match the name configured by the WM ;icon-0 = TTY;
; You can get a list of the defined desktops using: ;icon-1 = WEB;
; $ xprop -root _NET_DESKTOP_NAMES ;icon-2 = LAB;
icon-0 = TTY; ;icon-3 = MED;
icon-1 = WEB; ;;icon-4 = 5;
icon-2 = LAB; ;icon-default =
icon-3 = MED; ;
;icon-4 = 5; ;; Available tags:
icon-default = ;; <label-monitor>
;; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
; Available tags: ;; Default: <label-state>
; <label-monitor> ;format = <label-state>
; <label-state> - gets replaced with <label-(active|urgent|occupied|empty)> ;format-padding = 0
; Default: <label-state> ;
format = <label-state> ;; Available tokens:
format-padding = 0 ;; %name%
;; Default: %name%
; Available tokens: ;label-monitor = %name%
; %name% ;
; Default: %name% ;; Available tokens:
label-monitor = %name% ;; %name%
;; %icon%
; Available tokens: ;; %index%
; %name% ;; Default: %icon% %name%
; %icon% ;label-active = %name% %icon%
; %index% ;label-active-foreground = ${color.ac}
; Default: %icon% %name% ;label-active-background = ${color.bg}
label-active = %name% %icon% ;;;label-active-underline = ${color.ac}
label-active-foreground = ${color.ac} ;
label-active-background = ${color.bg} ;; Available tokens:
;;label-active-underline = ${color.ac} ;; %name%
;; %icon%
; Available tokens: ;; %index%
; %name% ;; Default: %icon% %name%
; %icon% ;label-occupied = %icon%
; %index% ;label-occupied-underline = ${color.fg}
; Default: %icon% %name% ;
label-occupied = %icon% ;; Available tokens:
label-occupied-underline = ${color.fg} ;; %name%
;; %icon%
; Available tokens: ;; %index%
; %name% ;; Default: %icon% %name%
; %icon% ;label-urgent = %icon%
; %index% ;label-urgent-foreground = ${color.red}
; Default: %icon% %name% ;label-urgent-background = ${color.bg}
label-urgent = %icon% ;;;label-urgent-underline = ${color.red}
label-urgent-foreground = ${color.red} ;
label-urgent-background = ${color.bg} ;; Available tokens:
;;label-urgent-underline = ${color.red} ;; %name%
;; %icon%
; Available tokens: ;; %index%
; %name% ;; Default: %icon% %name%
; %icon% ;label-empty = %icon%
; %index% ;label-empty-foreground = ${color.fg}
; Default: %icon% %name% ;
label-empty = %icon% ;label-active-padding = 1
label-empty-foreground = ${color.fg} ;label-urgent-padding = 1
;label-occupied-padding = 1
label-active-padding = 1 ;label-empty-padding = 1
label-urgent-padding = 1
label-occupied-padding = 1
label-empty-padding = 1
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;; __________ ______ ;; __________ ______