diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-22 12:58:16 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-22 12:58:16 +0200 |
commit | 9293bd808111f576f981d0d93ca8d715d22cd7e5 (patch) | |
tree | 518d9867579cc01929198f4fce4f015ac6c9e128 /.config/polybar | |
parent | 8da5ed235bf0177df156eca42239257586026d02 (diff) |
large laptop dotfiles update
Diffstat (limited to '.config/polybar')
-rw-r--r-- | .config/polybar/config##template (renamed from .config/polybar/config) | 66 | ||||
-rw-r--r-- | .config/polybar/config.superesc | 12 | ||||
-rw-r--r-- | .config/polybar/config.thoncc | 45 |
3 files changed, 82 insertions, 41 deletions
diff --git a/.config/polybar/config b/.config/polybar/config##template index 818169c..dafd333 100644 --- a/.config/polybar/config +++ b/.config/polybar/config##template @@ -1,6 +1,14 @@ [barsettings] padding = 1.9 +[color] +bg = ${xrdb:background:#fdf9f7} +fg = ${xrdb:foreground:#121213} +fg-alt = ${xrdb:background:#fdf9f7} +fg-half = ${xrdb:color8:#bbb8b7} + +alpha = #00000000 + [global/wm] margin-bottom = 50 margin-top = 0 @@ -39,12 +47,18 @@ module-margin-right = 1 font-0 = "JetBrains Mono Nerd Font:pixelsize=8:weight=regular:size=0;2" font-1 = "JetBrains Mono Nerd Font:pixelsize=8:weight=bold:size=0;2" -font-2 = "Noto Sans JP:pixelsize=8:weight=bold:size=0;2" -font-3 = "Noto Sans KR:pixelsize=8:weight=bold:size=0;2" - -modules-left = time date +font-2 = "Noto Sans JP:pixelsize=8:weight=medium:size=0;2" +font-3 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2" + +{% if yadm.hostname == "thoncc" %} +modules-left = time date rooster +modules-center = battery1 battery2 brightness +modules-right = wireless keyboard volume whoami +{% else %} +modules-left = time date modules-center = weather mpd modules-right = keyboard volume whoami +{% endif %} separator = @@ -54,7 +68,7 @@ dim-value = 1.0 wm-name = -locale=ja_JP.UTF-8 +locale = ja_JP.UTF-8 wm-restack = i3 @@ -76,8 +90,6 @@ cursor-scroll = throttle-output = 5 throttle-output-for = 10 -throttle-input-for = 30 - screenchange-reload = false compositing-background = source @@ -86,25 +98,12 @@ compositing-overline = over compositing-underline = over compositing-border = over -format-foreground = -format-background = -format-underline = -format-overline = -format-spacing = -format-padding = -format-margin = -format-offset = +format-foreground = ${color.fg} +format-background = ${color.bg} +format-padding = ${barsettings.padding} pseudo-transparency = false -[color] - -bg = ${xrdb:background:#0f1419} -fg = ${xrdb:foreground:#f8f8f0} -fg-alt = ${xrdb:background:#0f1419} - -alpha = #00000000 - [module/volume] type = internal/pulseaudio format-volume = <label-volume> @@ -114,7 +113,7 @@ label-muted = "muted" [module/date] type = internal/date interval = 1.0 -time = %{T2}%m月%d日 %{T-}(%a) +time = %m月%d日 %A format = <label> label = %time% @@ -125,17 +124,6 @@ time = %{T2}%H時%M分%{T-} format = <label> label = %time% -[module/mpd] -type = internal/mpd -format-online = <toggle> <label-song> -format-offline = [mpd offline] -format-stopped = -icon-play = -icon-pause = -label-song = %{T2}%artist%%{T-}: %title% -label-song-maxlen = 50 -label-song-ellipsis = true - [module/weather] type = custom/script exec = ~/.config/polybar-forecast/target/release/polybar-forecast @@ -145,14 +133,10 @@ label-font = 2 [module/whoami] type = custom/script -exec = echo "%{T2}$(whoami)%{T-}@%{T2}$(cat /etc/hostname)%{T-}" +exec = echo "%{T2}$(id -u -n)%{T-}@%{T2}$(uname -n)%{T-}" interval = 9999999 label-font = 2 -[module/keyboard] -type = custom/script -exec = ~/.local/share/bin/kbindicator -interval = 5 -label-font = 1 +{% include "config.{{ yadm.hostname }}" %} ; vim:ft=dosini diff --git a/.config/polybar/config.superesc b/.config/polybar/config.superesc new file mode 100644 index 0000000..3a1e28d --- /dev/null +++ b/.config/polybar/config.superesc @@ -0,0 +1,12 @@ +[module/mpd] +type = internal/mpd +format-online = <toggle> <label-song> +format-offline = [mpd offline] +format-stopped = +icon-play = +icon-pause = +label-song = %{T2}%artist%%{T-}: %title% +label-song-maxlen = 50 +label-song-ellipsis = true + +# vim:ft=dosini diff --git a/.config/polybar/config.thoncc b/.config/polybar/config.thoncc new file mode 100644 index 0000000..fd561ff --- /dev/null +++ b/.config/polybar/config.thoncc @@ -0,0 +1,45 @@ +[module/battery1] +type = internal/battery +battery = BAT0 +adapter = AC +poll-interval = 5 +format-charging = <label-charging> +format-charging-foreground = ${color.fg-half} +format-full = 100% +format-discharging = <label-discharging> +label-charging = %percentage%% +label-discharging = %percentage%% + +[module/battery2] +type = internal/battery +battery = BAT1 +adapter = AC +poll-interval = 5 +format-charging = <label-charging> +format-charging-foreground = ${color.fg-half} +format-full = 100% +format-discharging = <label-discharging> +label-charging = %percentage%% +label-discharging = %percentage%% + +[module/brightness] +type = internal/backlight +card = intel_backlight +format = <label> + +[module/wireless] +type = internal/network +interface = wlan0 +format-connected = <label-connected> +format-disconnected = <label-disconnected> +label-connected = %essid% +label-disconnected = no network + +[module/rooster] +type = custom/script +exec = ~/.local/share/bin/now +interval = 300 +label-font = 1 +click-left = brave https://rooster.avans.nl/ + +; vim:ft=dosini |