logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).


L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT → ODT PDF Export

Polybar

/home/sushy/.config/polybar/config
;=====================================================
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;
;=====================================================
 
[colors]
active = #000000
;active = #f3f3f3
background = #222
background-alt = #444
foreground = #dfdfdf
foreground-alt = #55
primary = #FFFF00
secondary = #e60053
alert = #bd2c40
 
[global/wm]
margin-top = 5
margin-bottom = 5
 
[bar/defaut]
monitor = DP-0
top = true
bottom = false
fixed-center = true 
width = 100%
height = 35
offset-x = 0
offset-y = 0
 
background = ${colors.background}
foreground = ${colors.foreground}
 
overline-size = 3
overline-color = #f00
underline-size = 3
underline-color = #00f
 
border-bottom-size = 2
border-bottom-color = #333
 
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1
 
font-0 = System San Francisco Display:size=12
font-1 = FontAwesome:size=13
font-2 = MaterialIcons:size=12
 
modules-left = i3
modules-center = xwindow
modules-right = xbacklight date hour powermenu 
 
tray-position = right
tray-padding = 2
 
wm-restack = bspwm
 
[bar/right]
monitor = HDMI-0
top = true
bottom = false
fixed-center = true 
width = 100%
height = 27
offset-x = 0
offset-y = 0
 
background = ${colors.background}
foreground = ${colors.foreground}
 
overline-size = 3
overline-color = #f00
underline-size = 3
underline-color = #00f
 
border-bottom-size = 2
border-bottom-color = #333
 
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1
 
font-0 = System San Francisco Display:size=8
font-1 = FontAwesome:size=9
font-2 = MaterialIcons:size=8
 
modules-left = i3
modules-center = xwindow
modules-right = xbacklight date hour powermenu 
 
tray-position = right
tray-padding = 2
 
wm-restack = bspwm
 
[bar/bottom]
monitor = DP-0
bottom = true
top = false
fixed-center = true 
width = 100%
height = 35
offset-x = 0
offset-y = 0
 
background = ${colors.background}
foreground = ${colors.foreground}
 
overline-size = 3
overline-color = #f00
underline-size = 3
underline-color = #00f
 
border-bottom-size = 2
border-bottom-color = #333
 
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1
 
font-0 = System San Francisco Display:size=12
font-1 = FontAwesome:size=13
font-2 = MaterialIcons:size=12
 
;font-0 = System San Francisco Display:size=8
;font-1 = FontAwesome:size=9
;font-2 = MaterialIcons:size=8
 
modules-left = xbacklight eth temperature cpu2 memory2
modules-center = volume
modules-right = filesystem
 
wm-restack = bspwm
 
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
 
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %{F#55}%{F-} %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.primary}
 
[module/keyboard]
type = internal/xkeyboard
 
; List of indicators to ignore
blacklist-0 = num lock
blacklist-1 = scroll lock
 
[module/filesystem]
type = internal/fs
 
; Mountpoints to display
mount-0 = /
mount-1 = /home
mount-2 = /mnt/STOCKAGE
 
; Seconds to sleep between updates
; Default: 30
interval = 30
 
; Display fixed precision values
; Default: false
fixed-values = true
 
; Spacing between entries
; Default: 2
spacing = 2
 
; Available tags:
;   <label-mounted> (default)
;   <bar-free>
;   <bar-used>
;   <ramp-capacity>
format-mounted =  <label-mounted> 
 
; Available tags:
;   <label-unmounted> (default)
format-unmounted =  <label-unmounted>
 
; Available tokens:
;   %mountpoint%
;   %type%
;   %fsname%
;   %percentage_free%
;   %percentage_used%
;   %total%
;   %free%
;   %used%
; Default: %mountpoint% %percentage_free%%
label-mounted = %mountpoint%: %used% used of %total%
 
; Available tokens:
;   %mountpoint%
; Default: %mountpoint% is not mounted
label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.foreground-alt}
 
[module/bspwm]
type = internal/bspwm
format = <label-state> <label-mode>
 
;label-focused = %index%
label-focused = %icon%  %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
 
;label-occupied = %index%
label-occupied = %icon%  %name%
label-occupied-padding = 2
 
;label-urgent = %index%!
label-urgent = %icon%  %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
 
;label-empty = %index%
label-empty = %icon%  %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
 
ws-icon-0 = Term;;
ws-icon-1 = Web;;
ws-icon-2 = Mail;;
ws-icon-3 = Code;;
ws-icon-4 = Fic;;
ws-icon-5 = Fir;;
ws-icon-6 = Ftp;;
ws-icon-7 = 8;
ws-icon-8 = 9;
ws-icon-default = 
 
[module/i3]
type = internal/i3
format = <label-mode> <label-state> 
enable-click = true
enable-scroll = true
pin-workspaces = true
reverse-scroll = false
fuzzy-match = true
index-sort = true
wrapping-scroll = true
 
label-mode-padding = 22
label-mode-foreground = #000
label-mode-background = ${colors.primary}
 
label-dimmed-underline = ${root.background}
 
label-focused = %index%  %icon%
label-focused-foreground = #f3f3f3
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-font = 4
label-focused-padding = ${module/bspwm.label-focused-padding}
 
label-unfocused = %index%  %icon%
label-unfocused-underline = #555555
label-unfocused-padding = 3
 
label-urgent = %index%  %icon%
label-urgent-background = #bd2c40
label-urgent-padding = ${module/bspwm.label-urgent-padding}
 
label-visible = %index%  %icon%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
 
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
ws-icon-6 = 7;
ws-icon-7 = 8;
ws-icon-8 = 9;
 
ws-icon-default = 
 
[module/mpd]
type = internal/mpd
 
format-online = <label-song>  <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next>  <icon-repeat> <icon-random>
 
label-song-maxlen = 25
label-song-ellipsis = true
 
icon-prev = 
icon-seekb = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
icon-seekf = 
 
icon-random = 
icon-repeat = 
 
toggle-on-foreground = ${colors.primary}
toggle-off-foreground = #66
 
[module/xbacklight]
type = internal/xbacklight
 
format = <label> <bar>
label = BL
 
bar-width = 10
bar-indicator = │
bar-indicator-foreground = #ff
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
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage%%
 
[module/cpu2]
type = internal/cpu
interval = 1.5
 
format = <label> <ramp-coreload>
 
label = CPU
label-font = 3
label-foreground = #99
 
ramp-coreload-0 = ▁
ramp-coreload-0-font = 2
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 2
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 2
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 2
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 2
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 2
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 2
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 2
ramp-coreload-7-foreground = #ff5555
 
[module/memory]
type = internal/memory
interval = 2
format-prefix = ""
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %percentage_used%%
 
[module/memory2]
type = internal/memory
interval = 0.2
format = <label> <bar-used>
 
label = RAM
label-font = 3
label-foreground = #99
 
bar-used-width = 20
bar-used-gradient = true
bar-used-foreground-0 = #449f3d
bar-used-foreground-1 = #2f8419
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ed5456
bar-used-indicator = █
bar-used-indicator-font = 5
bar-used-indicator-foreground = #fff
bar-used-fill = █
bar-used-fill-font = 5
bar-used-empty = █
bar-used-empty-font = 5
bar-used-empty-foreground = #44
 
[module/eth]
type = internal/network
interface = eno1
interval = 0.5
 
format-connected-underline = #0088CC
label-connected =  [ :   %upspeed% | :   %downspeed% ]
#label-connected-foreground = #2aa198
 
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = NET %ifname% disconnected
;label-disconnected-foreground = NET ${colors.foreground-alt}
 
;Required if <bar-progress> is used
bar-progress-width = 5
bar-progress-format = %{+u}%{+o}%fill%%{-u}%{-o}%indicator%%{+u}%{+o}%empty%%{-u}%{-o}
bar-progress-indicator = |
bar-progress-indicator-foreground = ${BAR.foreground}
bar-progress-indicator-font = 3
bar-progress-fill = █
bar-progress-fill-foreground = #5a5
bar-progress-fill-font = 3
bar-progress-empty = █
bar-progress-empty-foreground = #555
bar-progress-empty-font = 3
 
 
[module/date]
type = internal/date
interval = 5
 
date =  %d-%m-%Y
date-alt = %Y-%m-%d
 
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
 
label = %date% 
 
[module/hour]
type = internal/date
interval = 5
 
time =  %H:%M:%S
time-alt = %H:%M:%S
 
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
 
label = %time%
 
[module/volume]
type = internal/volume
 
format-volume = <label-volume> <bar-volume>
label-volume = " "
label-volume-foreground = ${root.foreground}
 
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
 
bar-volume-width = 18
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 = 1
bar-volume-fill = ━
bar-volume-fill-font = 1
bar-volume-empty = ━
bar-volume-empty-font = 1
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 = <ramp-capacity> <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
 
[module/temperature]
type = internal/temperature
thermal-zone = 2
warn-temperature = 60
 
format = <ramp> <label>
format-underline = #55aa55
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
 
label =  %temperature%
label-warn =  %temperature%
label-warn-foreground = ${colors.secondary}
 
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
 
[module/powermenu]
type = custom/menu
label-active-font = 1
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close = 
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
 
menu-0-0 = 
menu-0-0-foreground = ${colors.foreground}
menu-0-0-exec = systemctl poweroff
menu-0-1 = 
menu-0-1-foreground = ${colors.foreground}
menu-0-1-exec = systemctl reboot
menu-0-2 = 
menu-0-2-foreground = ${colors.foreground}
menu-0-2-exec = i3lock -i ~/.config/i3/i3lock.png
 
vim:ft=dosini
utilisateurs/sushy/config/polybar.txt · Dernière modification: 02/04/2019 22:03 par SuShY

Pied de page des forums

Propulsé par FluxBB