From 09e8f7c3b005302b0cc1beda845a8158fc381c7c Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Wed, 31 Jul 2024 22:42:24 +0200 Subject: [PATCH] polybar: redesigned top bar but its buggy --- nix/configs/builders.nix | 19 ------ nix/configs/i3.nix | 3 +- nix/configs/polybar.nix | 133 +++++++++++++++++++-------------------- 3 files changed, 65 insertions(+), 90 deletions(-) delete mode 100644 nix/configs/builders.nix mode change 100755 => 100644 nix/configs/polybar.nix diff --git a/nix/configs/builders.nix b/nix/configs/builders.nix deleted file mode 100644 index 28aad7f..0000000 --- a/nix/configs/builders.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, pkgs, ... }: -{ - nix.buildMachines = - [{ - hostName = "pink"; - system = "x86_64-linux"; - protocol = "ssh-ng"; - maxJobs = 3; - speedFactor = 2; - supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; - mandatoryFeatures = [ ]; - }]; - # required, otherwise remote buildMachines above aren't used - nix.distributedBuilds = true; - # optional, useful when the builder has a faster internet connection than yours - nix.extraOptions = '' - builders-use-substitutes = true - ''; -} diff --git a/nix/configs/i3.nix b/nix/configs/i3.nix index 248ae3e..18866db 100755 --- a/nix/configs/i3.nix +++ b/nix/configs/i3.nix @@ -15,7 +15,7 @@ in # Starting compositor and adding background to xroot via nitrogen startup = [ { - command = "nitrogen --set-zoom-fill /home/grape/Pictures/bg.jpg"; + command = "nitrogen --set-zoom-fill /home/grape/dotfiles/bg.jpg"; } { command = "picom -b --experimental-backends"; @@ -101,6 +101,7 @@ in # Volume adjustment for current player "shift+XF86AudioRaiseVolume" = "exec --no-startup-id playerctl volume 0.1+"; "shift+XF86AudioLowerVolume" = "exec --no-startup-id playerctl volume 0.1-"; + # seeking for current player "Control+XF86AudioRaiseVolume" = "exec --no-startup-id playerctl position 10+"; "Control+XF86AudioLowerVolume" = "exec --no-startup-id playerctl position 10-"; diff --git a/nix/configs/polybar.nix b/nix/configs/polybar.nix old mode 100755 new mode 100644 index 6ad40a2..b47991a --- a/nix/configs/polybar.nix +++ b/nix/configs/polybar.nix @@ -1,7 +1,9 @@ let colors = { fg = "#FFFFFF"; + foreground = "#FFFFFF"; bg = "#191830"; + background = "#191830"; border = "#F72585"; warn = "#f00"; altfg = "#F72585"; @@ -11,7 +13,7 @@ let currentWorkspace = "#FAD000"; seperatorColor = "#FAD000"; }; - script = "~/.config/scripts"; + script = "~/dotifles/scripts"; in { @@ -24,77 +26,69 @@ in script = "${script}/polybar.sh"; config = { + + "module/date" = { type = "internal/date"; font-1 = "Jetbrains Mono Nerd font"; interval = 1; time = "%I:%M:%S"; - date = "%Y-%m-%d%"; - format = "