共通事項 - バー・パネル - polybar - ArcoLinux

クラウディア 
1. 概要
2. インストール
3. qtile

1. 概要

 「ArcoLinux」では、多くのタイル型デスクトップや「Openbox」で採用されています。

2. インストール

 「root」ユーザで

yes | pacman -S polybar
 初期ファイルを作製します。  ログインユーザで

install -Dm644 /usr/share/doc/polybar/config $HOME/.config/polybar/config
 これで、一応、「~/.config/polybar/config」は作成されますが、これが、使えるないんだな。

3. qtile

 「qtile」で、左に「jgmenu」、右にカレンダーを表示します。  今んとこ、これくらいしか、書けないのだ。  主に、「ArcoLinux 20.11.9 bspwm」のものをかき集めています。

;=====================================================
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;       Themes : https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes
;   https://github.com/jaagr/polybar/wiki/
;   https://github.com/jaagr/polybar/wiki/Configuration
;   https://github.com/jaagr/polybar/wiki/Formatting
;
;=====================================================

[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40

################################################################################
################################################################################
############                       MAINBAR-QTILE                    ############
################################################################################
################################################################################

[bar/mainbar-qtile]
;monitor = ${env:MONITOR}
;monitor = ${env:MONITOR:VGA-1}
width = 100%
height = 30
;offset-x = 1%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false
separator = |

background = ${colors.background}
foreground = ${colors.foreground}
;format-underline = #3EC13F

;line-size = 4
;line-color = #aa[rrggbb]

;wm-restack = qtile
override-redirect = true
enable-ipc = true

border-size = 0
;border-left-size = 0
;border-right-size = 25
;border-top-size = 0
;border-bottom-size = 25
border-color = #00000000

padding-left = 0
padding-right = 1

module-margin-left = 3
module-margin-right = 3

;https://github.com/jaagr/polybar/wiki/Fonts
font-0 = "Noto Sans:size=10;0"
font-1 = "FontAwesome:size=10;0"
font-2 = "Noto Sans:size=10;0"
font-3 = "Noto Sans Mono:size=10;0"

modules-left   = jgmenu
modules-center =
modules-right  = date

tray-detached = false
tray-offset-x = 0
tray-offset-y = 0
tray-position = right
tray-padding = 2
tray-maxsize = 50
tray-scale = 1.0
tray-transparent = true
tray-background = #00000000

;scroll-up =
;scroll-down =

################################################################################

[module/jgmenu]
type = custom/script
interval = 120
exec = echo "  ?"
click-left = "jgmenu_run >/dev/null 2>&1 &"
format-foreground = ${colors.foreground}
format-background = ${colors.background}

[module/xwindow]

[module/filesystem]

[module/bspwm]

[module/i3]

[module/mpd]

[module/xbacklight]
type = internal/xbacklight

format = <label> <bar>
label = BL

bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = q
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = q
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}

[module/backlight-acpi]

[module/cpu]

[module/memory]

[module/wlan]

[module/eth]

[module/date]
;https://github.com/jaagr/polybar/wiki/Module:-date
type = internal/date
; Seconds to sleep between updates
interval = 5
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = " %Y-%m-%d%"
date-alt = " %d-%m-%Y"
time = %H:%M
time-alt = %H:%M
format-prefix = "?"
format-prefix-foreground = #c1941a
format-underline = #c1941a
format-foreground = ${colors.foreground}
format-background = ${colors.background}
label = %date% %time%

[module/pulseaudio]

[module/alsa]

[module/battery]

[module/temperature]

[module/powermenu]

################################################################################

[module/xkeyboard]
;https://github.com/jaagr/polybar/wiki/Module:-xkeyboard
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = "?"
format-prefix-foreground = ${colors.foreground}
format-prefix-background = ${colors.background}
format-prefix-underline = #3ecfb2
format-foreground = ${colors.foreground}
format-background = ${colors.background}

label-layout = %layout%
label-layout-underline = #3ecfb2
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.background}
label-indicator-underline = ${colors.foreground}

[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false

[global/wm]
margin-top = 5
margin-bottom = 5

; vim:ft=dosini
 ようわからんものは、削除しました。  「qtile」では、デフォルトのバーが、「picom」になっているため、「polybar」との入れ替えを行う必要があります。  ログインユーザで

vi ~/.config/qtile/scripts/autostart.sh

picom --config $HOME/.config/qtile/scripts/picom.conf &
 を下記へ書き換えます。

polybar --reload mainbar-qtile -c $HOME/.config/polybar/config &
 ログインしなおせば、「picom」の代わりに「polybar」が表示されます。  「jgmenu」の設定に関しては、「デスクトップ環境 - 共通事項 - メニュー - jgmenu」をご参照ください。
ハイスピードプラン損保との違い