summaryrefslogtreecommitdiff
path: root/common/home/programs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-02-14 16:47:54 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-02-14 16:47:54 +0100
commitca937efc41356dcd018980a8c3c8b2358b558cac (patch)
tree91f798aafa99c73e2b5317575a6b1c5495569858 /common/home/programs
parentde85f21e52c6df2a8cfe9b343ecbae4e69520390 (diff)
hyprland: use hyprsplit
Diffstat (limited to 'common/home/programs')
-rw-r--r--common/home/programs/waybar/default.nix128
-rw-r--r--common/home/programs/waybar/style.css71
-rw-r--r--common/home/programs/wofi/default.nix12
-rw-r--r--common/home/programs/wofi/style.css15
4 files changed, 124 insertions, 102 deletions
diff --git a/common/home/programs/waybar/default.nix b/common/home/programs/waybar/default.nix
index d02decb..523277b 100644
--- a/common/home/programs/waybar/default.nix
+++ b/common/home/programs/waybar/default.nix
@@ -1,53 +1,91 @@
{ ... }:
{
- enable = true;
- systemd.enable = true;
- settings = {
- mainBar = {
- layer = "top";
- position = "left";
- width = 50;
- outputs = "*";
- spacing = 10;
- modules-left = [ "hyprland/workspaces" ];
- modules-center = [ ];
- modules-right = [
- "bluetooth"
- "pulseaudio"
- "battery"
- "tray"
- ];
+ enable = true;
+ systemd.enable = true;
+ settings = {
+ mainBar = {
+ layer = "top";
+ position = "top";
+ height = 10;
+ outputs = "*";
+ spacing = 0;
+ modules-left = [ "hyprland/workspaces" ];
+ modules-center = [ ];
+ modules-right = [
+ "pulseaudio"
+ "bluetooth"
+ "battery"
+ "tray"
+ ];
- "hyprland/workspaces" = {
- format = "{icon}";
- all-outputs = true;
- };
+ "hyprland/workspaces" = {
+ format = "{icon}";
+ format-icons = {
+ "1" = "α";
+ "2" = "β";
+ "3" = "γ";
+ "4" = "δ";
+ "5" = "ε";
+ "6" = "ζ";
+ "7" = "η";
+ "8" = "θ";
+ "9" = "ι";
+ "10" = "κ";
+ "11" = "α";
+ "12" = "β";
+ "13" = "γ";
+ "14" = "δ";
+ "15" = "ε";
+ "16" = "ζ";
+ "17" = "η";
+ "18" = "θ";
+ "19" = "ι";
+ "20" = "κ";
+ "21" = "α";
+ "22" = "β";
+ "23" = "γ";
+ "24" = "δ";
+ "25" = "ε";
+ "26" = "ζ";
+ "27" = "η";
+ "28" = "θ";
+ "29" = "ι";
+ "30" = "κ";
+ };
+ all-outputs = false;
+ };
- "hyprland/window" = {
- separate-outputs = true;
- };
+ "hyprland/window" = {
+ separate-outputs = true;
+ };
- bluetooth = {
- format = "";
- format-disabled = "󰂲";
- format-off = "󰂲";
- format-on = "";
- format-connected = "󰂱";
- on-click = "blueberry";
- };
+ bluetooth = {
+ format = "";
+ format-disabled = "󰂲";
+ format-off = "󰂲";
+ format-on = "";
+ format-connected = "󰂱";
+ on-click = "blueberry";
+ };
- battery = {
- states = {
- warning = 15;
- critical = 5;
- };
- };
+ battery = {
+ states = {
+ warning = 15;
+ critical = 5;
+ };
+ };
- tray = {
- icon-size = 15;
- spacing = 10;
- };
- };
- };
- style = ./style.css;
+ tray = {
+ icon-size = 12;
+ spacing = 10;
+ };
+
+ "pulseaudio/slider" = {
+ min = 0;
+ max = 100;
+ orientation = "horizontal";
+ };
+ };
+ };
+ style = ./style.css;
}
diff --git a/common/home/programs/waybar/style.css b/common/home/programs/waybar/style.css
index 99dc06b..6527a9f 100644
--- a/common/home/programs/waybar/style.css
+++ b/common/home/programs/waybar/style.css
@@ -3,61 +3,50 @@
}
window {
- background: transparent;
+ background: #282828;
+}
+
+#pulseaudio {
+ font-size: 12px;
+}
+
+#bluetooth {
+ padding-left: 10px;
+ padding-right: 10px;
+ font-size: 12px;
}
#workspaces {
- background: #282828;
- border-radius: 5px;
- margin-left: 10px;
- padding: 5px;
+ padding: 0px;
}
#workspaces button {
- border: 5px solid #282828;
padding: 0px;
+ border-radius: 0px;
+ min-width: 20px;
+ min-height: 20px;
+ border: none;
}
#workspaces button.active {
- border-right: 5px solid #b16286;
- border-radius: 0px;
+ background: #b16286;
+ color: #1d2021;
}
#workspaces button:hover {
- border-radius: 20px;
- border: 5px solid #1d2021;
- background: #1d2021;
+ background: #3c3836;
padding: 0px;
+ border: none;
}
#workspaces button.active:hover {
- border: 5px solid #1d2021;
- border-right: 5px solid #b16286;
- border-radius: 20px;
- background: #1d2021;
+ background: #b16286;
padding: 0px;
}
-#tray,
-#bluetooth,
-#pulseaudio
-{
- background: #282828;
- border-radius: 5px;
- margin-left: 10px;
- padding: 10px 5px;
-}
-
-#tray window {
- border-radius: 5px;
-}
-
#battery {
background: #458588;
color: #282828;
- border-radius: 5px;
- margin-left: 10px;
- padding: 10px 5px;
}
#battery.charging {
@@ -73,23 +62,9 @@ window {
}
.modules-left {
- margin-top: 10px;
+ margin-top: 0px;
}
.modules-right {
- margin-bottom: 10px;
-}
-
-.popup menu {
- border: 3px solid #3c3836;
- border-radius: 10px;
- padding: 10px;
-}
-
-.popup menu menuitem {
- border-radius: 5px;
-}
-
-.popup decoration {
- background: transparent;
+ margin-right: 10px;
}
diff --git a/common/home/programs/wofi/default.nix b/common/home/programs/wofi/default.nix
index d8cf5a9..07821e1 100644
--- a/common/home/programs/wofi/default.nix
+++ b/common/home/programs/wofi/default.nix
@@ -1,5 +1,13 @@
{ ... }:
{
- enable = true;
- style = builtins.readFile ./style.css;
+ enable = true;
+ style = builtins.readFile ./style.css;
+ settings = {
+ key_forward = "Alt-j";
+ key_backward = "Alt-k";
+ location = "top_right";
+ gtk_dark = true;
+ layer = "overlay";
+ width = "100%";
+ };
}
diff --git a/common/home/programs/wofi/style.css b/common/home/programs/wofi/style.css
index 7e38346..d4ab36d 100644
--- a/common/home/programs/wofi/style.css
+++ b/common/home/programs/wofi/style.css
@@ -8,20 +8,21 @@ window {
}
#outer-box {
- border-radius: 10px;
+ border-radius: 0px;
background: transparent;
}
entry#input {
background: #1d2021;
- border: 2px solid #b16286;
- margin-bottom: 10px;
+ border: 3px solid #b16286;
+ margin-bottom: 0px;
padding: 10px;
- border-radius: 10px;
+ border-radius: 0px;
}
#scroll {
- border-radius: 10px;
- border: 2px solid #3c3836;
+ border-radius: 0px;
+ border: 3px solid #b16286;
+ border-top: none;
background: #1d2021;
}
@@ -31,7 +32,7 @@ entry#input {
}
.entry {
- border-radius: 5px;
+ border-radius: 0px;
border: none;
padding: 8px;
margin: 2px;