From 181725be8c169eb2b33c381ea9bfa1626b317321 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 18 Jan 2020 20:31:28 +0300 Subject: [PATCH] =?UTF-8?q?polybar:=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=20bspwm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/soft/polybar/config | 245 ++++++++++++++++++++++++++++++++++++++++++ etc/soft/polybar/polybar.conf | 211 ------------------------------------ 2 files changed, 245 insertions(+), 211 deletions(-) create mode 100644 etc/soft/polybar/config delete mode 100644 etc/soft/polybar/polybar.conf diff --git a/etc/soft/polybar/config b/etc/soft/polybar/config new file mode 100644 index 0000000..ac52118 --- /dev/null +++ b/etc/soft/polybar/config @@ -0,0 +1,245 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/jaagr/polybar +; +; The README contains alot of information +; +;========================================================== + +[colors] +;background = ${xrdb:color0:#222} +background = #D9D9D9 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #000000 +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +green = #008000 +yellow = #FF8C00 +magenta = #B217B2 +cyan = #00B0B0 + +[bar/main] +wm-name = Bar + +wm-restack = bspwm + +monitor = ${env:MONITOR:eDP1} +width = 100% +height = 22 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 2 +;line-color = #f00 + +border-size = 0 +border-color = ${colors.background} + +padding-left = 1 +padding-right = 1 + +module-margin-left = 1 +module-margin-right = 1 + +;font-0 = fixed:pixelsize=10;1 +;font-0 = DejaVuSansMono Nerd Font Mono:size=9 +;font-1 = DejaVuSansMono Nerd Font Mono:size=9 +;font-2 = DejaVuSansMono Nerd Font Mono:size=9 +;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +;font-2 = siji:pixelsize=10;1 + +font-0 = NotoMono Nerd Font:size=12 +font-1 = NotoMono Nerd Font:size=12 +font-2 = NotoMono Nerd Font:size=12 + +modules-left = desktop +modules-center = filesystem +modules-right = bdays webcheck mail battery backlight alsa xkeyboard date + +separator = | + +tray-position = right +tray-padding = 2 +;tray-transparent = true +;tray-background = #0063ff + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/desktop] +;type = internal/xworkspaces +type = internal/bspwm + +pin-workspaces = false +inline-mode = true + +enable-click = true + +fuzy-match = true + +format = " | " + +label-monitor =  + +label-focused-foreground = #B22222 +label-urgent-foreground = ${colors.alert} + +;label-focused-underline = ${colors.alert} +;label-empty-underline = ${colors.alert} + +[module/delimiter] +type = custom/text +content = ] + +[module/bdays] +type = custom/script +exec = dates | grep '\*' +interval = 86400 + +format =  +format-foreground = ${colors.alert} + +[module/mail] +type = custom/script +exec = cat $MD/new +interval = 60 + +format-prefix = " " +format-underline = ${colors.green} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format-prefix = +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.secondary} + +label-layout = [ %layout% ] +label-layout-underline = ${colors.secondary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs + +mount-0 = / +mount-1 = /home +mount-2 = /mnt/DATA +mount-3 = /mnt/WINDOWS +mount-4 = /mnt/FLASH + +interval = 25 + +fixed-values = true + +label-mounted = %mountpoint%: %{F#bd2c40}%free%%{F-} +label-unmounted = + +[module/date] +type = internal/date +interval = 5 + +time = " %H:%M" +date = " %Y-%m-%d" + +format-prefix = +format-prefix-foreground = ${colors.foreground-alt} +format-underline = #0a6cf5 + +label = "%time% | %date%" + +[module/alsa] +type = internal/alsa + +format-volume = +label-volume = 墳 %percentage%% +label-volume-foreground = ${root.foreground} +label-volume-underline = ${colors.green} + +ramp-volume-0 = XXX + +format-muted-prefix = "婢 " +format-muted-foreground = ${colors.foreground-alt} +format-muted-underline = ${colors.foreground-alt} +label-muted = %percentage%% + +[module/webcheck] +type = custom/script +label = %output% +label-padding = 1 +format-underline = #0a6cf5 + +interval = 1200 +exec = "webcheck short" + +[module/battery] +type = internal/battery +battery = BAT0 +adapter = ADP1 +full-at = 90 + +format-charging = +format-charging-underline = ${colors.green} + +format-discharging = +format-discharging-underline = ${colors.yellow} + +format-full-prefix = " " +format-full-prefix-foreground = ${colors.green} +format-full-underline = ${colors.green} + +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-foreground = ${colors.yellow} + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-foreground = ${colors.green} +animation-charging-framerate = 750 + +[module/backlight] +type = internal/backlight +card = intel_backlight + +enable-scroll = true + +label =  %percentage%% + +;label-padding = 2 +;label-margin = 1 +label-underline = ${colors.cyan} + +[settings] +screenchange-reload = true +;compositing-background = xor +;compositing-background = screen +;compositing-foreground = source +;compositing-border = over + +[global/wm] +margin-top = 5 +margin-bottom = 5 + +; vim:ft=dosini diff --git a/etc/soft/polybar/polybar.conf b/etc/soft/polybar/polybar.conf deleted file mode 100644 index 5a952b8..0000000 --- a/etc/soft/polybar/polybar.conf +++ /dev/null @@ -1,211 +0,0 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;========================================================== - -[colors] -;background = ${xrdb:color0:#222} -background = #D9D9D9 -background-alt = #444 -;foreground = ${xrdb:color7:#222} -foreground = #000000 -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 - -green = #008000 -yellow = #FF8C00 - -[bar/main] -wm-name = Conky -; monitor = ${env:MONITOR:HDMI-1} -width = 100% -height = 18 -fixed-center = false - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 2 -;line-color = #f00 - -border-size = 0 -border-color = ${colors.background} - -padding-left = 0 -padding-right = 1 - -module-margin-left = 1 -module-margin-right = 1 - -;font-0 = fixed:pixelsize=10;1 -font-0 = DejaVuSansMono Nerd Font Mono:size=9 -font-1 = DejaVuSansMono Nerd Font Mono:size=9 -font-2 = DejaVuSansMono Nerd Font Mono:size=9 -;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -;font-2 = siji:pixelsize=10;1 - -modules-left = desktop -modules-center = filesystem -modules-right = bdays webcheck battery mail xkeyboard alsa date - -separator = | - -tray-position = right -tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff - -cursor-click = pointer -cursor-scroll = ns-resize - -[module/desktop] -type = internal/xworkspaces - -label-active-foreground = #B22222 - -label-active-underline = ${colors.alert} -label-empty-underline = ${colors.alert} - -[module/delimiter] -type = custom/text -content = ] - -[module/bdays] -type = custom/script -exec = dates | grep '\*' -interval = 86400 - -format =  -format-foreground = ${colors.alert} - -[module/mail] -type = custom/script -exec = cat $MD/new -interval = 60 - -format-prefix = " " -format-underline = ${colors.green} - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} - -label-layout = [ %layout% ] -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs - -mount-0 = / -mount-1 = /home -mount-2 = /mnt/DATA -mount-3 = /mnt/WINDOWS -mount-4 = /mnt/FLASH - -interval = 25 - -fixed-values = true - -label-mounted = %mountpoint%: %{F#bd2c40}%free%%{F-} -label-unmounted = - -[module/date] -type = internal/date -interval = 5 - -time = " %H:%M" -date = " %Y-%m-%d" - -format-prefix = -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 - -label = "%time% | %date%" - -[module/alsa] -type = internal/alsa - -format-volume = -label-volume = 墳 %percentage%% -label-volume-foreground = ${root.foreground} -label-volume-underline = ${colors.green} - -ramp-volume-0 = XXX - -format-muted-prefix = "婢 " -format-muted-foreground = ${colors.foreground-alt} -format-muted-underline = ${colors.foreground-alt} -label-muted = %percentage%% - -[module/webcheck] -type = custom/script -label = %output% -label-padding = 1 -format-underline = #0a6cf5 - -interval = 1200 -exec = "webcheck short" - -[module/battery] -type = internal/battery -battery = BAT0 -adapter = ADP1 -full-at = 90 - -format-charging = -format-charging-underline = ${colors.green} - -format-discharging = -format-discharging-underline = ${colors.yellow} - -format-full-prefix = " " -format-full-prefix-foreground = ${colors.green} -format-full-underline = ${colors.green} - -ramp-capacity-0 =  -ramp-capacity-1 =  -ramp-capacity-2 =  -ramp-capacity-foreground = ${colors.yellow} - -animation-charging-0 =  -animation-charging-1 =  -animation-charging-2 =  -animation-charging-foreground = ${colors.green} -animation-charging-framerate = 750 - -[settings] -screenchange-reload = true -;compositing-background = xor -;compositing-background = screen -;compositing-foreground = source -;compositing-border = over - -[global/wm] -margin-top = 5 -margin-bottom = 5 - -; vim:ft=dosini