Compare commits

..

10 commits

Author SHA1 Message Date
0c50c71481
homepage: update wallpaper 2024-04-26 17:25:11 -04:00
02c6583821
anyrun: update style 2024-04-26 17:24:39 -04:00
53f9ecfdbf
stylix: remove disabled targets 2024-04-26 17:24:32 -04:00
b736a93563
gtk: readd theme 2024-04-26 17:23:51 -04:00
b0204b0641
rules: add eww blur layerrule 2024-04-26 17:23:42 -04:00
fec9b35585
hyprland: exec eww 2024-04-26 17:23:04 -04:00
fa03a425ad
programs: add eww
i should settle on a bar xddd
2024-04-26 17:22:19 -04:00
fc289afb0a
ironbar: remove 2024-04-26 17:21:56 -04:00
0ef9168c3c
nix: add eww overlay 2024-04-26 17:21:43 -04:00
0fa3dc1973
flake.nix: add eww 2024-04-26 17:21:31 -04:00
31 changed files with 758 additions and 155 deletions

View file

@ -262,6 +262,26 @@
"type": "github"
}
},
"eww": {
"inputs": {
"flake-compat": "flake-compat_4",
"nixpkgs": "nixpkgs_3",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1713730154,
"narHash": "sha256-LHwfc+Mexlqewfjm2onPz74ZMRf/n+e7aAuYz08qPUE=",
"owner": "elkowar",
"repo": "eww",
"rev": "acf57a8396d19cd160786223b04b950509e46a4b",
"type": "github"
},
"original": {
"owner": "elkowar",
"repo": "eww",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -327,6 +347,22 @@
}
},
"flake-compat_5": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_6": {
"flake": false,
"locked": {
"lastModified": 1673956053,
@ -436,6 +472,24 @@
"inputs": {
"systems": "systems_3"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_4": {
"inputs": {
"systems": "systems_4"
},
"locked": {
"lastModified": 1709126324,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
@ -450,9 +504,9 @@
"type": "github"
}
},
"flake-utils_4": {
"flake-utils_5": {
"inputs": {
"systems": "systems_12"
"systems": "systems_13"
},
"locked": {
"lastModified": 1705309234,
@ -468,9 +522,9 @@
"type": "github"
}
},
"flake-utils_5": {
"flake-utils_6": {
"inputs": {
"systems": "systems_13"
"systems": "systems_14"
},
"locked": {
"lastModified": 1710146030,
@ -486,9 +540,9 @@
"type": "github"
}
},
"flake-utils_6": {
"flake-utils_7": {
"inputs": {
"systems": "systems_14"
"systems": "systems_15"
},
"locked": {
"lastModified": 1705309234,
@ -504,9 +558,9 @@
"type": "github"
}
},
"flake-utils_7": {
"flake-utils_8": {
"inputs": {
"systems": "systems_17"
"systems": "systems_18"
},
"locked": {
"lastModified": 1694529238,
@ -613,9 +667,9 @@
"helix": {
"inputs": {
"crane": "crane_2",
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_3",
"rust-overlay": "rust-overlay"
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_4",
"rust-overlay": "rust-overlay_2"
},
"locked": {
"lastModified": 1713304603,
@ -675,8 +729,8 @@
"hyprcursor": {
"inputs": {
"hyprlang": "hyprlang",
"nixpkgs": "nixpkgs_4",
"systems": "systems_4"
"nixpkgs": "nixpkgs_5",
"systems": "systems_5"
},
"locked": {
"lastModified": 1713214463,
@ -724,8 +778,8 @@
"hypridle": {
"inputs": {
"hyprlang": "hyprlang_2",
"nixpkgs": "nixpkgs_5",
"systems": "systems_6"
"nixpkgs": "nixpkgs_6",
"systems": "systems_7"
},
"locked": {
"lastModified": 1713214520,
@ -746,8 +800,8 @@
"hyprcursor": "hyprcursor_2",
"hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang_3",
"nixpkgs": "nixpkgs_6",
"systems": "systems_7",
"nixpkgs": "nixpkgs_7",
"systems": "systems_8",
"wlroots": "wlroots",
"xdph": "xdph"
},
@ -871,7 +925,7 @@
"hypridle",
"nixpkgs"
],
"systems": "systems_5"
"systems": "systems_6"
},
"locked": {
"lastModified": 1713121246,
@ -918,7 +972,7 @@
"hyprlock",
"nixpkgs"
],
"systems": "systems_8"
"systems": "systems_9"
},
"locked": {
"lastModified": 1713121246,
@ -936,8 +990,8 @@
},
"hyprlang_5": {
"inputs": {
"nixpkgs": "nixpkgs_8",
"systems": "systems_10"
"nixpkgs": "nixpkgs_9",
"systems": "systems_11"
},
"locked": {
"lastModified": 1711250455,
@ -959,7 +1013,7 @@
"xdg-portal-hyprland",
"nixpkgs"
],
"systems": "systems_15"
"systems": "systems_16"
},
"locked": {
"lastModified": 1713121246,
@ -978,8 +1032,8 @@
"hyprlock": {
"inputs": {
"hyprlang": "hyprlang_4",
"nixpkgs": "nixpkgs_7",
"systems": "systems_9"
"nixpkgs": "nixpkgs_8",
"systems": "systems_10"
},
"locked": {
"lastModified": 1713214544,
@ -998,8 +1052,8 @@
"hyprpaper": {
"inputs": {
"hyprlang": "hyprlang_5",
"nixpkgs": "nixpkgs_9",
"systems": "systems_11"
"nixpkgs": "nixpkgs_10",
"systems": "systems_12"
},
"locked": {
"lastModified": 1712919696,
@ -1017,7 +1071,7 @@
},
"hyprpicker": {
"inputs": {
"nixpkgs": "nixpkgs_10"
"nixpkgs": "nixpkgs_11"
},
"locked": {
"lastModified": 1713196199,
@ -1040,7 +1094,7 @@
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay_2"
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1713388217,
@ -1075,7 +1129,7 @@
},
"naersk": {
"inputs": {
"nixpkgs": "nixpkgs_11"
"nixpkgs": "nixpkgs_12"
},
"locked": {
"lastModified": 1698420672,
@ -1094,7 +1148,7 @@
"nix-gaming": {
"inputs": {
"flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_12"
"nixpkgs": "nixpkgs_13"
},
"locked": {
"lastModified": 1713173715,
@ -1227,6 +1281,22 @@
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1711163522,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_11": {
"locked": {
"lastModified": 1683014792,
"narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=",
@ -1242,7 +1312,7 @@
"type": "github"
}
},
"nixpkgs_11": {
"nixpkgs_12": {
"locked": {
"lastModified": 1711715736,
"narHash": "sha256-9slQ609YqT9bT/MNX9+5k5jltL9zgpn36DpFB7TkttM=",
@ -1256,7 +1326,7 @@
"type": "indirect"
}
},
"nixpkgs_12": {
"nixpkgs_13": {
"locked": {
"lastModified": 1712883908,
"narHash": "sha256-icE1IJE9fHcbDfJ0+qWoDdcBXUoZCcIJxME4lMHwvSM=",
@ -1272,7 +1342,7 @@
"type": "github"
}
},
"nixpkgs_13": {
"nixpkgs_14": {
"locked": {
"lastModified": 1713248628,
"narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=",
@ -1288,7 +1358,7 @@
"type": "github"
}
},
"nixpkgs_14": {
"nixpkgs_15": {
"locked": {
"lastModified": 1710765496,
"narHash": "sha256-p7ryWEeQfMwTB6E0wIUd5V2cFTgq+DRRBz2hYGnJZyA=",
@ -1304,7 +1374,7 @@
"type": "github"
}
},
"nixpkgs_15": {
"nixpkgs_16": {
"locked": {
"lastModified": 1713596654,
"narHash": "sha256-LJbHQQ5aX1LVth2ST+Kkse/DRzgxlVhTL1rxthvyhZc=",
@ -1320,7 +1390,7 @@
"type": "github"
}
},
"nixpkgs_16": {
"nixpkgs_17": {
"locked": {
"lastModified": 1705403940,
"narHash": "sha256-bl7E3w35Bleiexg01WsN0RuAQEL23HaQeNBC2zjt+9w=",
@ -1336,7 +1406,7 @@
"type": "github"
}
},
"nixpkgs_17": {
"nixpkgs_18": {
"locked": {
"lastModified": 1712963716,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
@ -1352,7 +1422,7 @@
"type": "github"
}
},
"nixpkgs_18": {
"nixpkgs_19": {
"locked": {
"lastModified": 1701174899,
"narHash": "sha256-1W+FMe8mWsJKXoBc+QgKmEeRj33kTFnPq7XCjU+bfnA=",
@ -1385,6 +1455,22 @@
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1709038661,
"narHash": "sha256-Ys611iT6pChGv954aa4f8oKoDKJG3IXjJjPhnj6uaLY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8520c158aee718c6e87b56881105fc4223c3c723",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1709479366,
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=",
@ -1400,22 +1486,6 @@
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1712963716,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1712963716,
@ -1466,11 +1536,11 @@
},
"nixpkgs_8": {
"locked": {
"lastModified": 1708475490,
"narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=",
"lastModified": 1712963716,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0e74ca98a74bc7270d28838369593635a5db3260",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176",
"type": "github"
},
"original": {
@ -1482,11 +1552,11 @@
},
"nixpkgs_9": {
"locked": {
"lastModified": 1711163522,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=",
"lastModified": 1708475490,
"narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4",
"rev": "0e74ca98a74bc7270d28838369593635a5db3260",
"type": "github"
},
"original": {
@ -1513,10 +1583,10 @@
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_5",
"flake-compat": "flake-compat_5",
"flake-utils": "flake-utils_6",
"gitignore": "gitignore",
"nixpkgs": "nixpkgs_14",
"nixpkgs": "nixpkgs_15",
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
@ -1539,6 +1609,7 @@
"attic": "attic",
"atuin": "atuin",
"deploy-rs": "deploy-rs",
"eww": "eww",
"flake-parts": "flake-parts_2",
"helix": "helix",
"home-manager": "home-manager",
@ -1552,7 +1623,7 @@
"ironbar": "ironbar",
"nix-gaming": "nix-gaming",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_13",
"nixpkgs": "nixpkgs_14",
"nur": "nur",
"pre-commit-hooks": "pre-commit-hooks",
"sops-nix": "sops-nix",
@ -1563,6 +1634,28 @@
}
},
"rust-overlay": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": [
"eww",
"nixpkgs"
]
},
"locked": {
"lastModified": 1708999822,
"narHash": "sha256-X55GxqI3oDEfqy38Pt7xyypYNly4bkd/RajFE+FGn+A=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "1a618c62479a6896ac497aaa0d969c6bd8e24911",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_2": {
"inputs": {
"flake-utils": [
"helix",
@ -1587,9 +1680,9 @@
"type": "github"
}
},
"rust-overlay_2": {
"rust-overlay_3": {
"inputs": {
"flake-utils": "flake-utils_4",
"flake-utils": "flake-utils_5",
"nixpkgs": [
"ironbar",
"nixpkgs"
@ -1609,7 +1702,7 @@
"type": "github"
}
},
"rust-overlay_3": {
"rust-overlay_4": {
"inputs": {
"flake-utils": [
"wezterm",
@ -1634,7 +1727,7 @@
"type": "github"
}
},
"rust-overlay_4": {
"rust-overlay_5": {
"inputs": {
"flake-utils": [
"yazi",
@ -1689,10 +1782,10 @@
"base16-kitty": "base16-kitty",
"base16-tmux": "base16-tmux",
"base16-vim": "base16-vim",
"flake-compat": "flake-compat_5",
"flake-compat": "flake-compat_6",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_15"
"nixpkgs": "nixpkgs_16"
},
"locked": {
"lastModified": 1713821140,
@ -1755,16 +1848,16 @@
},
"systems_12": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"repo": "default-linux",
"type": "github"
}
},
@ -1800,16 +1893,16 @@
},
"systems_15": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"repo": "default",
"type": "github"
}
},
@ -1829,6 +1922,21 @@
}
},
"systems_17": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_18": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -1875,16 +1983,16 @@
},
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"repo": "default",
"type": "github"
}
},
@ -1983,12 +2091,12 @@
},
"wezterm": {
"inputs": {
"flake-utils": "flake-utils_6",
"flake-utils": "flake-utils_7",
"freetype2": "freetype2",
"harfbuzz": "harfbuzz",
"libpng": "libpng",
"nixpkgs": "nixpkgs_16",
"rust-overlay": "rust-overlay_3",
"nixpkgs": "nixpkgs_17",
"rust-overlay": "rust-overlay_4",
"zlib": "zlib"
},
"locked": {
@ -2029,8 +2137,8 @@
"inputs": {
"hyprland-protocols": "hyprland-protocols_2",
"hyprlang": "hyprlang_6",
"nixpkgs": "nixpkgs_17",
"systems": "systems_16"
"nixpkgs": "nixpkgs_18",
"systems": "systems_17"
},
"locked": {
"lastModified": 1713214484,
@ -2081,9 +2189,9 @@
},
"yazi": {
"inputs": {
"flake-utils": "flake-utils_7",
"nixpkgs": "nixpkgs_18",
"rust-overlay": "rust-overlay_4"
"flake-utils": "flake-utils_8",
"nixpkgs": "nixpkgs_19",
"rust-overlay": "rust-overlay_5"
},
"locked": {
"lastModified": 1713309288,

View file

@ -78,6 +78,7 @@
atuin.url = "github:atuinsh/atuin";
flake-parts.url = "github:hercules-ci/flake-parts";
stylix.url = "github:danth/stylix";
eww.url = "github:elkowar/eww";
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -42,13 +42,7 @@
terminal = 0.6;
};
targets = {
wezterm.enable = false;
helix.enable = false;
hyprland.enable = false;
firefox.enable = false;
mako.enable = true;
gtk.enable = true;
lazygit.enable = true;
nushell.enable = true;
yazi.enable = true;

View file

@ -36,7 +36,7 @@ entry#entry {
box#main {
background: #1a1b26;
border: 3px solid #f7768e;
border: 3px solid #7dcfff;
border-radius: 10px;
padding: 0.3rem;
}

View file

@ -0,0 +1,24 @@
* {
all: unset;
}
@import "./style/mixins.scss";
@import "./style/menu.scss";
@import "./style/music.scss";
@import "./style/workspaces.scss";
@import "./style/sysinfo.scss";
.logo {
margin: 0.4rem 10rem 0.4rem 1rem;
border-radius: 8px;
background-color: $background;
}
.time {
font-size: 16px;
margin: 0.5rem 1.2rem 0.5rem 1rem;
padding-left: 0.4rem;
padding-right: 0.4rem;
border-radius: 8px;
background-color: $background;
}

View file

@ -0,0 +1,49 @@
(include "./widgets/logo.yuck")
(include "./widgets/workspaces.yuck")
(include "./widgets/menu.yuck")
(include "./widgets/time.yuck")
(include "./widgets/music.yuck")
(include "./widgets/sysinfo.yuck")
(include "./vars.yuck")
(defwidget left []
(box :orientation "h"
:halign "start"
(logo)
(workspaces)))
(defwidget center[]
(box :orientation "h"
:halign "center"
(music)))
(defwidget right []
(box :orientation "h"
:halign "end"
(cpu)
(time)
(menu)))
(defwidget bar []
(centerbox :orientation "h"
(left)
(center)
(right)))
(defwindow bar
:monitor 2
:windowtype "dock"
:geometry (geometry
:x "0%"
:y "0%"
:width "100%"
:height "47px"
:anchor "top center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:wm-ignore false
:exclusive true;
(bar))

View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
COVER_PATH=$1
cd $COVER_PATH
IMGPATH="$COVER_PATH/music_cover.png"
playerctl -F metadata mpris:artUrl 2>/dev/null | while read -r COVER_URL; do
if [[ "$COVER_URL" = https* ]]; then
if [ ! -e "$COVER_PATH/$(basename "$COVER_URL")" ]; then
wget -N "$COVER_URL" -o /dev/null
fi
rm "$IMGPATH"
ln -s "$(basename "$COVER_URL")" "$IMGPATH"
echo "$IMGPATH"
elif [ "$COVER_URL" = "" ]; then
echo ""
else
echo "$COVER_URL"
fi
done

View file

@ -0,0 +1,24 @@
/* tokyonight */
$red: #f7768e;
$orange: #ff9e64;
$yellow: #e0af68;
$light-green: #9ece6a;
$green: #73daca;
$turquoise: #89ddff;
$light-cyan: #b4f9f8;
$teal: #2ac3de;
$cyan: #7dcfff;
$blue: #7aa2f7;
$magenta: #bb9af7;
$white: #c0caf5;
$light-gray: #9aa5ce;
$parameters: #cfc9c2;
$comment: #565f89;
$black: #414868;
$foreground: #a9b1d6;
$foreground-highlight: #c0caf5;
$foreground-gutter: #363b54;
$background: #1a1b26;
$background-highlight: #30374b;
$background-menu: #16161e;

View file

@ -0,0 +1,64 @@
@import "./mixins.scss";
@import "./colors.scss";
.menubox {
border: 3px solid $background-highlight;
border-radius: 10px;
background-color: $background;
}
.menubox-header {
@include button-sizing;
font-size: 32px;
background-color: $background-highlight;
margin: 2rem;
}
.menubox-text {
@include button-sizing;
background-color: $background;
}
.menubox-widgets {
@include button-sizing();
background-color: $background-highlight;
margin: 2rem;
transition: all 100ms ease;
&:hover {
@include button-sizing();
background-color: $red;
transition: all 100ms ease;
color: $background-highlight;
}
}
.menu-widget {
font-size: 20px;
margin: 0.5rem 1.2rem 0.5rem 0.9rem;
padding-right: 0.3rem;
border-radius: 8px;
background-color: $background;
}
.cpu {
@include sysinfo();
color: $red;
}
.mem {
@include sysinfo();
color: $green;
font-size: 17px;
}
.storage {
@include sysinfo();
color: $blue;
font-size: 24px;
}
.info-box {
@include button-sizing;
background-color: $background-highlight;
margin: 2rem;
}

View file

@ -0,0 +1,23 @@
@import "./colors.scss";
@mixin workspace-font {
font-size: 20px;
font-weight: normal;
}
@mixin button-sizing {
margin: 10px;
border-radius: 16px;
padding: 10px 10px 10px 10px;
font-size: 32px;
}
@mixin sysinfo {
margin: 10px;
font-size: 24px;
background-color: $light-gray;
}
@mixin widget-border-radius {
border-radius: 8px;
}

View file

@ -0,0 +1,84 @@
@import "./mixins.scss";
@import "./colors.scss";
.music {
@include widget-border-radius;
font-size: 15px;
background-color: $background;
margin: 0.5rem 2rem 0.5rem 1rem;
padding-left: 1rem;
padding-right: 1rem;
}
.music-cover {
@include widget-border-radius;
background-size: 42px 42px;
background-position: center;
background-repeat: no-repeat;
margin-top: 0.3rem;
margin-bottom: 0.3rem;
min-height: 2rem;
min-width: 4rem;
border-radius: 0.8rem;
}
.music-cover-big {
margin: 0rem;
background-size: 450px 450px;
background-position: center;
background-repeat: no-repeat;
border-radius: 30%;
}
.music-widget {
background-position: center;
background-repeat: no-repeat;
background-size: 1100px 1100px;
border: 3px solid $background-highlight;
border-radius: 0.7rem;
}
.music-widget-title {
@include widget-border-radius;
font-size: 24px;
margin: 2rem 2rem 0rem 1rem;
background-color: $background;
padding: 1.1rem;
border: 3px solid $background-highlight;
}
.music-controls {
@include button-sizing;
background-color: $background;
margin: 5rem 7rem 2rem 6rem;
padding: 0.4rem;
border-radius: 8px;
border: 3px solid $background-highlight;
}
.hover-play:hover {
background-color: $green;
transition: all 100ms ease-in;
color: $background-highlight;
border-radius: 5px;
}
.hover-pause:hover {
background-color: $red;
transition: all 200ms ease-in;
color: $background-highlight;
border-radius: 5px;
}
.close-button {
margin: 0.5rem 2rem 0rem 30rem;
background-color: $background;
border-radius: 8px;
padding: 0.5rem;
&:hover {
background-color: $red;
transition: all 100ms ease-in;
color: $background-highlight;
border-radius: 5px;
}
}

View file

@ -0,0 +1,14 @@
@import "./mixins.scss";
@import "./colors.scss";
.sysinfo-cpu {
@include sysinfo;
color: $red;
margin: 0.1rem;
}
.sysinfo-mem {
@include sysinfo;
color: $green;
margin: 0.1rem;
}

View file

@ -0,0 +1,27 @@
@import "./mixins.scss";
@import "./colors.scss";
.workspaces {
@include widget-border-radius;
margin: 0.5rem 4rem 0.5rem 1rem;
padding-left: 1rem;
background-color: $background;
}
.ws0 {
color: $red;
@include workspace-font();
}
.ws1 {
color: $teal;
@include workspace-font();
}
.ws2 {
color: $cyan;
@include workspace-font();
}
.ws3 {
color: $blue;
@include workspace-font();
}

View file

@ -0,0 +1,14 @@
(deflisten musicArtist :initial "-" "playerctl --follow metadata --format '{{ artist }}'")
(deflisten musicTitle :initial "-" "playerctl --follow metadata --format '{{title}}'")
(deflisten musicCover "sh ~/.config/eww/scripts/get-music-cover.sh ~/.config/eww/cache_directory")
(defpoll time :interval "60s"
:initial "initial-value"
`date +%H:%M`)
(defpoll date :interval "60s"
:initial "initial-value"
`date +%D-%Y`)
(defpoll uptime :interval "1s" "uptime | awk '{print $3}' | tr ',' ' '")

View file

@ -0,0 +1,7 @@
(defwidget container []
(box
:class "container"
:orientation "h"
(children)
)
)

View file

@ -0,0 +1,9 @@
(defpoll time :interval "60s"
:initial "initial-value"
`date +%H:%M`)
(defwidget time []
(box
:class "time"
(label
:text time)))

View file

@ -0,0 +1,6 @@
(defwidget logo []
(box
:class "logo"
(image :path "/home/notoh/Pictures/icons/nixos.png"
:image-width 24
:image-height 24)))

View file

@ -0,0 +1,71 @@
(defwidget menu []
(button
:onclick "eww open menu-window"
(label
:text "⏻"
:class "menu-widget")))
(defwidget menubox []
(box
:orientation "v"
:space-evenly true
:class "menubox"
:spacing 0
(box :class "menubox-header"
:orientation "h"
(label :halign "start" :text time)
(label :halign "end" :text "おかえりなさい!"))
(box :class "info-box"
:orientation "h"
(circular-progress
:class "cpu"
:start-at 0
:thickness 6
:clockwise true
:value {EWW_CPU.avg}
(label
:style "font-size: 24px; margin-right: 0.1rem;"
:text "󰍛"))
(circular-progress
:class "mem"
:start-at 0
:thickness 6
:clockwise true
:value {EWW_RAM.used_mem_perc}
(label
:style "font-size: 24px; margin-right: 0.8rem;"
:text ""))
(circular-progress
:class "storage"
:start-at 0
:thickness 6
:clockwise true
:value {EWW_RAM.used_mem_perc}
(label
:style "font-size: 24px;"
:text ""))
(label
:text " ${uptime}")
)
(box :class "menubox-widgets"
:orientation "h"
(button :class "menubox-widgets text" :onclick "reboot now" "")
(button :class "menubox-widgets text" :onclick "shutdown now" "")
(button :class "menubox-widgets text" :onclick "eww close menu-window" "")))
)
(defwindow menu-window
:monitor 2
:windowtype "dock"
:geometry (geometry
:x "0.9%"
:y "1.5%"
:width "25%"
:height "600px"
:anchor "top right")
:stacking "fg"
:windowtype "dock"
:wm-ignore true
:exclusive false
(menubox))

View file

@ -0,0 +1,55 @@
(defwidget bar-art []
(box
:space-evenly false
(box :class "music-cover"
:style "background-image:url('${musicCover}');")
(eventbox
:onclick "eww open music-widget"
(label :class "music"
:text "${musicTitle}"))))
(defwidget music-widget []
(box :class "music-widget"
(box :class "music-cover-big"
:space-evenly false
:orientation "h"
:style "background-image:url('${musicCover}');")
(box
:orientation "v"
:space-evenly false
:spacing 0
(box
(button
:class "close-button"
:onclick "eww close music-widget"
(label :text "" :style "font-size: 18px; margin-right: 0.5rem;")))
(label :class "music-widget-title" :text "${musicTitle}")
(label :class "music-widget-title" :text "${musicArtist}")
(box :class "music-c")
(box :class "music-controls"
:valign "center"
(button :class "hover-play" :onclick "playerctl play" "")
(button :class "hover-pause" :onclick "playerctl pause" "")))))
(defwidget music []
(box
(bar-art)))
(defwindow music-widget
:monitor 2
:windowtype "dock"
:namespace "music-widget"
:geometry (geometry
:x "0"
:y "1.5%"
:width "42%"
:height "550px"
:anchor "top center")
:stacking "fg"
:windowtype "dock"
:wm-ignore true
:exclusive false
(music-widget))

View file

@ -0,0 +1,21 @@
(defwidget cpu []
(box
:spacing 5
(circular-progress
:class "sysinfo-cpu"
:start-at 0
:thickness 4
:clockwise true
:value {EWW_CPU.avg}
(label
:style "font-size: 13px; margin-right: 0.1rem;"
:text "󰍛"))
(circular-progress
:class "sysinfo-mem"
:start-at 0
:thickness 4
:clockwise true
:value {EWW_RAM.used_mem_perc}
(label
:style "font-size: 10px; margin-right: 0.3rem;"
:text ""))))

View file

@ -0,0 +1,5 @@
(defwidget time []
(box
:class "time"
(label
:text time)))

View file

@ -0,0 +1,16 @@
(defwidget workspaces []
(box :class "workspaces"
:space-evenly true
:spacing 6
(button
:class "ws0"
:onclick "" " ")
(button
:class "ws1"
:onclick "" " ")
(button
:class "ws2"
:onclick "" " ")
(button
:class "ws3"
:onclick "" " ")))

View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
home.packages = with pkgs; [
eww-wayland
playerctl
imagemagick
];
programs.eww = {
enable = false;
package = pkgs.eww-wayland;
};
}

View file

@ -15,6 +15,10 @@
gtk = {
enable = true;
theme = {
name = "Tokyonight-Dark-BL";
package = pkgs.tokyo-night-gtk;
};
iconTheme = {
name = "Papirus";
package = pkgs.papirus-icon-theme;

View file

@ -1,28 +0,0 @@
_: {
programs.ironbar.config = let
nixlogo = rec {
type = "custom";
name = "nixlogo";
class = name;
bar = [
{
type = "image";
src = "https://files.artturin.com/files/nixoscolorful.svg";
size = 24;
}
];
};
tray = {type = "tray";};
clock = {type = "clock";};
in {
monitors = {
"DP-2" = {
position = "top";
anchor_to_edges = true;
start = [nixlogo];
center = [];
end = [clock tray];
};
};
};
}

View file

@ -1,19 +0,0 @@
{
inputs,
pkgs,
lib,
...
}: let
compileSCSS = name: source: "${pkgs.runCommandLocal name {} ''
mkdir -p $out
${lib.getExe pkgs.sass} '${source}' > $out/${name}.css
''}/${name}.css";
in {
imports = [inputs.ironbar.homeManagerModules.default ./config.nix];
programs.ironbar = {
enable = true;
systemd = true;
style = builtins.readFile (compileSCSS "style" ./style.scss);
};
}

View file

@ -1,3 +0,0 @@
* {
all: unset;
}

View file

@ -8,7 +8,7 @@
"DP-3,1920x1080@144, 1400x0, auto" #top
];
exec-once = [
# "ags"
"eww open bar"
"hyprpaper"
"chatterino"
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
@ -25,7 +25,7 @@
gaps_in = 10;
gaps_out = 20;
border_size = 4;
"col.active_border" = "rgb(f7768e) rgb(c0caf5)";
"col.active_border" = "rgb(7dcfff) rgb(c0caf5)";
"col.inactive_border" = "rgb(24283b)";
layout = "dwindle";

View file

@ -18,8 +18,7 @@ _: {
"idleinhibit fullscreen, class:^(firefox)$"
];
layerrule = [
"blur, ^(gtk-layer-shell|anyrun)$"
"blur, ^(gtk-layer-shell|ironbar)$"
"blur, ^(gtk-layer-shell|anyrun|eww|music-widget)$"
];
};
}

View file

@ -27,7 +27,7 @@
statusStyle = "dot";
hideVersion = true;
background = {
image = "https://i.imgur.com/YLX96sC.jpeg";
image = "https://i.imgur.com/Q8xIWP7.png";
brightness = 75;
};
providers = {

View file

@ -11,6 +11,7 @@
inputs.hyprpicker.overlays.default
inputs.hyprcursor.overlays.default
inputs.atuin.overlays.default
inputs.eww.overlays.default
];
config = {
allowUnfree = true;