dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit df60f0ea8718f56bf9d523a02b878d87e3fff718
parent 64d45ba488b5d8e0ac87b6c1297bfb063dcf2a9d
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Fri, 10 Apr 2020 18:22:10 +0200

polybar: global theme + cmus fix

Diffstat:
Mpolybar/.config/polybar/cmus.sh | 6+++---
Mpolybar/.config/polybar/config | 101++++++++++++++++++++++++++++++++++++++++++-------------------------------------
Mpolybar/.config/polybar/launch.sh | 2+-
3 files changed, 58 insertions(+), 51 deletions(-)

diff --git a/polybar/.config/polybar/cmus.sh b/polybar/.config/polybar/cmus.sh @@ -4,9 +4,9 @@ ARTIST=$(grep 'tag artist ' /tmp/cmus.status | tail -c +12) STATE=$(grep 'status ' /tmp/cmus.status | tail -c +8) if [ $STATE = 'playing' ]; then - echo "▶ $ARTIST - $TITLE" + echo " $ARTIST - $TITLE" elif [ $STATE = 'paused' ]; then - echo "⏸ $ARTIST - $TITLE" + echo " $ARTIST - $TITLE" else - echo "■" + echo "" fi diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config @@ -8,15 +8,24 @@ ;===================================================== [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 +black = #282c34 +red = #e06c75 +green = #98c379 +yellow = #e5c07b +blue = #61afef +magenta = #c678dd +cyan = #56b6c2 +white = #dcdfe4 + +background = #e6282c34 +background-alt = #e65c6370 + +foreground = #dcdfe4 +foreground-alt = #ffffff + +primary = ${colors.green} +secondary = ${colors.yellow} +alert = ${colors.red} [bar/example] ;monitor = HDMI-0 @@ -33,10 +42,10 @@ background = ${colors.background} foreground = ${colors.foreground} line-size = 3 -line-color = #f00 +line-color = ${colors.red} border-size = 0 -border-color = #00000000 +border-color = ${colors.white} padding-left = 0 padding-right = 2 @@ -44,9 +53,8 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 2 -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = "Siji:pixelsize=10;1" +font-0 = "Noto Mono:pixelsize=9;1" +font-1 = "Siji:pixelsize=10;1" modules-left = i3 modules-center = cmus @@ -54,7 +62,6 @@ modules-right = filesystem memory cpu eth xkeyboard date tray-position = left tray-padding = 2 -;tray-transparent = true ;tray-background = #0063ff ;wm-restack = bspwm @@ -93,11 +100,11 @@ type = internal/fs interval = 25 mount-0 = / -mount-1 = /home +mount-1 = /data label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} +label-unmounted-foreground = ${colors.foreground} [module/bspwm] type = internal/bspwm @@ -128,7 +135,7 @@ wrapping-scroll = false ;pin-workspaces = true label-mode-padding = 2 -label-mode-foreground = #000 +label-mode-foreground = ${colors.foreground} label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor @@ -182,18 +189,18 @@ label-song-ellipsis = true type = internal/xbacklight format = <label> <bar> -label = BL +label =  bar-width = 10 bar-indicator = | -bar-indicator-foreground = #ff +bar-indicator-foreground = ${colors.foreground} bar-indicator-font = 2 bar-fill = ─ bar-fill-font = 2 -bar-fill-foreground = #9f78e1 +bar-fill-foreground = ${colors.magenta} bar-empty = ─ bar-empty-font = 2 -bar-empty-foreground = ${colors.foreground-alt} +bar-empty-foreground = ${colors.foreground} [module/backlight-acpi] inherit = module/xbacklight @@ -204,16 +211,16 @@ card = intel_backlight type = internal/cpu interval = 2 format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.red} label = %percentage%% [module/memory] type = internal/memory interval = 2 format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.cyan} label = %percentage_used%% [module/wlan] @@ -222,7 +229,7 @@ interface = wlp3s0 interval = 3.0 format-connected = <ramp-signal> <label-connected> -format-connected-underline = #9f78e1 +format-connected-underline = ${colors.green} label-connected = %essid% format-disconnected = @@ -236,16 +243,16 @@ ramp-signal-1 =  ramp-signal-2 =  ramp-signal-3 =  ramp-signal-4 =  -ramp-signal-foreground = ${colors.foreground-alt} +ramp-signal-foreground = ${colors.foreground} [module/eth] type = internal/network interface = enp4s0 interval = 3.0 -format-connected-underline = #55aa55 +format-connected-underline = ${colors.green} format-connected-prefix = " " -format-connected-prefix-foreground = ${colors.foreground-alt} +format-connected-prefix-foreground = ${colors.foreground} label-connected = %local_ip% format-disconnected = @@ -265,8 +272,8 @@ time = %H:%M time-alt = %H:%M:%S format-prefix =  -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.blue} label = %date% %time% @@ -274,21 +281,21 @@ label = %date% %time% type = internal/volume format-volume = <label-volume> <bar-volume> -label-volume = VOL +label-volume =  label-volume-foreground = ${root.foreground} format-muted-prefix = " " -format-muted-foreground = ${colors.foreground-alt} -label-muted = sound muted +format-muted-foreground = ${colors.foreground} +label-muted = |───────── bar-volume-width = 10 -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-foreground-0 = ${colors.green} +bar-volume-foreground-1 = ${colors.green} +bar-volume-foreground-2 = ${colors.green} +bar-volume-foreground-3 = ${colors.green} +bar-volume-foreground-4 = ${colors.green} +bar-volume-foreground-5 = ${colors.yellow} +bar-volume-foreground-6 = ${colors.red} bar-volume-gradient = false bar-volume-indicator = | bar-volume-indicator-font = 2 @@ -296,7 +303,7 @@ bar-volume-fill = ─ bar-volume-fill-font = 2 bar-volume-empty = ─ bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} +bar-volume-empty-foreground = ${colors.foreground} [module/battery] type = internal/battery @@ -305,24 +312,24 @@ adapter = ADP1 full-at = 98 format-charging = <animation-charging> <label-charging> -format-charging-underline = #ffb52a +format-charging-underline = ${colors.yellow} 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-prefix-foreground = ${colors.foreground} format-full-underline = ${self.format-charging-underline} ramp-capacity-0 =  ramp-capacity-1 =  ramp-capacity-2 =  -ramp-capacity-foreground = ${colors.foreground-alt} +ramp-capacity-foreground = ${colors.foreground} animation-charging-0 =  animation-charging-1 =  animation-charging-2 =  -animation-charging-foreground = ${colors.foreground-alt} +animation-charging-foreground = ${colors.foreground} animation-charging-framerate = 750 [module/temperature] diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh @@ -1,4 +1,4 @@ #!/bin/sh killall polybar #env MONITOR=$(polybar -m|head -1|sed -e 's/:.*$//g') -polybar example +exec polybar -r example