Skip to content

Commit

Permalink
feat: new waybar
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Dec 23, 2024
1 parent b270d6a commit 00e13e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 41 deletions.
1 change: 1 addition & 0 deletions user/theme/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pkgs: rec {
opacity = 0.88;
background = "2e3440";

text = "d8dee9";
Expand Down
2 changes: 1 addition & 1 deletion user/wrapped/foot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
command = "${notify-send} -a \${app-id} -i \${app-id} \${title} \${body}";
};
colors = with theme; {
alpha = 0.95;
alpha = theme.opacity;
background = background;
foreground = text;
bright0 = bright.background;
Expand Down
1 change: 1 addition & 0 deletions user/wrapped/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ in
gopls
prettierd
go
python3
nil
rust-analyzer
alejandra
Expand Down
34 changes: 4 additions & 30 deletions user/wrapped/waybar/style.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
}: let
snowflake = builtins.fetchurl rec {
name = "Logo-${sha256}.svg";
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/refs/heads/master/logo/nix-snowflake-colours.svg";
sha256 = "1cifj774r4z4m856fva1mamnpnhsjl44kw3asklrc57824f5lyz3";
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/refs/heads/master/logo/nix-snowflake-white.svg";
sha256 = "01hhqanih2d07c8f5spjnw6b8yyfc27jbdb9yy5l0zgl3kh7vyr7";
};
in
pkgs.writeText "style.css" ''
Expand All @@ -15,13 +15,9 @@ in
}
window#waybar {
background-color: #${theme.background};
background-color: transparent;
color: #${theme.text};
box-shadow: 3px 2px 3px 2px #151515;
font-size: 13px;
/* transition-property: background-color; */
transition-property: background-color;
transition-duration: 0.5s;
opacity: 0.9;
}
window#waybar>box {
padding: 1px 5px;
Expand All @@ -33,8 +29,6 @@ in
.module{
border-radius: 10px;
background-color: #${theme.regular.background};
padding: 0px 8px;
}
Expand All @@ -48,42 +42,22 @@ in
#workspaces button {
background-color: transparent;
/* Use box-shadow instead of border so the text isn't offset */
color: #${theme.regular.blue};
padding-left: 6px;
margin: 0px 7px;
font-family: JetBrains Mono Nerd Font;
box-shadow: inset 0 -3px transparent;
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
}
#workspaces button.active {
color: #${theme.regular.yellow};
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
}
#workspaces button.urgent {
color: #${theme.regular.red};
}
#custom-vpn,
#network {
color: #${theme.regular.blue};
}
#clock {
font-weight: 700;
font-size: 15px;
font-family: "Iosevka Term";
}
#backlight {
color: #${theme.regular.yellow};
}
#pulseaudio,
#battery {
color: #${theme.regular.green};
}
#battery.warning {
color: #${theme.regular.red};
}
Expand Down
12 changes: 2 additions & 10 deletions user/wrapped/waybar/waybar-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,8 @@
format = "{icon}";
active-only = false;
format-icons = {
"1" = "一";
"2" = "二";
"3" = "三";
"4" = "四";
"5" = "五";
"6" = "六";
"7" = "七";
"8" = "八";
"9" = "九";
"10" = "十";
default = "";
active = "";
};

persistent_workspaces = {
Expand Down

0 comments on commit 00e13e5

Please sign in to comment.