diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/polybar/colors.ini | 9 | ||||
-rw-r--r-- | .config/polybar/config.ini | 147 | ||||
-rw-r--r-- | .config/polybar/config.ini##template (renamed from .config/polybar/config##template) | 7 | ||||
-rw-r--r-- | .config/polybar/config.superesc.ini (renamed from .config/polybar/config.superesc) | 0 | ||||
-rw-r--r-- | .config/polybar/config.thoncc.ini (renamed from .config/polybar/config.thoncc) | 0 |
5 files changed, 158 insertions, 5 deletions
diff --git a/.config/polybar/colors.ini b/.config/polybar/colors.ini new file mode 100644 index 0000000..dc427e7 --- /dev/null +++ b/.config/polybar/colors.ini @@ -0,0 +1,9 @@ +[color] +bg = ${xrdb:background:#1e1e2e} +fg = ${xrdb:foreground:#cdd6f4} +fg-alt = ${xrdb:background:#1e1e2e} +fg-half = ${xrdb:color8:#585B70} + +alpha = #00000000 + +; vim:ft=dosini diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..e1b9602 --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,147 @@ +[barsettings] +padding = 1.9 + +include-file = ./colors + +[global/wm] +margin-bottom = 50 +margin-top = 0 + +[bar/main] + +tray-position = right +tray-padding = ${barsettings.padding} +tray-background = ${color.bg} +tray-margin = 8 + +monitor = +monitor-fallback = +monitor-strict = false + +override-redirect = false + +bottom = false +fixed-center = true + +width = 100% +height = 20 +offset-x = 0 +offset-y = 0 + +background = ${color.bg} +foreground = ${color.fg} + +radius-top = 0.0 +radius-bottom = 0.0 + +padding = 2 + +module-margin-left = 0 +module-margin-right = 0 + +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=medium:size=0;2" +font-3 = "Noto Sans KR:pixelsize=8:weight=medium:size=0;2" + +modules-left = time date +modules-center = weather mpd +modules-right = keyboard volume whoami + +separator = + +spacing = 0 + +dim-value = 1.0 + +wm-name = + +locale = ja_JP.UTF-8 + +wm-restack = i3 + +enable-ipc = true + +click-left = +click-middle = +click-right = +scroll-up = +scroll-down = +double-click-left = +double-click-middle = +double-click-right = + +cursor-click = +cursor-scroll = + +[settings] +throttle-output = 5 +throttle-output-for = 10 + +screenchange-reload = false + +compositing-background = source +compositing-foreground = over +compositing-overline = over +compositing-underline = over +compositing-border = over + +format-foreground = ${color.fg} +format-background = ${color.bg} +format-padding = ${barsettings.padding} + +pseudo-transparency = false + +[module/volume] +type = internal/pulseaudio +format-volume = <label-volume> +label-volume = %percentage%% +label-muted = "muted" + +[module/date] +type = internal/date +interval = 1.0 +time = %m月%d日 %A +format = <label> +label = %time% + +[module/time] +type = internal/date +interval = 1.0 +time = %{T2}%H時%M分%{T-} +format = <label> +label = %time% + +[module/weather] +type = custom/script +exec = ~/.config/polybar-forecast/target/release/polybar-forecast +interval = 120 +exec-if = ping openweathermap.org -c 1 +label-font = 2 + +[module/whoami] +type = custom/script +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 = 3 +label-font = 1 + +[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 + +; vim:ft=dosini diff --git a/.config/polybar/config##template b/.config/polybar/config.ini##template index 3e231db..a021f3e 100644 --- a/.config/polybar/config##template +++ b/.config/polybar/config.ini##template @@ -1,7 +1,7 @@ [barsettings] padding = 1.9 -include-file = ./colors +include-file = ./colors.ini [global/wm] margin-bottom = 50 @@ -81,9 +81,6 @@ cursor-click = cursor-scroll = [settings] -throttle-output = 5 -throttle-output-for = 10 - screenchange-reload = false compositing-background = source @@ -137,6 +134,6 @@ exec = ~/.local/share/bin/kbindicator interval = 3 label-font = 1 -{% include "config.{{ yadm.hostname }}" %} +{% include "config.{{ yadm.hostname }}.ini" %} ; vim:ft=dosini diff --git a/.config/polybar/config.superesc b/.config/polybar/config.superesc.ini index 3a1e28d..3a1e28d 100644 --- a/.config/polybar/config.superesc +++ b/.config/polybar/config.superesc.ini diff --git a/.config/polybar/config.thoncc b/.config/polybar/config.thoncc.ini index fd561ff..fd561ff 100644 --- a/.config/polybar/config.thoncc +++ b/.config/polybar/config.thoncc.ini |