diff options
Diffstat (limited to 'polybar')
| -rw-r--r-- | polybar/bars/main.nix | 28 | ||||
| -rw-r--r-- | polybar/default.nix | 18 | ||||
| -rw-r--r-- | polybar/modules/battery.nix | 36 | ||||
| -rw-r--r-- | polybar/modules/bspwm.nix | 22 | ||||
| -rw-r--r-- | polybar/modules/cpu.nix | 9 | ||||
| -rw-r--r-- | polybar/modules/date.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/kernel-version.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/memory.nix | 9 | ||||
| -rw-r--r-- | polybar/modules/time.nix | 10 | ||||
| -rw-r--r-- | polybar/modules/xwindow.nix | 7 |
10 files changed, 0 insertions, 159 deletions
diff --git a/polybar/bars/main.nix b/polybar/bars/main.nix deleted file mode 100644 index 630664d..0000000 --- a/polybar/bars/main.nix +++ /dev/null @@ -1,28 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - width = "100%"; - height = 30; - radius = 3; - fixed-center = false; - - background = "${base00}"; - foreground = "${base05}"; - - line-size = 3; - line-color = "${base08}"; - - border-size = 4; - padding-left = 2; - padding-right = 2; - - module-margin-left = 2; - module-margin-right = 2; - - font-0 = "FiraCode Nerd Font:pixelsize=16;3"; - - modules-left = "bspwm"; - modules-center = "xwindow"; - modules-right = "memory cpu battery time date kernel-version"; -} diff --git a/polybar/default.nix b/polybar/default.nix deleted file mode 100644 index 8eec80f..0000000 --- a/polybar/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ config, ... }: - -{ - services.polybar.enable = true; - services.polybar.script = "polybar main &"; - - services.polybar.config = { - "bar/main" = import ./bars/main.nix config; - "module/xwindow" = import ./modules/xwindow.nix config; - "module/bspwm" = import ./modules/bspwm.nix config; - "module/cpu" = import ./modules/cpu.nix config; - "module/memory" = import ./modules/memory.nix config; - "module/date" = import ./modules/date.nix config; - "module/time" = import ./modules/time.nix config; - "module/battery" = import ./modules/battery.nix config; - "module/kernel-version" = import ./modules/kernel-version.nix config; - }; -} diff --git a/polybar/modules/battery.nix b/polybar/modules/battery.nix deleted file mode 100644 index 9860c3c..0000000 --- a/polybar/modules/battery.nix +++ /dev/null @@ -1,36 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/battery"; - battery = "BAT0"; - adapter = "ADP1"; - - format-charging = "<animation-charging> <label-charging>"; - format-discharging = "<ramp-capacity> <label-discharging>"; - format-full-prefix = "%{F${base0B}}%{F-}"; - - ramp-capacity-0 = "%{F${base0C}}%{F-}"; - ramp-capacity-1 = "%{F${base0C}}%{F-}"; - ramp-capacity-2 = "%{F${base0C}}%{F-}"; - ramp-capacity-3 = "%{F${base0C}}%{F-}"; - ramp-capacity-4 = "%{F${base0C}}%{F-}"; - ramp-capacity-5 = "%{F${base0C}}%{F-}"; - ramp-capacity-6 = "%{F${base0C}}%{F-}"; - ramp-capacity-7 = "%{F${base0C}}%{F-}"; - ramp-capacity-8 = "%{F${base0C}}%{F-}"; - ramp-capacity-9 = "%{F${base0C}}%{F-}"; - - animation-charging-0 = "%{F${base0C}}%{F-}"; - animation-charging-1 = "%{F${base0C}}%{F-}"; - animation-charging-2 = "%{F${base0C}}%{F-}"; - animation-charging-3 = "%{F${base0C}}%{F-}"; - animation-charging-4 = "%{F${base0C}}%{F-}"; - animation-charging-5 = "%{F${base0C}}%{F-}"; - animation-charging-6 = "%{F${base0C}}%{F-}"; - animation-charging-7 = "%{F${base0C}}%{F-}"; - animation-charging-8 = "%{F${base0C}}%{F-}"; - animation-charging-9 = "%{F${base0C}}%{F-}"; - - animation-charging-framerate = 750; -} diff --git a/polybar/modules/bspwm.nix b/polybar/modules/bspwm.nix deleted file mode 100644 index 7ec5c6d..0000000 --- a/polybar/modules/bspwm.nix +++ /dev/null @@ -1,22 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/bspwm"; - - label-focused = "%index%"; - label-focused-background = "${base01}"; - label-focused-underline = "${base0D}"; - label-focused-padding = 2; - - label-occupied = "%index%"; - label-occupied-padding = 2; - - label-urgent = "%index%!"; - label-urgent-background = "${base08}"; - label-urgent-padding = 2; - - label-empty = "%index%"; - label-empty-foreground = "${base03}"; - label-empty-padding = 2; -} diff --git a/polybar/modules/cpu.nix b/polybar/modules/cpu.nix deleted file mode 100644 index f118990..0000000 --- a/polybar/modules/cpu.nix +++ /dev/null @@ -1,9 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/cpu"; - interval = 2; - format-prefix = "%{F${base09}} %{F-}"; - label = "%percentage%%"; -} diff --git a/polybar/modules/date.nix b/polybar/modules/date.nix deleted file mode 100644 index 11a5934..0000000 --- a/polybar/modules/date.nix +++ /dev/null @@ -1,10 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/date"; - interval = 60; - date = "%d/%m/%Y"; - label = "%date%"; - format-prefix = "%{F${base0B}} %{F-}"; -} diff --git a/polybar/modules/kernel-version.nix b/polybar/modules/kernel-version.nix deleted file mode 100644 index a900264..0000000 --- a/polybar/modules/kernel-version.nix +++ /dev/null @@ -1,10 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "custom/script"; - exec = "uname -r"; - interval = 1024; - format-prefix = "%{F${base03}} %{F-}"; - label = "%output%"; -} diff --git a/polybar/modules/memory.nix b/polybar/modules/memory.nix deleted file mode 100644 index 1aff8a3..0000000 --- a/polybar/modules/memory.nix +++ /dev/null @@ -1,9 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/memory"; - interval = 2; - format-prefix = "%{F${base0A}} %{F-}"; - label = "%percentage_used%%"; -} diff --git a/polybar/modules/time.nix b/polybar/modules/time.nix deleted file mode 100644 index e4c7cbe..0000000 --- a/polybar/modules/time.nix +++ /dev/null @@ -1,10 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/date"; - interval = 30; - time = "%H:%M"; - label = "%time%"; - format-prefix = "%{F${base0C}} %{F-}"; -} diff --git a/polybar/modules/xwindow.nix b/polybar/modules/xwindow.nix deleted file mode 100644 index 23245ba..0000000 --- a/polybar/modules/xwindow.nix +++ /dev/null @@ -1,7 +0,0 @@ -config: - -with config.scheme.withHashtag; -{ - type = "internal/xwindow"; - label = "%title:0:30:...%"; -} |
