ctucx.git: nixfiles

ctucx' nixfiles

commit 8b6c16c2695fd53daf5e3a6f89c92de7abb46311
parent 4c5353668418dc88f142733a0b06101f9aeedb22
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 12 Jan 2022 17:35:18 +0100

programs/waybar: update style, enable modules based on hostname
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/configurations/programs/physlock.nix b/configurations/programs/physlock.nix
@@ -2,6 +2,9 @@
 
 {
   services = {
-    physlock.enable     = true;
+    physlock = {
+      enable      = true;
+      lockMessage = "Hi!";
+    };
   };
 }
diff --git a/configurations/programs/waybar/default.nix b/configurations/programs/waybar/default.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ lib, pkgs, ... }:
 
 {
   home-manager.users.leah = {

@@ -21,7 +21,13 @@
 
           modules-left   = [ "sway/workspaces" "sway/mode" ];
           modules-center = [ "clock" ];
-          modules-right  = [ "tray" "disk" "memory" "cpu" "idle_inhibitor" "network#wifi" "battery" "pulseaudio" ];
+          modules-right  = (
+            if config.networking.hostName != "stasicontainer" then [
+              "tray" "disk" "memory" "cpu" "idle_inhibitor" "network#wifi" "batteery" "pulseaudio"
+            ] else [
+              "tray" "disk" "memory" "cpu" "idle_inhibitor" "network#ethernet" "pulseaudio"
+            ]
+          );
 
           modules = {
             "sway/workspaces" = {
diff --git a/configurations/programs/waybar/style.css b/configurations/programs/waybar/style.css
@@ -16,14 +16,15 @@
 }
 
 window#waybar {
-    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
-    /* background: rgba(0, 0, 0, 0.5); */
+    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); */
+    background: rgba(0, 0, 0, 0.5);
     color: white;
+    border-bottom: 2px solid rgba(59, 135, 86, 0.5);
 }
 
 #workspaces button.focused {
     background: rgba(255, 255, 255, 0.1);
-    border-bottom: 2px solid #4aa96c;
+    border-bottom: 3px solid rgb(74, 169, 108);
 }
 
 #workspaces button:hover {