From 89c429169df28acad96b8673b44910bc1c26c350 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sun, 19 Dec 2021 19:26:27 +0100 Subject: [PATCH] Added polybar module --- home-manager-modules/polybar/config | 434 +++++++++++++++++++++++ home-manager-modules/polybar/default.nix | 25 ++ machines/macintosh.nix | 15 +- 3 files changed, 460 insertions(+), 14 deletions(-) create mode 100644 home-manager-modules/polybar/config create mode 100644 home-manager-modules/polybar/default.nix diff --git a/home-manager-modules/polybar/config b/home-manager-modules/polybar/config new file mode 100644 index 0000000..aed6c44 --- /dev/null +++ b/home-manager-modules/polybar/config @@ -0,0 +1,434 @@ +;------------------------------------------------- +; ; +; Polybar config for Cranium ; +; ; +;------------------------------------------------- + + +[colors] +;background = ${xrdb:color0:#222} +;background = #212E36 +background = #cf172a47 +;it's ARGB so "cfl" is for transparency +;background-alt = #cf3C5A46 +background-unf = #2D4058 + +;background-unf = #cf2E463E +background-alt = #405C7D +background-mod0 = #cf3C5A46 +background-mod1 = #cf546E53 +background-mod2 = #cf708963 +background-alrt = #cfA1BB76 + +;foreground = ${xrdb:color7:#222} +foreground = #F3F3BA +foreground-alt = #F3F3BA +primary = #F3F3BA +secondary = #F3F3BA + + +[bar/PolybarTony] +;monitor = ${env:MONITOR:HDMI-1} +;monitor = ${env:MONITOR:} +width = 100% +height = 30 +offset-x = 0% +;offset-y = 10% +radius = 0.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 0 +line-color = #f00 + +border-size = 0 +border-color = #00000000 + +padding-left = 0 +padding-right = 0 + +module-margin-left = 0 +module-margin-right = 0 + +font-0 = Misc Termsyn:size=8;1 +;font-0 = Ubuntu:size=10;1 +font-1 = FontAwesome:fontformat=truetype:size=12;1 +font-3 = Font Awesome 5 Free:style=Regular:pixelsize=8;1 +font-4 = Font Awesome 5 Free:style=Solid:pixelsize=8;1 +font-5 = Font Awesome 5 Brands:pixelsize=8;1 +font-2 = sm4tik:pixelsize=10;1 + +modules-left = i3 +modules-center = date +modules-right = wireless-network memory cpu battery powermenu + +tray-position = right +tray-padding = 11 +tray-transparent = false +tray-offset-y = 0 +tray-offset-x = 0 +tray-maxsize = 18 +tray-detached = false +tray-background = colors.background + +;wm-restack = bspwm +wm-restack = i3 + +override-redirect = false + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +;scroll-up = i3wm-wsnext +;scroll-down = i3wm-wsprev + + +[module/weather] +type = custom/script +interval = 60 + +;format-background = ${colors.background-alt} +format =