From ddadc6787b3e63017b65c6e1b28f22a1b1d93a87 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 1 Jun 2019 22:58:12 +0500 Subject: [PATCH] conky -> polybar --- etc/rc.linux-gnu | 3 +- etc/soft/packages.list | 4 +- etc/soft/polybar/polybar.conf | 202 ++++++++++++++++++++++++++++++++++ etc/wm/musca/musca_start.AuthenticAMD | 9 +- 4 files changed, 211 insertions(+), 7 deletions(-) create mode 100644 etc/soft/polybar/polybar.conf diff --git a/etc/rc.linux-gnu b/etc/rc.linux-gnu index 347bd89..c4849e2 100644 --- a/etc/rc.linux-gnu +++ b/etc/rc.linux-gnu @@ -42,7 +42,7 @@ mkdir -p ~/.config/dunst + media/moc ~ - media/scmpc ~ - soft/bar/barrc ~ -+ soft/conky/conkyrc.$(uname -i) ~ +- soft/conky/conkyrc.$(uname -i) ~ - soft/ctags/ctags ~ + soft/htop ~/.config + soft/dunst/dunstrc ~/.config/dunst @@ -56,6 +56,7 @@ mkdir -p ~/.config/dunst + soft/git/gitconfig ~ - soft/git/gitk ~ + soft/stalonetray/stalonetrayrc ~ ++ media/alsa/asoundrc ~ : --------------------------------------------------------------- diff --git a/etc/soft/packages.list b/etc/soft/packages.list index 1de8482..6fec94f 100755 --- a/etc/soft/packages.list +++ b/etc/soft/packages.list @@ -5,10 +5,10 @@ PACKAGES=" dunst #Уведомления xclip #Буфер обмена hstr #История команд - conky #Мониторинг + polybar #Мониторинг scrot #Скриншоты - source-highlight #Подсветка синтаксиса + bat #Подсветка синтаксиса zathura #Просмотр PDF/DJVU geeqie #Просмотр изображений diff --git a/etc/soft/polybar/polybar.conf b/etc/soft/polybar/polybar.conf new file mode 100644 index 0000000..cea2c12 --- /dev/null +++ b/etc/soft/polybar/polybar.conf @@ -0,0 +1,202 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; 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 = 20 +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 = 2 + +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 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/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 diff --git a/etc/wm/musca/musca_start.AuthenticAMD b/etc/wm/musca/musca_start.AuthenticAMD index 6313ae1..dd9f600 100644 --- a/etc/wm/musca/musca_start.AuthenticAMD +++ b/etc/wm/musca/musca_start.AuthenticAMD @@ -1,7 +1,7 @@ [~/.musca_start] # -# Изменён: Пт 01 фев 2019 17:19:42 +# Изменён: Сб 01 июн 2019 22:36:16 # #Цветовая схема#{{{ @@ -17,14 +17,14 @@ set border_catchall_unfocus #882255 #Рабочие группы#{{{ name α -hook on add pad 0 0 18 0 +hook on add pad 0 0 20 0 add β add γ add δ border off hook on add pad 0 0 0 0 use α -hook on add pad 0 0 18 0 +hook on add pad 0 0 20 0 refresh #Два дисплея @@ -196,7 +196,8 @@ set dmenu dmenu -i #}}} # Запуск программ#{{{ -exec conky +#exec conky +exec polybar -c $SHELLRC/etc/soft/polybar/polybar.conf main exec xbindkeys -f $SHELLRC/etc/X/xbindkeysrc.$(uname -i) exec xrdb ~/.Xdefaults #exec urxvtd -q -o -f