Compare commits
153 Commits
7d8ab03691
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d09cfeea1 | |||
| 892ae40180 | |||
| 4a1cd4804d | |||
| 31fa6033b0 | |||
| b88445e529 | |||
| e3597c147a | |||
| e1e1b316cf | |||
| 184e939bb6 | |||
| 103c8e803a | |||
| 160ae56e03 | |||
| d178e340b4 | |||
| e2ec5cae11 | |||
| d9261385de | |||
| b0c84b9b27 | |||
| d036eb2512 | |||
| 83f48b3403 | |||
| 9d56a9bd10 | |||
| 86272d668d | |||
| 7f224bd6fc | |||
| 3d0bd560fb | |||
| 214c833821 | |||
| 8e519e9ad1 | |||
| a706f7c5cb | |||
| f49edaf975 | |||
| 8545cccd46 | |||
| 6e28e26d5a | |||
| 538b6051e2 | |||
| 91f6c637de | |||
| 0280315031 | |||
| 54dd1d2321 | |||
| 7d77da5619 | |||
| 668e6117fd | |||
| 9cb4e51316 | |||
| 43fde8741b | |||
| feec4dd416 | |||
| 9a1a025ec9 | |||
| 20731b35ca | |||
| 784a783fff | |||
| 65f7cad037 | |||
| bd1cfad6f9 | |||
| 154dd13425 | |||
| 504ae33109 | |||
| d07fbe229b | |||
| 632362235b | |||
| 9e11e7cb70 | |||
| 0829506111 | |||
| ee6893038a | |||
| 02156b877e | |||
| 64a2588a11 | |||
| b9d3b14b23 | |||
| f17ac4ce4f | |||
| bce5fdf68a | |||
| bd1323c2d8 | |||
| 5ad050b056 | |||
| d4a11b9ba2 | |||
| 86f16a2394 | |||
| 35fa4a55da | |||
| bb9f3f390f | |||
| e2de1c34e3 | |||
| 6f7f078dd9 | |||
| 8e3092fc0f | |||
| f5ba6bf991 | |||
| 2cd6e41686 | |||
| 0a87520fe7 | |||
| c5f1cb3624 | |||
| 1520b9872b | |||
| 6fba3fd698 | |||
| cf67655b3d | |||
| e441f92216 | |||
| bf5df9d23a | |||
| 4a79ac63d7 | |||
| f7c4059445 | |||
| cbd4b177ba | |||
| 97a62eaa24 | |||
| eeb29a80f4 | |||
| 6b98345a97 | |||
| c3457da03c | |||
| 85c96cd78b | |||
| 9698873c0b | |||
| 6be91c5617 | |||
| 32d95647f8 | |||
| c811e4d4df | |||
| 4eeed736ad | |||
| 325e4c63d5 | |||
| 6474b10e9f | |||
| 0ce461f34d | |||
| bb3d875d77 | |||
| fcd33c7924 | |||
| dc6c5ed8d4 | |||
| f850d4ff1a | |||
| b52c8dff65 | |||
| 1ca0f169fb | |||
| f3fe568d7a | |||
| 65ec180ad6 | |||
| 515e8cb86d | |||
| 1b9c2564ff | |||
| d5dbc09e2c | |||
| 14c3f7ad1b | |||
| cbdc9b0d7c | |||
| 38bd11aea7 | |||
| e74d097f0f | |||
| 4d5be9828f | |||
| fb77aba463 | |||
| f133c4e4b3 | |||
| 92d4984e36 | |||
| 01a329efc9 | |||
| 6e94fbde00 | |||
| c091282f94 | |||
| b122fc88f7 | |||
| f33df39f60 | |||
| 006537f264 | |||
| e7ce67509d | |||
| 4161c7f4d3 | |||
| 37e0823d35 | |||
| 04ac0c9d43 | |||
| 56beb43a68 | |||
| 6142f645ed | |||
| 3914894495 | |||
| 87051915bc | |||
| 7e10a8e74b | |||
| 02f3aab181 | |||
| 73ab90ca13 | |||
| 39818a3989 | |||
| 2345b39b79 | |||
| 2237999734 | |||
| eb82434bab | |||
| 059d19c14f | |||
| 7cc114a056 | |||
| b15721fc44 | |||
| 849451abed | |||
| 04a08124aa | |||
| 4744f74f18 | |||
| 7e76c6fc28 | |||
| 7150237391 | |||
| fde35faf49 | |||
| 9cc1e41d03 | |||
| 634f78439b | |||
| 21bc59e7b5 | |||
| 60c213ab89 | |||
| 2498e8e56b | |||
| 3e6f3d1aac | |||
| 950df24b8e | |||
| 1973db82de | |||
| 2c08f3f50e | |||
| dffc249cf5 | |||
| 285aafb911 | |||
| c00b6da668 | |||
| 95cfa9e840 | |||
| e0d552d309 | |||
| aa4528b70a | |||
| aae976f555 | |||
| 15e292c5f9 | |||
| c9354ed128 |
11
.sops.yaml
@@ -1,6 +1,7 @@
|
|||||||
keys:
|
keys:
|
||||||
- &homebox age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
- &homebox age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
||||||
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
||||||
|
- &android age12pnf36uqesjmy3e0lythfnpwam3zg5mv8m936fc4jphy4ces2fdqwn0s74
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: homebox/secrets.yaml$
|
- path_regex: homebox/secrets.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
@@ -10,13 +11,23 @@ creation_rules:
|
|||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *laptop
|
- *laptop
|
||||||
|
- path_regex: pi4/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *laptop
|
||||||
|
- path_regex: live/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *laptop
|
||||||
- path_regex: nathan/secrets.yaml$
|
- path_regex: nathan/secrets.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *laptop
|
- *laptop
|
||||||
- *homebox
|
- *homebox
|
||||||
|
- *android
|
||||||
- path_regex: system-config/secrets.yaml$
|
- path_regex: system-config/secrets.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *laptop
|
- *laptop
|
||||||
- *homebox
|
- *homebox
|
||||||
|
- *android
|
||||||
|
|||||||
375
flake.lock
generated
@@ -1,25 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"ags": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1735346349,
|
|
||||||
"narHash": "sha256-n/VeEnc6fra2SPgm2ppzwQ52ggYDhpzmBnIBrVD/f+0=",
|
|
||||||
"owner": "Aylur",
|
|
||||||
"repo": "ags",
|
|
||||||
"rev": "237601999d65a4663bcbab934f4f6ce1f579d728",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Aylur",
|
|
||||||
"ref": "v1",
|
|
||||||
"repo": "ags",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"aquamarine": {
|
"aquamarine": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprutils": [
|
"hyprutils": [
|
||||||
@@ -40,11 +20,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753216019,
|
"lastModified": 1755946532,
|
||||||
"narHash": "sha256-zik7WISrR1ks2l6T1MZqZHb/OqroHdJnSnAehkE0kCk=",
|
"narHash": "sha256-POePremlUY5GyA1zfbtic6XLxDaQcqHN6l+bIxdT5gc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "be166e11d86ba4186db93e10c54a141058bdce49",
|
"rev": "81584dae2df6ac79f6b6dae0ecb7705e95129ada",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -60,11 +40,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755519972,
|
"lastModified": 1757255839,
|
||||||
"narHash": "sha256-bU4nqi3IpsUZJeyS8Jk85ytlX61i4b0KCxXX9YcOgVc=",
|
"narHash": "sha256-XH33B1X888Xc/xEXhF1RPq/kzKElM0D5C9N6YdvOvIc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "4073ff2f481f9ef3501678ff479ed81402caae6d",
|
"rev": "c8a0e78d86b12ea67be6ed0f7cae7f9bfabae75a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -81,11 +61,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1755749020,
|
"lastModified": 1757304222,
|
||||||
"narHash": "sha256-K+CRKb8nxmZdLw6a+jK8AOP4i2CeTW/Wr8gYRelDIFY=",
|
"narHash": "sha256-s070stByAXxeCLgftTXxFxZ2ynJhghne4Y6cTuqGAaw=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "c6c533e09b519fde3b221d9de64dce6d350f211f",
|
"rev": "fa312c0175ffb82bc67da095439b9cb683ac52bd",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -169,7 +149,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
@@ -187,7 +167,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
@@ -232,11 +212,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753592768,
|
"lastModified": 1756679287,
|
||||||
"narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
|
"narHash": "sha256-Xd1vOeY9ccDf5VtVK12yM0FS6qqvfUop8UQlxEB+gTQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "fc3add429f21450359369af74c2375cb34a2d204",
|
"rev": "07fc025fe10487dd80f2ec694f1cd790e752d0e8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -246,27 +226,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager-us": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs-us"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1755739851,
|
|
||||||
"narHash": "sha256-SC703bnPGOPWSEdZN2J2MkJWQBcUHV4QzuvFPdSVUME=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "3c3510e61ca5c15a0f13d73c2232fa2d5478a86c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprcursor": {
|
"hyprcursor": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprlang": [
|
"hyprlang": [
|
||||||
@@ -312,11 +271,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754305013,
|
"lastModified": 1756891319,
|
||||||
"narHash": "sha256-u+M2f0Xf1lVHzIPQ7DsNCDkM1NYxykOSsRr4t3TbSM4=",
|
"narHash": "sha256-/e6OXxzbAj/o97Z1dZgHre4bNaVjapDGscAujSCQSbI=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprgraphics",
|
"repo": "hyprgraphics",
|
||||||
"rev": "4c1d63a0f22135db123fc789f174b89544c6ec2d",
|
"rev": "621e2e00f1736aa18c68f7dfbf2b9cff94b8cc4d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -335,17 +294,17 @@
|
|||||||
"hyprlang": "hyprlang",
|
"hyprlang": "hyprlang",
|
||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
"systems": "systems_2",
|
"systems": "systems",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755687691,
|
"lastModified": 1757322502,
|
||||||
"narHash": "sha256-o9co4SENS25l3L5RQJ4PY3pCJAs35jjz7K8GU905Chs=",
|
"narHash": "sha256-/91c40cXye2No6YQZcoXaMcIDqGkdE0hmRPC4SSTlRU=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "1ac1ff457ab8ef1ae6a8f2ab17ee7965adfa729f",
|
"rev": "b619f39555b96c70330f4a933dedde7e897e0d81",
|
||||||
"revCount": 6383,
|
"revCount": 6413,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -465,11 +424,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753622892,
|
"lastModified": 1756810301,
|
||||||
"narHash": "sha256-0K+A+gmOI8IklSg5It1nyRNv0kCNL51duwnhUO/B8JA=",
|
"narHash": "sha256-wgZ3VW4VVtjK5dr0EiK9zKdJ/SOqGIBXVG85C3LVxQA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "23f0debd2003f17bd65f851cd3f930cff8a8c809",
|
"rev": "3d63fb4a42c819f198deabd18c0c2c1ded1de931",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -490,11 +449,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754481650,
|
"lastModified": 1756117388,
|
||||||
"narHash": "sha256-6u6HdEFJh5gY6VfyMQbhP7zDdVcqOrCDTkbiHJmAtMI=",
|
"narHash": "sha256-oRDel6pNl/T2tI+nc/USU9ZP9w08dxtl7hiZxa0C/Wc=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "df6b8820c4a0835d83d0c7c7be86fbc555f1f7fd",
|
"rev": "b2ae3204845f5f2f79b4703b441252d8ad2ecfd0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -515,11 +474,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751897909,
|
"lastModified": 1755184602,
|
||||||
"narHash": "sha256-FnhBENxihITZldThvbO7883PdXC/2dzW4eiNvtoV5Ao=",
|
"narHash": "sha256-RCBQN8xuADB0LEgaKbfRqwm6CdyopE1xIEhNc67FAbw=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwayland-scanner",
|
"repo": "hyprwayland-scanner",
|
||||||
"rev": "fcca0c61f988a9d092cbb33e906775014c61579d",
|
"rev": "b3b0f1f40ae09d4447c20608e5a4faf8bf3c492d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -558,18 +517,44 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-formatter-pack": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-on-droid",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nmd": [
|
||||||
|
"nix-on-droid",
|
||||||
|
"nmd"
|
||||||
|
],
|
||||||
|
"nmt": "nmt"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705252799,
|
||||||
|
"narHash": "sha256-HgSTREh7VoXjGgNDwKQUYcYo13rPkltW7IitHrTPA5c=",
|
||||||
|
"owner": "Gerschtli",
|
||||||
|
"repo": "nix-formatter-pack",
|
||||||
|
"rev": "2de39dedd79aab14c01b9e2934842051a160ffa5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerschtli",
|
||||||
|
"repo": "nix-formatter-pack",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-minecraft": {
|
"nix-minecraft": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755741527,
|
"lastModified": 1757296734,
|
||||||
"narHash": "sha256-XBP8Ld94EsXi/42MQ6H0If1vCdWPf+N6RA9M+2Wuos0=",
|
"narHash": "sha256-NRkbte52DMPcDbWEM823CJSApImXLIzRmWCKMMhYVbA=",
|
||||||
"owner": "Infinidoge",
|
"owner": "Infinidoge",
|
||||||
"repo": "nix-minecraft",
|
"repo": "nix-minecraft",
|
||||||
"rev": "a13d8cd9cef44144db3bc7333882916f4454aa91",
|
"rev": "e2915ee5edd4da1fa076ba155f1d539be78340fb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -578,13 +563,40 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-on-droid": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": [
|
||||||
|
"home-manager"
|
||||||
|
],
|
||||||
|
"nix-formatter-pack": "nix-formatter-pack",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-docs": "nixpkgs-docs",
|
||||||
|
"nixpkgs-for-bootstrap": "nixpkgs-for-bootstrap",
|
||||||
|
"nmd": "nmd"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1753100895,
|
||||||
|
"narHash": "sha256-nEuGlpIT7q4c/otPu00pGhb5Y12FtQm00pH3MXOJpfw=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-on-droid",
|
||||||
|
"rev": "27696cac81d4444319bb9158037b0da45e213f5e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-on-droid",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1725634671,
|
"lastModified": 1757068644,
|
||||||
"narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=",
|
"narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c",
|
"rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -594,6 +606,38 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-docs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705957679,
|
||||||
|
"narHash": "sha256-Q8LJaVZGJ9wo33wBafvZSzapYsjOaNjP/pOnSiKVGHY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "9a333eaa80901efe01df07eade2c16d183761fa3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-23.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-for-bootstrap": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1720244366,
|
||||||
|
"narHash": "sha256-WrDV0FPMVd2Sq9hkR5LNHudS3OSMmUrs90JUTN+MXpA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "49ee0e94463abada1de470c9c07bfc12b36dcf40",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753579242,
|
"lastModified": 1753579242,
|
||||||
@@ -611,11 +655,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-us": {
|
"nixpkgs-us": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755615617,
|
"lastModified": 1762363567,
|
||||||
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
|
"narHash": "sha256-YRqMDEtSMbitIMj+JLpheSz0pwEr0Rmy5mC7myl17xs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "20075955deac2583bb12f07151c2df830ef346b4",
|
"rev": "ae814fd3904b621d8ab97418f1d0f2eb0d3716f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -626,22 +670,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1754725699,
|
|
||||||
"narHash": "sha256-iAcj9T/Y+3DBy2J0N+yF9XQQQ8IEb5swLFzs23CdP88=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "85dbfc7aaf52ecb755f87e577ddbe6dbbdbc1054",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748929857,
|
"lastModified": 1748929857,
|
||||||
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
|
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
|
||||||
@@ -657,13 +685,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755593991,
|
"lastModified": 1757244434,
|
||||||
"narHash": "sha256-BA9MuPjBDx/WnpTJ0EGhStyfE7hug8g85Y3Ju9oTsM4=",
|
"narHash": "sha256-AeqTqY0Y95K1Fgs6wuT1LafBNcmKxcOkWnm4alD9pqM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a58390ab6f1aa810eb8e0f0fc74230e7cc06de03",
|
"rev": "092c565d333be1e17b4779ac22104338941d913f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -673,7 +701,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755615617,
|
"lastModified": 1755615617,
|
||||||
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
|
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
|
||||||
@@ -689,7 +717,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755577059,
|
"lastModified": 1755577059,
|
||||||
"narHash": "sha256-5hYhxIpco8xR+IpP3uU56+4+Bw7mf7EMyxS/HqUYHQY=",
|
"narHash": "sha256-5hYhxIpco8xR+IpP3uU56+4+Bw7mf7EMyxS/HqUYHQY=",
|
||||||
@@ -708,29 +736,29 @@
|
|||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755754251,
|
"lastModified": 1760575893,
|
||||||
"narHash": "sha256-objBSkdkrn6BpQ1mH1tkvXmipfJ+mONHuydefPhdNSs=",
|
"narHash": "sha256-u6eyhxtlxgG29uI2VCSt5Ir6/BW9hkhglCTfbJ14Hgg=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "3ba1175ea9cdff79caf368460919af740480fe26",
|
"rev": "bcc5185ef433a77b18f5aa585ee79d97f9a8e69c",
|
||||||
"revCount": 33,
|
"revCount": 36,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai"
|
"url": "ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai"
|
"url": "ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixvim_2": {
|
"nixvim_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": "nixpkgs_6",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
"systems": "systems_5"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755741137,
|
"lastModified": 1755741137,
|
||||||
@@ -746,6 +774,44 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nmd": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nix-on-droid",
|
||||||
|
"nixpkgs-docs"
|
||||||
|
],
|
||||||
|
"scss-reset": "scss-reset"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705050560,
|
||||||
|
"narHash": "sha256-x3zzcdvhJpodsmdjqB4t5mkVW22V3wqHLOun0KRBzUI=",
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"rev": "66d9334933119c36f91a78d565c152a4fdc8d3d3",
|
||||||
|
"type": "sourcehut"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"type": "sourcehut"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nmt": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1648075362,
|
||||||
|
"narHash": "sha256-u36WgzoA84dMVsGXzml4wZ5ckGgfnvS0ryzo/3zn/Pc=",
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmt",
|
||||||
|
"rev": "d83601002c99b78c89ea80e5e6ba21addcfe12ae",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rycee",
|
||||||
|
"repo": "nmt",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nuschtosSearch": {
|
"nuschtosSearch": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
@@ -780,11 +846,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754416808,
|
"lastModified": 1757239681,
|
||||||
"narHash": "sha256-c6yg0EQ9xVESx6HGDOCMcyRSjaTpNJP10ef+6fRcofA=",
|
"narHash": "sha256-E9spYi9lxm2f1zWQLQ7xQt8Xs2nWgr1T4QM7ZjLFphM=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "9c52372878df6911f9afc1e2a1391f55e4dfc864",
|
"rev": "ab82ab08d6bf74085bd328de2a8722c12d97bd9d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -795,18 +861,32 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"ags": "ags",
|
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-us": "home-manager-us",
|
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"nix-minecraft": "nix-minecraft",
|
"nix-minecraft": "nix-minecraft",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nix-on-droid": "nix-on-droid",
|
||||||
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs-us": "nixpkgs-us",
|
"nixpkgs-us": "nixpkgs-us",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix"
|
||||||
"themecord": "themecord"
|
}
|
||||||
|
},
|
||||||
|
"scss-reset": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1631450058,
|
||||||
|
"narHash": "sha256-muDlZJPtXDIGevSEWkicPP0HQ6VtucbkMNygpGlBEUM=",
|
||||||
|
"owner": "andreymatin",
|
||||||
|
"repo": "scss-reset",
|
||||||
|
"rev": "0cf50e27a4e95e9bb5b1715eedf9c54dee1a5a91",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "andreymatin",
|
||||||
|
"repo": "scss-reset",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
@@ -846,16 +926,16 @@
|
|||||||
},
|
},
|
||||||
"systems_2": {
|
"systems_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default-linux",
|
"repo": "default",
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default-linux",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -889,41 +969,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"themecord": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1743970059,
|
|
||||||
"narHash": "sha256-vwrIULP9VmYqhNtHcNaPat6OjKqbDgwf3qSypOusG9c=",
|
|
||||||
"owner": "danihek",
|
|
||||||
"repo": "themecord",
|
|
||||||
"rev": "2117717f830c4847eafc450319de26ae09ac9277",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "danihek",
|
|
||||||
"repo": "themecord",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xdph": {
|
"xdph": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprland-protocols": [
|
"hyprland-protocols": [
|
||||||
@@ -952,11 +997,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753633878,
|
"lastModified": 1755354946,
|
||||||
"narHash": "sha256-js2sLRtsOUA/aT10OCDaTjO80yplqwOIaLUqEe0nMx0=",
|
"narHash": "sha256-zdov5f/GcoLQc9qYIS1dUTqtJMeDqmBmo59PAxze6e4=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"rev": "371b96bd11ad2006ed4f21229dbd1be69bed3e8a",
|
"rev": "a10726d6a8d0ef1a0c645378f983b6278c42eaa0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
92
flake.nix
@@ -3,36 +3,20 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
#nixpkgs.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/nixpkgs?ref=nixos-24.11";
|
|
||||||
|
|
||||||
nixpkgs-us.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-us.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
#nixpkgs-us.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/nixpkgs?ref=nixos-unstable";
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
#url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/home-manager?ref=release-24.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager-us = {
|
|
||||||
url = "github:nix-community/home-manager/master";
|
|
||||||
#url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/home-manager?ref=release-24.11";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-us";
|
|
||||||
};
|
|
||||||
|
|
||||||
#nixpkgs-droid.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/nixpkgs?ref=nixos-24.05";
|
|
||||||
/*
|
|
||||||
home-manager-droid = {
|
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
|
||||||
#url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/home-manager?ref=release-24.05";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-droid";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix-on-droid = {
|
nix-on-droid = {
|
||||||
url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/nix-on-droid?ref=release-24.05";
|
url = "github:nix-community/nix-on-droid";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-droid";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.home-manager.follows = "home-manager";
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -54,22 +38,15 @@
|
|||||||
#simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
#simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
||||||
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
#hyprland.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/hyprland?submodules=1";
|
|
||||||
|
|
||||||
nixvim.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai";
|
#nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
#nixvim.url = "git+https://gitea.blunkall.us/Blunkall-Technologies/Moirai";
|
nixvim.url = "git+ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
|
|
||||||
ags.url = "github:Aylur/ags/v1";
|
|
||||||
|
|
||||||
themecord = {
|
|
||||||
url = "github:danihek/themecord";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... } @ inputs: {
|
outputs = { self, nixpkgs, home-manager, ... } @ inputs: {
|
||||||
|
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
homebox = nixpkgs.lib.nixosSystem {
|
homebox = nixpkgs.lib.nixosSystem {
|
||||||
@@ -115,7 +92,9 @@
|
|||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inputs = inputs // {
|
inputs = inputs // {
|
||||||
nathan-home-manager = import ./home-manager/nathan;
|
nathan = import ./home-manager/users/nathan;
|
||||||
|
home-manager-config = import ./home-manager;
|
||||||
|
inherit self;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
@@ -127,7 +106,9 @@
|
|||||||
live = nixpkgs.lib.nixosSystem {
|
live = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inputs = inputs // {
|
inputs = inputs // {
|
||||||
nathan-home-manager = import ./home-manager/nathan;
|
nathan = import ./home-manager/users/nathan;
|
||||||
|
home-manager-config = import ./home-manager;
|
||||||
|
inherit self;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
@@ -139,32 +120,51 @@
|
|||||||
container = nixpkgs.lib.nixosSystem {
|
container = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inputs = inputs // {
|
inputs = inputs // {
|
||||||
nathan-home-manager = import ./home-manager/nathan;
|
nathan = import ./home-manager/users/nathan;
|
||||||
|
home-manager-config = import ./home-manager;
|
||||||
|
inherit self;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./system-config/configuration/sandbox-nathan
|
./system-config/configuration/containers/nathan
|
||||||
|
./system-config
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
iso = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inputs = inputs // {
|
||||||
|
nathan = import ./home-manager/users/nathan;
|
||||||
|
home-manager-config = import ./home-manager;
|
||||||
|
inherit self;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./system-config/configuration/iso
|
||||||
./system-config
|
./system-config
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
nixOnDroidConfigurations.default = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
nixOnDroidConfigurations.default = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
|
||||||
pkgs = import nixpkgs { system = "aarch64-linux"; };
|
pkgs = import nixpkgs {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
overlays = [ inputs.nix-on-droid.overlays.default ];
|
||||||
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
inputs = inputs // {
|
|
||||||
nix-on-droid-home-manager = import ./home-manager/nix-on-droid;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
./system-config/configuration/android
|
./system-config/configuration/android
|
||||||
./system-config
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inputs = inputs // {
|
||||||
|
nathan = import ./home-manager/users/nathan;
|
||||||
|
home-manager-config = import ./home-manager;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
nathan = home-manager.lib.homeManagerConfiguration {
|
nathan = home-manager.lib.homeManagerConfiguration {
|
||||||
@@ -188,5 +188,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
iso = self.nixosConfigurations.iso.config.system.build.isoImage;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./programs
|
|
||||||
./services
|
|
||||||
./packages
|
|
||||||
./dotfiles
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
|
|
||||||
home.username = "nathan";
|
|
||||||
|
|
||||||
home.homeDirectory = "/home/nathan";
|
|
||||||
|
|
||||||
home.pointerCursor = {
|
|
||||||
gtk.enable = true;
|
|
||||||
package = pkgs.bibata-cursors;
|
|
||||||
name = "Bibata-Modern-Classic";
|
|
||||||
size = 16;
|
|
||||||
};
|
|
||||||
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme.name = "Tokyonight-Dark";
|
|
||||||
theme.package = pkgs.tokyonight-gtk-theme;
|
|
||||||
iconTheme.package = pkgs.rose-pine-icon-theme;
|
|
||||||
iconTheme.name = "rose-pine-moon";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
age.keyFile = "/home/nathan/.config/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ./secrets.yaml;
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
};
|
|
||||||
|
|
||||||
/*nix = {
|
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
builders = '''';
|
|
||||||
builders-use-substitutes = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
distributedBuilds = config.sysconfig.remoteBuildClient;
|
|
||||||
buildMachines = lib.mkIf config.sysconfig.remoteBuildClient [
|
|
||||||
{
|
|
||||||
hostName = "blunkall.us";
|
|
||||||
sshUser = "remote-builder";
|
|
||||||
sshKey = config.sops.secrets."remoteBuildSSHKey".path;
|
|
||||||
supportedFeatures = [
|
|
||||||
"nixos-test"
|
|
||||||
"benchmark"
|
|
||||||
"big-parallel"
|
|
||||||
"kvm"
|
|
||||||
];
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};*/
|
|
||||||
|
|
||||||
services.mpris-proxy.enable = true;
|
|
||||||
|
|
||||||
programs.ssh.enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 1007 KiB |
|
Before Width: | Height: | Size: 110 MiB |
|
Before Width: | Height: | Size: 191 KiB |
|
Before Width: | Height: | Size: 874 KiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 48 MiB |
|
Before Width: | Height: | Size: 203 MiB |
|
Before Width: | Height: | Size: 670 KiB |
|
Before Width: | Height: | Size: 273 KiB |
|
Before Width: | Height: | Size: 140 MiB |
|
Before Width: | Height: | Size: 3.1 MiB |
|
Before Width: | Height: | Size: 2.8 MiB |
|
Before Width: | Height: | Size: 36 MiB |
@@ -1,15 +0,0 @@
|
|||||||
|
|
||||||
# Starter Config
|
|
||||||
|
|
||||||
if suggestions don't work, first make sure
|
|
||||||
you have TypeScript LSP working in your editor
|
|
||||||
|
|
||||||
if you do not want typechecking only suggestions
|
|
||||||
|
|
||||||
```json
|
|
||||||
// tsconfig.json
|
|
||||||
"checkJs": false
|
|
||||||
```
|
|
||||||
|
|
||||||
types are symlinked to:
|
|
||||||
/home/nathan/.nix-profile/share/com.github.Aylur.ags/types
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
const bluetooth = await Service.import("bluetooth")
|
|
||||||
|
|
||||||
|
|
||||||
export function ConnectedList() {
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "btdevices",
|
|
||||||
setup: self => self.hook(bluetooth, self => {
|
|
||||||
self.children = bluetooth.connected_devices
|
|
||||||
.map(({ address, icon_name, name }) => Widget.EventBox({
|
|
||||||
child: Widget.Icon(icon_name + '-symbolic'),
|
|
||||||
tooltip_text: name,
|
|
||||||
on_primary_click: () => {
|
|
||||||
bluetooth.getDevice(address).setConnection(false)
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
self.visible = bluetooth.connected_devices.length > 0;
|
|
||||||
}, 'notify::connected-devices'),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default function Bluetooth() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
tooltip_text: bluetooth.bind('enabled').as(on => on ? 'Enabled' : 'Disabled'),
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: bluetooth.bind('enabled').as(on =>
|
|
||||||
`bluetooth-${on ? 'active' : 'disabled'}-symbolic`),
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
const date = Variable("", {
|
|
||||||
poll: [1000, 'date "+%H:%M %b %e."'],
|
|
||||||
})
|
|
||||||
|
|
||||||
function Clock() {
|
|
||||||
return Widget.Label({
|
|
||||||
class_name: "clock",
|
|
||||||
label: date.bind(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Clock
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
|
|
||||||
const hyprland = await Service.import("hyprland")
|
|
||||||
//const systemtray = await Service.import("systemtray")
|
|
||||||
|
|
||||||
import Clock from './clock.js'
|
|
||||||
import Launcher from './launcher.js'
|
|
||||||
import Media from './media.js'
|
|
||||||
import Notification from './notif.js'
|
|
||||||
import Power from './power.js'
|
|
||||||
import Workspaces from './workspaces.js'
|
|
||||||
import Settings, {SettingsWindow} from './settings.js'
|
|
||||||
import { ConnectedList } from './bluetooth.js'
|
|
||||||
|
|
||||||
import { NotificationPopups } from './notification.js'
|
|
||||||
|
|
||||||
|
|
||||||
// widgets can be only assigned as a child in one container
|
|
||||||
// so to make a reuseable widget, make it a function
|
|
||||||
// then you can simply instantiate one by calling it
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
// layout of the bar
|
|
||||||
function Left() {
|
|
||||||
return Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
Launcher(),
|
|
||||||
Workspaces(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Center() {
|
|
||||||
return Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
Media(),
|
|
||||||
Clock(),
|
|
||||||
Notification(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Right() {
|
|
||||||
return Widget.Box({
|
|
||||||
hpack: "end",
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
ConnectedList(),
|
|
||||||
Settings(),
|
|
||||||
Power(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
|
||||||
//windows
|
|
||||||
|
|
||||||
function Bar(monitor = 0) {
|
|
||||||
return Widget.Window({
|
|
||||||
name: `bar-${monitor}`, // name has to be unique
|
|
||||||
class_name: "bar",
|
|
||||||
monitor,
|
|
||||||
anchor: ["top", "left", "right"],
|
|
||||||
height_request: 32,
|
|
||||||
vexpand: false,
|
|
||||||
exclusivity: "exclusive",
|
|
||||||
child: Widget.CenterBox({
|
|
||||||
start_widget: Left(),
|
|
||||||
center_widget: Center(),
|
|
||||||
end_widget: Right(),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function pickMonitor() {
|
|
||||||
|
|
||||||
let n = 0
|
|
||||||
|
|
||||||
for(let i = 0; i < hyprland.monitors.length; i++) {
|
|
||||||
print(hyprland.getMonitor(i).name)
|
|
||||||
if(hyprland.getMonitor(i).name == 'eDP-1')
|
|
||||||
n = i
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
//App config
|
|
||||||
|
|
||||||
let m = 0
|
|
||||||
|
|
||||||
App.config({
|
|
||||||
style: "/home/nathan/.cache/wal/colors-ags.css",
|
|
||||||
windows: [
|
|
||||||
Bar(m),
|
|
||||||
SettingsWindow(m),
|
|
||||||
NotificationPopups(m)
|
|
||||||
// you can call it, for each monitor
|
|
||||||
// Bar(0),
|
|
||||||
// Bar(1)
|
|
||||||
],
|
|
||||||
})
|
|
||||||
|
|
||||||
App.toggleWindow(App.windows[1].name)
|
|
||||||
|
|
||||||
// Utils.timeout(100, () => Utils.notify({
|
|
||||||
// summary: "Notification Popup Example",
|
|
||||||
// iconName: "info-symbolic",
|
|
||||||
// body: "Lorem ipsum dolor sit amet, qui minim labore adipisicing "
|
|
||||||
// + "minim sint cillum sint consectetur cupidatat.",
|
|
||||||
// actions: {
|
|
||||||
// "Cool": () => print("pressed Cool"),
|
|
||||||
// },
|
|
||||||
// }))
|
|
||||||
|
|
||||||
Utils.monitorFile(`/home/nathan/.cache/wal`, () => {
|
|
||||||
const css = `/home/nathan/.cache/wal/colors-ags.css`
|
|
||||||
App.resetCss()
|
|
||||||
App.applyCss(css)
|
|
||||||
})
|
|
||||||
|
|
||||||
export { }
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
const mpris = await Service.import("mpris")
|
|
||||||
|
|
||||||
|
|
||||||
export default function Media() {
|
|
||||||
const track = Utils.watch("", mpris, "player-changed", () => {
|
|
||||||
if (mpris.players[0]) {
|
|
||||||
const { track_artists, track_title } = mpris.players[0]
|
|
||||||
return `${track_artists.join(", ")} -${track_title}`
|
|
||||||
} else {
|
|
||||||
return "Nothing is playing"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "media",
|
|
||||||
on_primary_click: () => mpris.getPlayer("")?.playPause(),
|
|
||||||
on_scroll_up: () => mpris.getPlayer("")?.next(),
|
|
||||||
on_scroll_down: () => mpris.getPlayer("")?.previous(),
|
|
||||||
child: Widget.Icon({icon: 'emblem-music-symbolic'}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function PlayerImg(player) {
|
|
||||||
return Widget.Box({
|
|
||||||
hpack: "start",
|
|
||||||
width_request: 80,
|
|
||||||
height_request: 80,
|
|
||||||
css: player.bind("track_cover_url").transform(p => `
|
|
||||||
background-image: url('${p || player.cover_path || '/home/nathan/Pictures/symbols/audio.png'}');
|
|
||||||
background-size: contain;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
`),
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function PlayerGUI(player) {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "playerbox",
|
|
||||||
height_request: 200,
|
|
||||||
vexpand: false,
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
margin: 15,
|
|
||||||
hpack: "start",
|
|
||||||
spacing: 20,
|
|
||||||
children: [
|
|
||||||
PlayerImg(player),
|
|
||||||
Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind('track-title').as(t => t)
|
|
||||||
}),
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind("track_artists").transform(a => a.join(", ")),
|
|
||||||
wrap: true,
|
|
||||||
}),
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind('track-album').as(t => t)
|
|
||||||
}),
|
|
||||||
]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
|
|
||||||
}),
|
|
||||||
|
|
||||||
Widget.Slider({
|
|
||||||
class_name: "position",
|
|
||||||
draw_value: false,
|
|
||||||
on_change: ({ value }) => player.position = value * player.length,
|
|
||||||
visible: player.bind("length").as(l => l > 0),
|
|
||||||
setup: self => {
|
|
||||||
function update() {
|
|
||||||
const value = player.position / player.length
|
|
||||||
self.value = value > 0 ? value : 0
|
|
||||||
}
|
|
||||||
self.hook(player, update)
|
|
||||||
self.hook(player, update, "position")
|
|
||||||
self.poll(1000, update)
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
|
|
||||||
Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
hpack: "center",
|
|
||||||
spacing: 20,
|
|
||||||
children: [
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: 'media-skip-backward-symbolic'}),
|
|
||||||
on_primary_click: () => player.previous()
|
|
||||||
}),
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: player.bind("play_back_status").transform(s => {
|
|
||||||
switch (s) {
|
|
||||||
case "Playing": return 'media-playback-pause-symbolic'
|
|
||||||
case "Paused":
|
|
||||||
case "Stopped": return 'media-playback-start-symbolic'
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
on_primary_click: () => player.playPause(),
|
|
||||||
}),
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: 'media-skip-forward-symbolic'}),
|
|
||||||
on_primary_click: () => player.next()
|
|
||||||
})
|
|
||||||
]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
setup: self => {
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function Players() {
|
|
||||||
|
|
||||||
const plrs = mpris.bind('players')
|
|
||||||
.as(p => p.map((v) => PlayerGUI(v)))
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: plrs,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
const notifications = await Service.import("notifications")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// we don't need dunst or any other notification daemon
|
|
||||||
// because the Notifications module is a notification daemon itself
|
|
||||||
export default function Notification() {
|
|
||||||
const popups = notifications.bind("popups")
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "notificationbutton",
|
|
||||||
visible: true,
|
|
||||||
on_primary_click: () => {},
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: "preferences-system-notifications-symbolic",
|
|
||||||
}),
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Widget.Label({
|
|
||||||
// label: popups.as(p => p[0]?.summary || ""),
|
|
||||||
// }),
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
const notifications = await Service.import("notifications")
|
|
||||||
|
|
||||||
/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */
|
|
||||||
function NotificationIcon({ app_entry, app_icon, image }) {
|
|
||||||
if (image) {
|
|
||||||
return Widget.Box({
|
|
||||||
css: `background-image: url("${image}");`
|
|
||||||
+ "background-size: contain;"
|
|
||||||
+ "background-repeat: no-repeat;"
|
|
||||||
+ "background-position: center;",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let icon = "dialog-information-symbolic"
|
|
||||||
if (Utils.lookUpIcon(app_icon))
|
|
||||||
icon = app_icon
|
|
||||||
|
|
||||||
if (app_entry && Utils.lookUpIcon(app_entry))
|
|
||||||
icon = app_entry
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
child: Widget.Icon(icon),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */
|
|
||||||
function Notification(n) {
|
|
||||||
const icon = Widget.Box({
|
|
||||||
vpack: "start",
|
|
||||||
class_name: "icon",
|
|
||||||
child: NotificationIcon(n),
|
|
||||||
})
|
|
||||||
|
|
||||||
const title = Widget.Label({
|
|
||||||
class_name: "title",
|
|
||||||
xalign: 0,
|
|
||||||
justification: "left",
|
|
||||||
hexpand: true,
|
|
||||||
max_width_chars: 24,
|
|
||||||
truncate: "end",
|
|
||||||
wrap: true,
|
|
||||||
label: n.summary,
|
|
||||||
use_markup: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const body = Widget.Label({
|
|
||||||
class_name: "body",
|
|
||||||
hexpand: true,
|
|
||||||
use_markup: true,
|
|
||||||
xalign: 0,
|
|
||||||
justification: "left",
|
|
||||||
label: n.body,
|
|
||||||
wrap: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const actions = Widget.Box({
|
|
||||||
class_name: "actions",
|
|
||||||
children: n.actions.map(({ id, label }) => Widget.Button({
|
|
||||||
class_name: "action-button",
|
|
||||||
on_clicked: () => {
|
|
||||||
n.invoke(id)
|
|
||||||
n.dismiss()
|
|
||||||
},
|
|
||||||
hexpand: true,
|
|
||||||
child: Widget.Label(label),
|
|
||||||
})),
|
|
||||||
})
|
|
||||||
|
|
||||||
return Widget.EventBox(
|
|
||||||
{
|
|
||||||
attribute: { id: n.id },
|
|
||||||
on_primary_click: n.dismiss,
|
|
||||||
},
|
|
||||||
Widget.Box(
|
|
||||||
{
|
|
||||||
class_name: `notification ${n.urgency}`,
|
|
||||||
vertical: true,
|
|
||||||
},
|
|
||||||
Widget.Box([
|
|
||||||
icon,
|
|
||||||
Widget.Box(
|
|
||||||
{ vertical: true },
|
|
||||||
title,
|
|
||||||
body,
|
|
||||||
),
|
|
||||||
]),
|
|
||||||
actions,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function NotificationPopups(monitor = 0) {
|
|
||||||
const list = Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: notifications.popups.map(Notification),
|
|
||||||
})
|
|
||||||
|
|
||||||
function onNotified(_, /** @type {number} */ id) {
|
|
||||||
const n = notifications.getNotification(id)
|
|
||||||
if (n)
|
|
||||||
list.children = [Notification(n), ...list.children]
|
|
||||||
}
|
|
||||||
|
|
||||||
function onDismissed(_, /** @type {number} */ id) {
|
|
||||||
list.children.find(n => n.attribute.id === id)?.destroy()
|
|
||||||
}
|
|
||||||
|
|
||||||
list.hook(notifications, onNotified, "notified")
|
|
||||||
.hook(notifications, onDismissed, "dismissed")
|
|
||||||
|
|
||||||
return Widget.Window({
|
|
||||||
monitor,
|
|
||||||
name: `notifications${monitor}`,
|
|
||||||
class_name: "notification-popups",
|
|
||||||
anchor: ["top", "right"],
|
|
||||||
layer: "overlay",
|
|
||||||
child: Widget.Box({
|
|
||||||
css: "min-width: 2px; min-height: 2px;",
|
|
||||||
class_name: "notifications",
|
|
||||||
vertical: true,
|
|
||||||
child: list,
|
|
||||||
|
|
||||||
/** this is a simple one liner that could be used instead of
|
|
||||||
hooking into the 'notified' and 'dismissed' signals.
|
|
||||||
but its not very optimized becuase it will recreate
|
|
||||||
the whole list everytime a notification is added or dismissed */
|
|
||||||
// children: notifications.bind('popups')
|
|
||||||
// .as(popups => popups.map(Notification))
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Power() {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
spacing: 8,
|
|
||||||
children: [
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-reboot-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'restart',
|
|
||||||
tooltip_text: 'restart',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('reboot')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-log-out-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'logout',
|
|
||||||
tooltip_text: 'log out',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('loginctl kill-session self')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-lock-screen-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'lockscreen',
|
|
||||||
tooltip_text: 'lock screen',
|
|
||||||
on_primary_click: () => {Utils.exec('swaylock')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-shutdown-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'poweroff',
|
|
||||||
tooltip_text: 'shutdown',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('shutdown now')},
|
|
||||||
})
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default Power
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
const audio = await Service.import("audio")
|
|
||||||
const battery = await Service.import("battery")
|
|
||||||
const mpris = await Service.import("mpris")
|
|
||||||
|
|
||||||
import Bluetooth from "./bluetooth.js"
|
|
||||||
import WifiIndicator from "./wifi.js"
|
|
||||||
import { Players } from "./media.js"
|
|
||||||
|
|
||||||
export function Volume() {
|
|
||||||
const icons = {
|
|
||||||
101: "high",
|
|
||||||
67: "high",
|
|
||||||
34: "medium",
|
|
||||||
1: "low",
|
|
||||||
0: "muted",
|
|
||||||
}
|
|
||||||
|
|
||||||
function getIcon() {
|
|
||||||
const icon = audio.speaker.is_muted ? 0 : [101, 67, 34, 1, 0].find(
|
|
||||||
threshold => threshold <= audio.speaker.volume * 100)
|
|
||||||
|
|
||||||
return `audio-volume-${icons[icon]}-symbolic`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
tooltip_text: '',
|
|
||||||
setup: (self) => self.hook(audio.speaker, () => {
|
|
||||||
self.tooltip_text = `Volume: ${(100 * audio.speaker.volume).toFixed(0)}%`
|
|
||||||
}),
|
|
||||||
child: Widget.Icon({
|
|
||||||
class_name: "volume",
|
|
||||||
icon: Utils.watch(getIcon(), audio.speaker, getIcon),
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// const slider = Widget.Slider({
|
|
||||||
// hexpand: true,
|
|
||||||
// draw_value: false,
|
|
||||||
// inverted: true,
|
|
||||||
// on_change: ({ value }) => audio.speaker.volume = value,
|
|
||||||
// setup: (self) => self.hook(audio.speaker, () => {
|
|
||||||
// self.value = audio.speaker.volume || 0
|
|
||||||
// }),
|
|
||||||
// })
|
|
||||||
|
|
||||||
|
|
||||||
export function BatteryLabel() {
|
|
||||||
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0)
|
|
||||||
const icon = battery.bind("percent").as(p =>
|
|
||||||
`battery-${p > 90 ? "full" : p > 70 ? "good" : p > 50 ? "medium" : p > 30 ? "low" : p > 10 ? "caution" : "empty"}-symbolic`)
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "battery",
|
|
||||||
visible: battery.bind("available"),
|
|
||||||
child: Widget.EventBox({
|
|
||||||
child: Widget.Icon({ icon }),
|
|
||||||
tooltip_text: value.as(p => `Battery: ${(p * 100).toFixed(0)}%`)
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Panel() {
|
|
||||||
return Widget.Box({
|
|
||||||
height_request: 200,
|
|
||||||
css: 'background: black;',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SettingsWindow(monitor = 0) {
|
|
||||||
return Widget.Window({
|
|
||||||
monitor,
|
|
||||||
name: `Settings-${monitor}`,
|
|
||||||
anchor: ["top", "bottom", "right"],
|
|
||||||
margins: [50, 0, 10, 0],
|
|
||||||
width_request: 400,
|
|
||||||
exclusivity: "ignore",
|
|
||||||
layer: "top",
|
|
||||||
class_name: "SettingsWindow",
|
|
||||||
child: Widget.Box({
|
|
||||||
class_name: "settings_window",
|
|
||||||
child: Widget.Scrollable({
|
|
||||||
vscroll: "always",
|
|
||||||
hscroll: "never",
|
|
||||||
hexpand: true,
|
|
||||||
vexpand: true,
|
|
||||||
margin: 20,
|
|
||||||
child: Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Panel(),
|
|
||||||
Players()
|
|
||||||
]
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default function Settings() {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Button({
|
|
||||||
tooltip_text: 'Settings',
|
|
||||||
attribute: false,
|
|
||||||
margin_right: 8,
|
|
||||||
child: Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
children: [
|
|
||||||
Bluetooth(),
|
|
||||||
WifiIndicator(),
|
|
||||||
BatteryLabel(),
|
|
||||||
Volume(),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
on_clicked: (self) => {
|
|
||||||
self.attribute = !self.attribute
|
|
||||||
|
|
||||||
App.toggleWindow(App.windows[1].name)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
window.bar {
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
window.win {
|
|
||||||
background-color: transparent;
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.booox {
|
|
||||||
color: white;
|
|
||||||
background-color: white;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.playerbox {
|
|
||||||
background-color: rgb(73, 81, 121);
|
|
||||||
color:rgb(73, 81, 121);
|
|
||||||
border: 3px solid black;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.launcher {
|
|
||||||
color: aqua;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
box {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Window.SettingsWindow {
|
|
||||||
background-color: black;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
.settings_window {
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
color: teal;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.focused {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.other {
|
|
||||||
color: teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media:active {
|
|
||||||
background-color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
min-width: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
padding: 0px;
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:active {
|
|
||||||
background-color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:hover {
|
|
||||||
border-bottom: 3px solid teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspaces button.focused {
|
|
||||||
border-bottom: 3px solid aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.client-title {
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.clock {
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification {
|
|
||||||
color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
levelbar block,
|
|
||||||
highlight {
|
|
||||||
min-height: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************/
|
|
||||||
|
|
||||||
window.notification-popups box.notifications {
|
|
||||||
padding: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon image {
|
|
||||||
font-size: 58px;
|
|
||||||
/* to center the icon */
|
|
||||||
margin: 5px;
|
|
||||||
color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon box {
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
border-radius: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notificationbutton {
|
|
||||||
color: teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification {
|
|
||||||
min-width: 350px;
|
|
||||||
border-radius: 11px;
|
|
||||||
padding: 1em;
|
|
||||||
margin: .5em;
|
|
||||||
border: 1px solid blue;
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification.critical {
|
|
||||||
border: 1px solid lightcoral;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
color: black;
|
|
||||||
font-size: 1.4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button {
|
|
||||||
margin: 0 .4em;
|
|
||||||
margin-top: .8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button:first-child {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button:last-child {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
const network = await Service.import('network')
|
|
||||||
|
|
||||||
export default function WifiIndicator() {
|
|
||||||
return Widget.Box({
|
|
||||||
child: Widget.EventBox({
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: 'network-wireless-disconnected-symbolic',
|
|
||||||
}),
|
|
||||||
|
|
||||||
setup: self => self.hook(network.wifi, () => {
|
|
||||||
self.child.icon = network.wifi.icon_name == 'network-wireless-disabled-symbolic' ? 'network-wireless-disconnected-symbolic' : network.wifi.icon_name
|
|
||||||
self.tooltip_text = network.wifi.ssid ? network.wifi.ssid : network.wifi.internet
|
|
||||||
}),
|
|
||||||
|
|
||||||
tooltip_text: 'disconnected',
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// const WiredIndicator = () => Widget.Icon({
|
|
||||||
// icon: network.wired.bind('icon_name'),
|
|
||||||
// })
|
|
||||||
|
|
||||||
// const NetworkIndicator = () => Widget.Stack({
|
|
||||||
// children: {
|
|
||||||
// wifi: WifiIndicator(),
|
|
||||||
// wired: WiredIndicator(),
|
|
||||||
// },
|
|
||||||
// shown: network.bind('primary').as(p => p || 'wifi'),
|
|
||||||
// })
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
const hyprland = await Service.import("hyprland")
|
|
||||||
|
|
||||||
|
|
||||||
function ClientTitle() {
|
|
||||||
return Widget.Label({
|
|
||||||
class_name: "client-title",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: hyprland.active.client.bind("title"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function Workspaces() {
|
|
||||||
const activeId = hyprland.active.workspace.bind("id")
|
|
||||||
const workspaces = hyprland.bind("workspaces")
|
|
||||||
.as(ws => ws.map(({ id }) => id > 0 ? Widget.Button({
|
|
||||||
on_clicked: () => hyprland.messageAsync(`dispatch workspace ${id}`),
|
|
||||||
child: Widget.Label(`${id}`),
|
|
||||||
class_name: activeId.as(i => `${i === id ? "focused" : "other"}`),
|
|
||||||
margin_left: 10,
|
|
||||||
}) : null
|
|
||||||
).sort((a, b) => { return a && b ? Number(a.child.label) - Number(b.child.label) : a ? -1 : 1 }))
|
|
||||||
|
|
||||||
return Widget.CenterBox({
|
|
||||||
|
|
||||||
spacing: 8,
|
|
||||||
start_widget: Widget.Box({
|
|
||||||
class_name: "workspaces",
|
|
||||||
spacing: 0,
|
|
||||||
children: workspaces
|
|
||||||
}),
|
|
||||||
end_widget: ClientTitle(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Workspaces
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".config/ags" = { source = ./ags; recursive = true; };
|
|
||||||
".config/hypr" = { source = ./hypr; recursive = true; };
|
|
||||||
".config/swaylock" = { source = ./swaylock; recursive = true; };
|
|
||||||
".config/wal/templates" = { source = ./wal/templates; recursive = true; };
|
|
||||||
".config/zsh" = { source = ./zsh; recursive = true; };
|
|
||||||
"Pictures/Wallpaper" = { source = ./Wallpaper; recursive = true; };
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,278 +0,0 @@
|
|||||||
|
|
||||||
#------------------------------------------------#
|
|
||||||
# _ _ _ _ #
|
|
||||||
#| | | | | | | | #
|
|
||||||
#| |___| |_ _ ____ _ _| | __ _.-.___ ___| | #
|
|
||||||
#| ___ | | | | _ \| |/ | |/ _` | _ \/ _ | #
|
|
||||||
#| | | | |_| | |_) | /| | (_| | | | | (_| | #
|
|
||||||
#|_| |_|\__, | __/|__| |_|\__,_|_| |_|\___/_| #
|
|
||||||
# |___/|_| #
|
|
||||||
# #
|
|
||||||
#------------------------------------------------#
|
|
||||||
|
|
||||||
exec-once=onSystemStart
|
|
||||||
|
|
||||||
# Some default env vars.
|
|
||||||
env = XCURSOR_SIZE,16
|
|
||||||
|
|
||||||
source = ~/Projects/Olympus/home-manager/nathan/dotfiles/hypr/otf.conf
|
|
||||||
source = ~/.cache/wal/colors-hypr.conf
|
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
input {
|
|
||||||
kb_layout = us
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = yes
|
|
||||||
}
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
}
|
|
||||||
|
|
||||||
cursor {
|
|
||||||
no_hardware_cursors = true
|
|
||||||
}
|
|
||||||
|
|
||||||
general {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 4
|
|
||||||
border_size = 2
|
|
||||||
col.active_border = $color1 $color5 100deg
|
|
||||||
col.inactive_border = $color0
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
rounding = 2
|
|
||||||
|
|
||||||
blur {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#drop_shadow = yes
|
|
||||||
#shadow_range = 4
|
|
||||||
#shadow_render_power = 3
|
|
||||||
#col.shadow = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = yes
|
|
||||||
|
|
||||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
||||||
|
|
||||||
animation = windows, 1, 7, myBezier
|
|
||||||
animation = windowsOut, 1, 7, default, popin 80%
|
|
||||||
animation = border, 1, 10, default
|
|
||||||
animation = borderangle, 1, 8, default
|
|
||||||
animation = fade, 1, 7, default
|
|
||||||
animation = workspaces, 1, 6, default
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = yes # you probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
master {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_status = "master"
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
workspace_swipe = off
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
|
||||||
disable_hyprland_logo = false
|
|
||||||
disable_splash_rendering = true
|
|
||||||
force_default_wallpaper = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
# Binds
|
|
||||||
$mainMod = ALT
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, E, exec, colorPrefix kitty
|
|
||||||
|
|
||||||
bind = $mainMod, B, exec, firefox
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, B, exec, firefox --private-window
|
|
||||||
|
|
||||||
bind = $mainMod, Q, killactive,
|
|
||||||
|
|
||||||
bind = $mainMod, R, exec, colorPrefix kitty -e _systemRebuild
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild
|
|
||||||
|
|
||||||
bind = $mainMod, C, exec, colorPrefix kitty -e bash -c "cd ~/Projects/Olympus; nvim ~/Projects/Olympus/"
|
|
||||||
|
|
||||||
bind = $mainMod, F, exec, thunar
|
|
||||||
bind = $mainMod SHIFT, F, fullscreen
|
|
||||||
|
|
||||||
bind = $mainMod, semicolon, exec, colorPrefix kitty -e nvim ~
|
|
||||||
|
|
||||||
bind = $mainMod, Insert, exec, libreoffice &
|
|
||||||
|
|
||||||
bind = $mainMod, H, exec, bluetoothctl connect 88:D0:39:F9:83:CE
|
|
||||||
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, vlc &
|
|
||||||
|
|
||||||
bind = , Menu, exec, rofi -show drun
|
|
||||||
|
|
||||||
bind = $mainMod, Menu, exec, killall .ags-wrapped; ags &
|
|
||||||
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
|
||||||
|
|
||||||
bind = $mainMod, Z, togglesplit, # dwindle
|
|
||||||
|
|
||||||
bind = $mainMod, M, exec, spotify
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, M, exec, firefox soundcloud.com/you/library
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, M, exec, colorPrefix kitty -e ncmpcpp -s browser
|
|
||||||
|
|
||||||
bind = $mainMod, XF86AudioPlay, exec, mpc load casual
|
|
||||||
|
|
||||||
bind = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
|
|
||||||
bind = , XF86AudioPause, exec, playerctl pause
|
|
||||||
|
|
||||||
bind = , XF86AudioNext, exec, playerctl next
|
|
||||||
|
|
||||||
bind = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
|
|
||||||
bind = , XF86Launch2, exec, steam &
|
|
||||||
bind = $mainMod, XF86Launch2, exec, prismlauncher
|
|
||||||
|
|
||||||
bind = CTRL SHIFT, XF86Launch2, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
|
|
||||||
|
|
||||||
bind = , XF86Calculator, exec, geogebra
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, Print, exec, firefox localhost:631
|
|
||||||
bind = , Print, exec, grim -g "$(slurp)"
|
|
||||||
|
|
||||||
bind = $mainMod, Return, exec, vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland &
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, Return, exec, firefox https://discord.com/app
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, H, movefocus, l
|
|
||||||
bind = $mainMod, L, movefocus, r
|
|
||||||
bind = $mainMod, J, movefocus, u
|
|
||||||
bind = $mainMod, K, movefocus, d
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
bind = $mainMod, Home, workspace, 11
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, Home, movetoworkspace, 11
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, right, workspace, e+1
|
|
||||||
bind = $mainMod, left, workspace, e-1
|
|
||||||
|
|
||||||
#switch network connections
|
|
||||||
bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1
|
|
||||||
bind = CTRL SHIFT, 0, exec, nmcli connection up Hotspot
|
|
||||||
bind = CTRL SHIFT, 1, exec, nmcli connection up EagleNet
|
|
||||||
bind = CTRL SHIFT, 2, exec, nmcli connection up CXNK00813829
|
|
||||||
bind = CTRL SHIFT, 3, exec, nmcli connection up ATT9MhT2ql
|
|
||||||
|
|
||||||
#brightness keys
|
|
||||||
bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%
|
|
||||||
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
|
||||||
|
|
||||||
#volume keys
|
|
||||||
binde = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%+
|
|
||||||
binde = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 10%-
|
|
||||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle
|
|
||||||
bind = $mainMod, F9, exec, pavucontrol
|
|
||||||
|
|
||||||
#screen lock key
|
|
||||||
bind = $mainMod, F12, exec, swaylock
|
|
||||||
|
|
||||||
#logout shortcut
|
|
||||||
bind = CTRL ALT, Delete, exec, loginctl kill-session self
|
|
||||||
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bind = $mainMod SHIFT, J, movewindow, u
|
|
||||||
bind = $mainMod SHIFT, K, movewindow, d
|
|
||||||
bind = $mainMod SHIFT, H, movewindow, l
|
|
||||||
bind = $mainMod SHIFT, L, movewindow, r
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod SHIFT, mouse:272, resizewindow
|
|
||||||
|
|
||||||
$scratchpadsize = size 60% 80%
|
|
||||||
$scratchpad = class:^(scratchpad)$
|
|
||||||
|
|
||||||
windowrulev2 = float, $scratchpad
|
|
||||||
windowrulev2 = $scratchpadsize, $scratchpad
|
|
||||||
windowrulev2 = workspace special silent, $scratchpad
|
|
||||||
|
|
||||||
$kitty = class:^(scratchpad-kitty)$
|
|
||||||
|
|
||||||
windowrulev2 = float, $kitty
|
|
||||||
windowrulev2 = $scratchpadsize, $kitty
|
|
||||||
windowrulev2 = workspace special silent, $kitty
|
|
||||||
$nvim = class:^(scratchpad-nvim)$
|
|
||||||
|
|
||||||
windowrulev2 = float, $nvim
|
|
||||||
windowrulev2 = $scratchpadsize, $nvim
|
|
||||||
windowrulev2 = workspace special silent, $nvim
|
|
||||||
|
|
||||||
bind = $mainMod, N, exec, colorPrefix pypr toggle nvim
|
|
||||||
bind = $mainMod, E, exec, colorPrefix pypr toggle free
|
|
||||||
|
|
||||||
|
|
||||||
bind = CTRL SHIFT, Home, exec, ssh nathan@blunkall.us -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen
|
|
||||||
bind = CTRL SHIFT, Home, submap, clean
|
|
||||||
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, Home, submap, clean
|
|
||||||
|
|
||||||
submap = clean
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, Home, submap, reset
|
|
||||||
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
[pyprland]
|
|
||||||
plugins = [
|
|
||||||
"scratchpads"
|
|
||||||
]
|
|
||||||
|
|
||||||
[scratchpads.nvim]
|
|
||||||
animation = "fromTop"
|
|
||||||
command = "kitty --class scratchpad-nvim -e nvim ~/Projects"
|
|
||||||
lazy = false
|
|
||||||
class = "scratchpad-nvim"
|
|
||||||
margin = 100
|
|
||||||
multi = true
|
|
||||||
excludes = "*"
|
|
||||||
|
|
||||||
[scratchpads.free]
|
|
||||||
animation = "fromBottom"
|
|
||||||
command = "kitty --class scratchpad -e tmux"
|
|
||||||
class = "scratchpad"
|
|
||||||
lazy = false
|
|
||||||
margin = 100
|
|
||||||
multi = true
|
|
||||||
excludes = "*"
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
indicator
|
|
||||||
ignore-empty-password
|
|
||||||
indicator-thickness=10
|
|
||||||
indicator-radius=100
|
|
||||||
image=~/.cache/bg
|
|
||||||
clock
|
|
||||||
ring-color=33ddff55
|
|
||||||
key-hl-color=dd4444
|
|
||||||
line-color=00000000
|
|
||||||
inside-color=00000088
|
|
||||||
text-color=00a6f0
|
|
||||||
text-clear-color=daa520
|
|
||||||
ring-clear-color=002251
|
|
||||||
separator-color=00000000
|
|
||||||
grace=2
|
|
||||||
fade-in=0.5
|
|
||||||
@@ -1,279 +0,0 @@
|
|||||||
## Configuration file for CAVA.
|
|
||||||
# Remove the ; to change parameters.
|
|
||||||
|
|
||||||
|
|
||||||
[general]
|
|
||||||
|
|
||||||
# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0
|
|
||||||
; mode = normal
|
|
||||||
|
|
||||||
# Accepts only non-negative values.
|
|
||||||
; framerate = 60
|
|
||||||
|
|
||||||
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
|
|
||||||
# new as of 0.6.0 autosens of low values (dynamic range)
|
|
||||||
# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0
|
|
||||||
; autosens = 1
|
|
||||||
; overshoot = 20
|
|
||||||
|
|
||||||
# Manual sensitivity in %. If autosens is enabled, this will only be the initial value.
|
|
||||||
# 200 means double height. Accepts only non-negative values.
|
|
||||||
; sensitivity = 100
|
|
||||||
|
|
||||||
# The number of bars (0-512). 0 sets it to auto (fill up console).
|
|
||||||
# Bars' width and space between bars in number of characters.
|
|
||||||
; bars = 0
|
|
||||||
; bar_width = 2
|
|
||||||
; bar_spacing = 1
|
|
||||||
# bar_height is only used for output in "noritake" format
|
|
||||||
; bar_height = 32
|
|
||||||
|
|
||||||
# For SDL width and space between bars is in pixels, defaults are:
|
|
||||||
; bar_width = 20
|
|
||||||
; bar_spacing = 5
|
|
||||||
|
|
||||||
# sdl_glsl have these default values, they are only used to calulate max number of bars.
|
|
||||||
; bar_width = 1
|
|
||||||
; bar_spacing = 0
|
|
||||||
|
|
||||||
|
|
||||||
# Lower and higher cutoff frequencies for lowest and highest bars
|
|
||||||
# the bandwidth of the visualizer.
|
|
||||||
# Note: there is a minimum total bandwidth of 43Mhz x number of bars.
|
|
||||||
# Cava will automatically increase the higher cutoff if a too low band is specified.
|
|
||||||
; lower_cutoff_freq = 50
|
|
||||||
; higher_cutoff_freq = 10000
|
|
||||||
|
|
||||||
|
|
||||||
# Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and
|
|
||||||
# only check for input once per second. Cava will wake up once input is detected. 0 = disable.
|
|
||||||
; sleep_timer = 0
|
|
||||||
|
|
||||||
|
|
||||||
[input]
|
|
||||||
|
|
||||||
# Audio capturing method. Possible methods are: 'fifo', 'portaudio', 'pipewire', 'alsa', 'pulse', 'sndio', 'oss', 'jack' or 'shmem'
|
|
||||||
# Defaults to 'oss', 'pipewire', 'sndio', 'jack', 'pulse', 'alsa', 'portaudio' or 'fifo', in that order, dependent on what support cava was built with.
|
|
||||||
# On Mac it defaults to 'portaudio' or 'fifo'
|
|
||||||
# On windows this is automatic and no input settings are needed.
|
|
||||||
#
|
|
||||||
# All input methods uses the same config variable 'source'
|
|
||||||
# to define where it should get the audio.
|
|
||||||
#
|
|
||||||
# For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
|
|
||||||
# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
|
|
||||||
#
|
|
||||||
# For pipewire 'source' will be the object name or object.serial of the device to capture from.
|
|
||||||
# Both input and output devices are supported.
|
|
||||||
#
|
|
||||||
# For alsa 'source' will be the capture device.
|
|
||||||
# For fifo 'source' will be the path to fifo-file.
|
|
||||||
# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address
|
|
||||||
#
|
|
||||||
# For sndio 'source' will be a raw recording audio descriptor or a monitoring sub-device, e.g. 'rsnd/2' or 'snd/1'. Default: 'default'.
|
|
||||||
# README.md contains further information on how to setup CAVA for sndio.
|
|
||||||
#
|
|
||||||
# For oss 'source' will be the path to a audio device, e.g. '/dev/dsp2'. Default: '/dev/dsp', i.e. the default audio device.
|
|
||||||
# README.md contains further information on how to setup CAVA for OSS on FreeBSD.
|
|
||||||
#
|
|
||||||
# For jack 'source' will be the name of the JACK server to connect to, e.g. 'foobar'. Default: 'default'.
|
|
||||||
# README.md contains further information on how to setup CAVA for JACK.
|
|
||||||
#
|
|
||||||
; method = pulse
|
|
||||||
; source = auto
|
|
||||||
|
|
||||||
; method = pipewire
|
|
||||||
; source = auto
|
|
||||||
|
|
||||||
; method = alsa
|
|
||||||
; source = hw:Loopback,1
|
|
||||||
|
|
||||||
; method = fifo
|
|
||||||
; source = /tmp/mpd.fifo
|
|
||||||
|
|
||||||
; method = shmem
|
|
||||||
; source = /squeezelite-AA:BB:CC:DD:EE:FF
|
|
||||||
|
|
||||||
; method = portaudio
|
|
||||||
; source = auto
|
|
||||||
|
|
||||||
; method = sndio
|
|
||||||
; source = default
|
|
||||||
|
|
||||||
; method = oss
|
|
||||||
; source = /dev/dsp
|
|
||||||
|
|
||||||
; method = jack
|
|
||||||
; source = default
|
|
||||||
|
|
||||||
# The options 'sample_rate', 'sample_bits', 'channels' and 'autoconnect' can be configured for some input methods:
|
|
||||||
# sample_rate: fifo, pipewire, sndio, oss
|
|
||||||
# sample_bits: fifo, pipewire, sndio, oss
|
|
||||||
# channels: sndio, oss, jack
|
|
||||||
# autoconnect: jack
|
|
||||||
# Other methods ignore these settings.
|
|
||||||
#
|
|
||||||
# For 'sndio' and 'oss' they are only preferred values, i.e. if the values are not supported
|
|
||||||
# by the chosen audio device, the device will use other supported values instead.
|
|
||||||
# Example: 48000, 32 and 2, but the device only supports 44100, 16 and 1, then it
|
|
||||||
# will use 44100, 16 and 1.
|
|
||||||
#
|
|
||||||
; sample_rate = 44100
|
|
||||||
; sample_bits = 16
|
|
||||||
; channels = 2
|
|
||||||
; autoconnect = 2
|
|
||||||
|
|
||||||
|
|
||||||
[output]
|
|
||||||
|
|
||||||
# Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl'
|
|
||||||
# or 'sdl_glsl'.
|
|
||||||
# 'noncurses' (default) uses a buffer and cursor movements to only print
|
|
||||||
# changes from frame to frame in the terminal. Uses less resources and is less
|
|
||||||
# prone to tearing (vsync issues) than 'ncurses'.
|
|
||||||
#
|
|
||||||
# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data
|
|
||||||
# stream of the bar heights that can be used to send to other applications.
|
|
||||||
# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above.
|
|
||||||
#
|
|
||||||
# 'noritake' outputs a bitmap in the format expected by a Noritake VFD display
|
|
||||||
# in graphic mode. It only support the 3000 series graphical VFDs for now.
|
|
||||||
#
|
|
||||||
# 'sdl' uses the Simple DirectMedia Layer to render in a graphical context.
|
|
||||||
# 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or
|
|
||||||
# use one of the predefined ones.
|
|
||||||
; method = noncurses
|
|
||||||
|
|
||||||
# Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'.
|
|
||||||
# Default is 'bottom'. Other orientations are only supported on sdl and ncruses
|
|
||||||
# output. Note: many fonts have weird glyphs for 'top' and 'right' characters,
|
|
||||||
# which can make ncurses not look right.
|
|
||||||
; orientation = bottom
|
|
||||||
|
|
||||||
# Visual channels. Can be 'stereo' or 'mono'.
|
|
||||||
# 'stereo' mirrors both channels with low frequencies in center.
|
|
||||||
# 'mono' outputs left to right lowest to highest frequencies.
|
|
||||||
# 'mono_option' set mono to either take input from 'left', 'right' or 'average'.
|
|
||||||
# set 'reverse' to 1 to display frequencies the other way around.
|
|
||||||
; channels = stereo
|
|
||||||
; mono_option = average
|
|
||||||
; reverse = 0
|
|
||||||
|
|
||||||
# Raw output target. A fifo will be created if target does not exist.
|
|
||||||
; raw_target = /dev/stdout
|
|
||||||
|
|
||||||
# Raw data format. Can be 'binary' or 'ascii'.
|
|
||||||
; data_format = binary
|
|
||||||
|
|
||||||
# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530).
|
|
||||||
; bit_format = 16bit
|
|
||||||
|
|
||||||
# Ascii max value. In 'ascii' mode range will run from 0 to value specified here
|
|
||||||
; ascii_max_range = 1000
|
|
||||||
|
|
||||||
# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters.
|
|
||||||
# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)).
|
|
||||||
; bar_delimiter = 59
|
|
||||||
; frame_delimiter = 10
|
|
||||||
|
|
||||||
# sdl window size and position. -1,-1 is centered.
|
|
||||||
; sdl_width = 1000
|
|
||||||
; sdl_height = 500
|
|
||||||
; sdl_x = -1
|
|
||||||
; sdl_y= -1
|
|
||||||
; sdl_full_screen = 0
|
|
||||||
|
|
||||||
# set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none'
|
|
||||||
# 'frequency' displays the lower cut off frequency of the bar above.
|
|
||||||
# Only supported on ncurses and noncurses output.
|
|
||||||
; xaxis = none
|
|
||||||
|
|
||||||
# enable alacritty synchronized updates. 1 = on, 0 = off
|
|
||||||
# removes flickering in alacritty terminal emulator.
|
|
||||||
# defaults to off since the behaviour in other terminal emulators is unknown
|
|
||||||
; alacritty_sync = 0
|
|
||||||
|
|
||||||
# Shaders for sdl_glsl, located in $HOME/.config/cava/shaders
|
|
||||||
; vertex_shader = pass_through.vert
|
|
||||||
; fragment_shader = bar_spectrum.frag
|
|
||||||
|
|
||||||
; for glsl output mode, keep rendering even if no audio
|
|
||||||
; continuous_rendering = 0
|
|
||||||
|
|
||||||
# disable console blank (screen saver) in tty
|
|
||||||
# (Not supported on FreeBSD)
|
|
||||||
; disable_blanking = 0
|
|
||||||
|
|
||||||
# show a flat bar at the bottom of the screen when idle, 1 = on, 0 = off
|
|
||||||
; show_idle_bar_heads = 1
|
|
||||||
|
|
||||||
# show waveform instead of frequency spectrum, 1 = on, 0 = off
|
|
||||||
; waveform = 0
|
|
||||||
|
|
||||||
[color]
|
|
||||||
|
|
||||||
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
|
|
||||||
# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires
|
|
||||||
# a terminal that can change color definitions such as Gnome-terminal or rxvt.
|
|
||||||
# default is to keep current terminal color
|
|
||||||
; background = default
|
|
||||||
; foreground = default
|
|
||||||
|
|
||||||
# SDL and sdl_glsl only support hex code colors, these are the default:
|
|
||||||
; background = '#111111'
|
|
||||||
; foreground = '#33ffff'
|
|
||||||
|
|
||||||
|
|
||||||
# Gradient mode, only hex defined colors are supported,
|
|
||||||
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
|
||||||
# You can define as many as 8 different colors. They range from bottom to top of screen
|
|
||||||
gradient = 1
|
|
||||||
gradient_count = 8
|
|
||||||
gradient_color_1 = '{color1}'
|
|
||||||
gradient_color_2 = '{color2}'
|
|
||||||
gradient_color_3 = '{color3}'
|
|
||||||
gradient_color_4 = '{color4}'
|
|
||||||
gradient_color_5 = '{color5}'
|
|
||||||
gradient_color_6 = '{color6}'
|
|
||||||
gradient_color_7 = '{color7}'
|
|
||||||
gradient_color_8 = '{color8}'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[smoothing]
|
|
||||||
|
|
||||||
# Percentage value for integral smoothing. Takes values from 0 - 100.
|
|
||||||
# Higher values means smoother, but less precise. 0 to disable.
|
|
||||||
# DEPRECATED as of 0.8.0, use noise_reduction instead
|
|
||||||
; integral = 77
|
|
||||||
|
|
||||||
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
|
|
||||||
; monstercat = 0
|
|
||||||
; waves = 0
|
|
||||||
|
|
||||||
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
|
|
||||||
# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".
|
|
||||||
# DEPRECATED as of 0.8.0, use noise_reduction instead
|
|
||||||
; gravity = 100
|
|
||||||
|
|
||||||
|
|
||||||
# In bar height, bars that would have been lower that this will not be drawn.
|
|
||||||
# DEPRECATED as of 0.8.0
|
|
||||||
; ignore = 0
|
|
||||||
|
|
||||||
# Noise reduction, int 0 - 100. default 77
|
|
||||||
# the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth
|
|
||||||
# 100 will be very slow and smooth, 0 will be fast but noisy.
|
|
||||||
; noise_reduction = 77
|
|
||||||
|
|
||||||
|
|
||||||
[eq]
|
|
||||||
|
|
||||||
# This one is tricky. You can have as much keys as you want.
|
|
||||||
# Remember to uncomment more than one key! More keys = more precision.
|
|
||||||
# Look at readme.md on github for further explanations and examples.
|
|
||||||
; 1 = 1 # bass
|
|
||||||
; 2 = 1
|
|
||||||
; 3 = 1 # midtone
|
|
||||||
; 4 = 1
|
|
||||||
; 5 = 1 # treble
|
|
||||||
@@ -1,161 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
window.bar {{
|
|
||||||
background-color: {color1.rgba};
|
|
||||||
color: {color1.rgba};
|
|
||||||
opacity: 1;
|
|
||||||
|
|
||||||
}}
|
|
||||||
|
|
||||||
.playerbox {{
|
|
||||||
background-color: {color2};
|
|
||||||
color:rgb(73, 81, 121);
|
|
||||||
border: 3px solid black;
|
|
||||||
border-radius: 15px;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.launcher {{
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
}}
|
|
||||||
|
|
||||||
box {{
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
|
|
||||||
Window.SettingsWindow {{
|
|
||||||
background-color: black;
|
|
||||||
color: black;
|
|
||||||
}}
|
|
||||||
.settings_window {{
|
|
||||||
background-color: {color1.rgba};
|
|
||||||
border-radius: 15px;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.focused {{
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.other {{
|
|
||||||
color: {color3};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.media {{
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.media:active {{
|
|
||||||
background-color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
button {{
|
|
||||||
min-width: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
padding: 0px;
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
button:active {{
|
|
||||||
background-color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
button:hover {{
|
|
||||||
border-bottom: 3px solid {color3};
|
|
||||||
}}
|
|
||||||
|
|
||||||
label {{
|
|
||||||
font-weight: bold;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.workspaces button.focused {{
|
|
||||||
border-bottom: 3px solid {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.client-title {{
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.clock {{
|
|
||||||
color: {color11};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.notification {{
|
|
||||||
color: yellow;
|
|
||||||
}}
|
|
||||||
|
|
||||||
levelbar block,
|
|
||||||
highlight {{
|
|
||||||
min-height: 4px;
|
|
||||||
}}
|
|
||||||
|
|
||||||
/************************************/
|
|
||||||
|
|
||||||
window.notification-popups box.notifications {{
|
|
||||||
padding: .5em;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.icon {{
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
margin-right: 1em;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.icon image {{
|
|
||||||
font-size: 58px;
|
|
||||||
/* to center the icon */
|
|
||||||
margin: 5px;
|
|
||||||
color: yellow;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.icon box {{
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
border-radius: 7px;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.notificationbutton {{
|
|
||||||
color: {color3};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.notification {{
|
|
||||||
min-width: 350px;
|
|
||||||
border-radius: 11px;
|
|
||||||
padding: 1em;
|
|
||||||
margin: .5em;
|
|
||||||
border: 1px solid blue;
|
|
||||||
background-color: {color2};
|
|
||||||
}}
|
|
||||||
|
|
||||||
.notification.critical {{
|
|
||||||
border: 1px solid lightcoral;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.title {{
|
|
||||||
color: aqua;
|
|
||||||
font-size: 1.4em;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.body {{
|
|
||||||
color: teal;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.actions .action-button {{
|
|
||||||
margin: 0 .4em;
|
|
||||||
margin-top: .8em;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.actions .action-button:first-child {{
|
|
||||||
margin-left: 0;
|
|
||||||
}}
|
|
||||||
|
|
||||||
.actions .action-button:last-child {{
|
|
||||||
margin-right: 0;
|
|
||||||
}}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
--accent-color: {color7};
|
|
||||||
--border-color: {color3};
|
|
||||||
--background-1: rgba({color0.rgb}, 200);
|
|
||||||
--background-2: transparent;
|
|
||||||
--background-mentioned: {color3} !important;
|
|
||||||
--background-mentioned-hover: {color3} !important;
|
|
||||||
--background-modifier-hover: {color6} !important;
|
|
||||||
--background-modifier-active: {color3} !important;
|
|
||||||
--text-normal: {color1} !important;
|
|
||||||
--text-positive: {color2} !important;
|
|
||||||
--text-muted: {color3} !important;
|
|
||||||
--text-link: {color4} !important;
|
|
||||||
--button-background: {color5} !important;
|
|
||||||
--button-background-hover: {color0} !important;
|
|
||||||
--button-background-active: {color0} !important;
|
|
||||||
--button-accent-hover: {color0} !important;
|
|
||||||
--button-accent-active: {color5} !important;
|
|
||||||
--button-destructive: {color5} !important;
|
|
||||||
--button-destructive-hover: {color4} !important;
|
|
||||||
--button-destructive-active: {color4} !important;
|
|
||||||
--settings-icon-color: {color0} !important;
|
|
||||||
--tab-selected: {color2} !important;
|
|
||||||
--switch: {color1} !important;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
$foregroundCol = 0xff{foreground.strip}
|
|
||||||
$backgroundCol = 0xff{background.strip}
|
|
||||||
$color0 = 0xff{color0.strip}
|
|
||||||
$color1 = 0xff{color1.strip}
|
|
||||||
$color2 = 0xff{color2.strip}
|
|
||||||
$color3 = 0xff{color3.strip}
|
|
||||||
$color4 = 0xff{color4.strip}
|
|
||||||
$color5 = 0xff{color5.strip}
|
|
||||||
$color6 = 0xff{color6.strip}
|
|
||||||
$color7 = 0xff{color7.strip}
|
|
||||||
$color8 = 0xff{color8.strip}
|
|
||||||
$color9 = 0xff{color9.strip}
|
|
||||||
$color10 = 0xff{color10.strip}
|
|
||||||
$color11 = 0xff{color11.strip}
|
|
||||||
$color12 = 0xff{color12.strip}
|
|
||||||
$color13 = 0xff{color13.strip}
|
|
||||||
$color14 = 0xff{color14.strip}
|
|
||||||
$color15 = 0xff{color15.strip}
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
|
||||||
version = 3
|
|
||||||
final_space = true
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
c0 = '#0B0704'
|
|
||||||
c1 = '#846550'
|
|
||||||
c10 = '#636E90'
|
|
||||||
c11 = '#6FAEAC'
|
|
||||||
c12 = '#A5ADA2'
|
|
||||||
c13 = '#F1DCB7'
|
|
||||||
c14 = '#A1E7DA'
|
|
||||||
c15 = '#c2c1c0'
|
|
||||||
c2 = '#4a526c'
|
|
||||||
c3 = '#538281'
|
|
||||||
c4 = '#7b8179'
|
|
||||||
c5 = '#b4a589'
|
|
||||||
c6 = '#78ada3'
|
|
||||||
c7 = '#958d89'
|
|
||||||
c8 = '#665b54'
|
|
||||||
c9 = '#B1876B'
|
|
||||||
|
|
||||||
[secondary_prompt]
|
|
||||||
template = '❭❭ '
|
|
||||||
background = 'transparent'
|
|
||||||
|
|
||||||
[transient_prompt]
|
|
||||||
template = '{{ if gt .Code 0 }}!❭ {{else}}❭ {{end}}'
|
|
||||||
background = 'transparent'
|
|
||||||
foreground_templates = ['{{ if gt .Code 0 }}p:c13{{end}}', '{{ if eq .Code 0 }}p:c14{{end}}']
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = ' {{ .Icon }} '
|
|
||||||
foreground = 'p:c12'
|
|
||||||
background = 'p:c1'
|
|
||||||
type = 'os'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = '{{ .UserName }}@{{ .HostName }}'
|
|
||||||
foreground = 'p:c14'
|
|
||||||
background = 'p:c2'
|
|
||||||
type = 'session'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = '{{ .Path }}'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
background = 'p:c4'
|
|
||||||
type = 'path'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
style = 'full'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'right'
|
|
||||||
overflow = 'hidden'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
leading_diamond = ''
|
|
||||||
template = '{{ .FormattedMs }}'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
background = 'p:c4'
|
|
||||||
type = 'executiontime'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
leading_diamond = ''
|
|
||||||
foreground = 'p:c14'
|
|
||||||
background = 'p:c2'
|
|
||||||
type = 'time'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
leading_diamond = ''
|
|
||||||
foreground = 'p:c12'
|
|
||||||
background = 'p:c1'
|
|
||||||
type = 'shell'
|
|
||||||
style = 'diamond'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
template = '{{ if gt .Code 0 }}!❭ {{else}}❭ {{end}}'
|
|
||||||
background = 'transparent'
|
|
||||||
type = 'text'
|
|
||||||
style = 'plain'
|
|
||||||
foreground_templates = ['{{ if gt .Code 0 }}p:c13{{end}}', '{{ if eq .Code 0 }}p:c14{{end}}']
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
cache_duration = 'none'
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
|
|
||||||
pkgs-us = import inputs.nixpkgs-us {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./scripts
|
|
||||||
];
|
|
||||||
|
|
||||||
options.homeconfig.minimal = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
nixpkgs.config = lib.mkIf (!config.homeconfig.minimal) {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; let
|
|
||||||
pypkgs = ps: with ps; [
|
|
||||||
numpy
|
|
||||||
matplotlib
|
|
||||||
scipy
|
|
||||||
|
|
||||||
pandas
|
|
||||||
pyaudio
|
|
||||||
pyusb
|
|
||||||
debugpy
|
|
||||||
requests
|
|
||||||
];
|
|
||||||
|
|
||||||
in [
|
|
||||||
killall
|
|
||||||
btop
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
gcc
|
|
||||||
zulu
|
|
||||||
rsync
|
|
||||||
lxqt.lxqt-policykit
|
|
||||||
blueberry
|
|
||||||
wl-clipboard
|
|
||||||
xfce.thunar
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
curl
|
|
||||||
wget
|
|
||||||
] ++ (if !config.homeconfig.minimal then [
|
|
||||||
cava
|
|
||||||
android-tools
|
|
||||||
neovim-remote
|
|
||||||
handbrake
|
|
||||||
quickemu
|
|
||||||
bottles
|
|
||||||
|
|
||||||
(pkgs.python312.withPackages pypkgs)
|
|
||||||
|
|
||||||
brightnessctl
|
|
||||||
libdbusmenu-gtk3
|
|
||||||
lmms
|
|
||||||
#unfree {
|
|
||||||
geogebra
|
|
||||||
spotify
|
|
||||||
pkgs-us.rustdesk-flutter
|
|
||||||
#}
|
|
||||||
|
|
||||||
neofetch
|
|
||||||
pkgs-us.mpv
|
|
||||||
ncmpcpp
|
|
||||||
playerctl
|
|
||||||
mpc-cli
|
|
||||||
vlc
|
|
||||||
pavucontrol
|
|
||||||
ffmpeg
|
|
||||||
rpi-imager
|
|
||||||
tigervnc
|
|
||||||
keepassxc
|
|
||||||
|
|
||||||
#3D modeling/printing
|
|
||||||
blender
|
|
||||||
freecad-wayland
|
|
||||||
cura-appimage
|
|
||||||
|
|
||||||
#productivity
|
|
||||||
libreoffice
|
|
||||||
|
|
||||||
#games
|
|
||||||
prismlauncher
|
|
||||||
|
|
||||||
] else []);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeScripts.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeScripts.enable {
|
|
||||||
home.packages = [
|
|
||||||
|
|
||||||
#scripts
|
|
||||||
(pkgs.writeShellScriptBin "_systemRebuild" ''
|
|
||||||
${pkgs.nh}/bin/nh os switch --ask /home/nathan/Projects/Olympus
|
|
||||||
echo //////Enter to close//////
|
|
||||||
read
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "_homeRebuild" ''
|
|
||||||
${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/Olympus
|
|
||||||
echo //////Enter to close//////
|
|
||||||
read
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "randWallpaper" ''
|
|
||||||
file=$(ls /home/nathan/Pictures/Wallpaper/ | shuf -n 1)
|
|
||||||
setWallpaper /home/nathan/Pictures/Wallpaper/$file
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "setWallpaper" ''
|
|
||||||
img=''$(realpath ''${1:-~/.cache/bg})
|
|
||||||
${pkgs.swww}/bin/swww img ''$img
|
|
||||||
changeColors ''$img ''$2
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "changeColors" ''
|
|
||||||
|
|
||||||
if [[ $(ls ~/.cache/ | grep bga) != bga ]]; then
|
|
||||||
echo 100 > ~/.cache/bga
|
|
||||||
fi
|
|
||||||
|
|
||||||
alpha=''${2:-`cat ~/.cache/bga`}
|
|
||||||
|
|
||||||
img=''$(realpath ''${1:-~/.cache/bg})
|
|
||||||
|
|
||||||
if [[ $alpha -lt 0 ]]; then
|
|
||||||
$alpha=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $alpha -gt 100 ]]; then
|
|
||||||
$alpha=100
|
|
||||||
fi
|
|
||||||
|
|
||||||
wal -i $img -a $alpha --cols16 -n
|
|
||||||
|
|
||||||
echo $alpha > ~/.cache/bga
|
|
||||||
|
|
||||||
rm ~/.cache/bg
|
|
||||||
ln -s $img ~/.cache/bg
|
|
||||||
|
|
||||||
sleep 0.4
|
|
||||||
|
|
||||||
pywalfox update &
|
|
||||||
|
|
||||||
themecord > ~/.cache/_.txt && rm ~/.cache/_.txt
|
|
||||||
|
|
||||||
[[ $(pidof cava) != "" ]] && pkill -USR1 cava &
|
|
||||||
|
|
||||||
for i in $(ls /run/user/1000 | grep nvim); do nvr -s --servername /run/user/1000/$i --remote-send '<cmd>colorscheme pywal<CR>'; done
|
|
||||||
|
|
||||||
pkill -USR1 kitty
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "onSystemStart" ''
|
|
||||||
${pkgs.swww}/bin/swww-daemon &
|
|
||||||
randWallpaper &
|
|
||||||
ags &
|
|
||||||
pypr &
|
|
||||||
lxqt-policykit-agent &
|
|
||||||
# nmcli device wifi connect EagleNet password '~?C#@ZiH' &
|
|
||||||
hyprctl setcursor Bibata-Modern-Classic 16 &
|
|
||||||
sleep 3
|
|
||||||
hyprctl reload &
|
|
||||||
#tmux new-session -s hyprland
|
|
||||||
'')
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "colorPrefix" ''
|
|
||||||
exec -a "$0" "$@" &
|
|
||||||
sleep 0.4 && changeColors &
|
|
||||||
'')
|
|
||||||
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [ inputs.ags.homeManagerModules.default ];
|
|
||||||
|
|
||||||
options.homeconfig.ags.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.ags.enable {
|
|
||||||
programs.ags = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
gtksourceview
|
|
||||||
webkitgtk
|
|
||||||
accountsservice
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".config/ags/launcher.js".text = /*javascript*/ ''
|
|
||||||
function Launcher() {
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "launcher",
|
|
||||||
hpack: "center",
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: '${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake.png',
|
|
||||||
css: 'font-size: 24px;'
|
|
||||||
}),
|
|
||||||
on_primary_click: () => {Utils.execAsync('rofi -show drun')},
|
|
||||||
margin_left: 10,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Launcher
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.ags2.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.ags2.enable {
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.calcurse.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.calcurse.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
calcurse
|
|
||||||
libnotify
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./ags
|
|
||||||
./git
|
|
||||||
./nh
|
|
||||||
./hyprland
|
|
||||||
./terminal
|
|
||||||
./rofi
|
|
||||||
./pywal
|
|
||||||
./swaylock
|
|
||||||
./calcurse
|
|
||||||
./firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.firefox.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.firefox.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.firefox.package}/bin/firefox";
|
|
||||||
|
|
||||||
home.packages = lib.mkIf config.homeconfig.wal.enable [
|
|
||||||
pkgs.pywalfox-native
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts/pywalfox.json".text = let
|
|
||||||
pywalfox-wrapper = pkgs.writeShellScriptBin "pywalfox-wrapper" ''
|
|
||||||
${pkgs.pywalfox-native}/bin/pywalfox start
|
|
||||||
'';
|
|
||||||
in lib.replaceStrings [ "<path>" ] [
|
|
||||||
"${pywalfox-wrapper}/bin/pywalfox-wrapper"
|
|
||||||
] (lib.readFile "${pkgs.pywalfox-native}/lib/python3.12/site-packages/pywalfox/assets/manifest.json");
|
|
||||||
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.firefox;
|
|
||||||
|
|
||||||
profiles.nathan = {
|
|
||||||
search = {
|
|
||||||
default = "ddg";
|
|
||||||
privateDefault = "ddg";
|
|
||||||
};
|
|
||||||
bookmarks = {
|
|
||||||
force = true;
|
|
||||||
settings = [
|
|
||||||
{
|
|
||||||
name = "toolbar";
|
|
||||||
toolbar = true;
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "NixOS Search - Packages";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [
|
|
||||||
ublock-origin
|
|
||||||
keepassxc-browser
|
|
||||||
pywalfox
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.git.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.git.enable {
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
secrets = {
|
|
||||||
"git/username" = {};
|
|
||||||
"git/email" = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
templates.gitconfig.content = ''
|
|
||||||
[user]
|
|
||||||
name = "${config.sops.placeholder."git/username"}"
|
|
||||||
email = "${config.sops.placeholder."git/email"}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
includes = [
|
|
||||||
{ path = "${config.sops.templates.gitconfig.path}"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
init = {
|
|
||||||
defaultBranch = "master";
|
|
||||||
};
|
|
||||||
url = {
|
|
||||||
"ssh://gitea@gitea.blunkall.us/" = {
|
|
||||||
insteadOf = [
|
|
||||||
"blunkall:"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.hyprland.enable {
|
|
||||||
|
|
||||||
home.sessionVariables.NIX_OZONE_WL = "1";
|
|
||||||
|
|
||||||
programs.kitty.enable = lib.mkDefault true;
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
pyprland
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
variables = [ "--all" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = let
|
|
||||||
monitor = if config.homeconfig.host == "laptop" then ''
|
|
||||||
monitor=eDP-1,1920x1080@300,0x0,1
|
|
||||||
'' else if config.homeconfig.host == "homebox" then ''
|
|
||||||
monitor=HDMI-A-2,1920x1080@60,0x0,1
|
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
|
||||||
exec-once=hyprctl keyword monitor HDMI-A-2,disable
|
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
|
||||||
'' else '''';
|
|
||||||
in monitor + ''
|
|
||||||
source = /home/nathan/.config/hypr/main.conf
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.nh.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.nh.enable {
|
|
||||||
|
|
||||||
programs.nh = {
|
|
||||||
enable = true;
|
|
||||||
flake = "${config.home.homeDirectory}/Projects/Olympus";
|
|
||||||
|
|
||||||
clean = {
|
|
||||||
enable = true;
|
|
||||||
dates = "weekly";
|
|
||||||
extraArgs = "--keep 5 --keep-since 5d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wal.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wal.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
|
|
||||||
inputs.themecord.packages.${pkgs.system}.default
|
|
||||||
vesktop
|
|
||||||
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.pywal
|
|
||||||
|
|
||||||
pywal16
|
|
||||||
imagemagick
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.rofi.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.rofi.enable {
|
|
||||||
programs.rofi = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.rofi-wayland;
|
|
||||||
|
|
||||||
cycle = true;
|
|
||||||
|
|
||||||
theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.swaylock.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.swaylock.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ swaylock-effects ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.bat = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs.bat-extras; [
|
|
||||||
batman
|
|
||||||
batpipe
|
|
||||||
batgrep
|
|
||||||
batdiff
|
|
||||||
batwatch
|
|
||||||
prettybat
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./bat
|
|
||||||
./eza
|
|
||||||
./fzf
|
|
||||||
./tmux
|
|
||||||
./kitty
|
|
||||||
./zoxide
|
|
||||||
./zsh
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.eza = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
extraOptions = [
|
|
||||||
"--color=auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
git = true;
|
|
||||||
|
|
||||||
icons = "auto";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.fzf = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
#enableShellIntegration = true;
|
|
||||||
|
|
||||||
#shellIntegrationOptions = [];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
font = {
|
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 12;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
|
|
||||||
confirm_os_window_close 0
|
|
||||||
|
|
||||||
include ${config.home.homeDirectory}/.cache/wal/colors-kitty.conf
|
|
||||||
|
|
||||||
disable_ligatures never
|
|
||||||
|
|
||||||
dynamic_background_opacity yes
|
|
||||||
|
|
||||||
tab_bar_edge top
|
|
||||||
|
|
||||||
map ctrl+shift+t new_tab
|
|
||||||
map ctrl+shift+w close_tab
|
|
||||||
|
|
||||||
map ctrl+tab next_tab
|
|
||||||
map ctrl+shift+tab previous_tab
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.tmux = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
clock24 = true;
|
|
||||||
|
|
||||||
mouse = true;
|
|
||||||
|
|
||||||
baseIndex = 1;
|
|
||||||
|
|
||||||
keyMode = "vi";
|
|
||||||
|
|
||||||
prefix = "C-b";
|
|
||||||
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.zoxide = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
options = [
|
|
||||||
"--cmd cd"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
git:
|
|
||||||
username: ENC[AES256_GCM,data:418z4cCK,iv:tgPmynsW8fEJs6n+OGfm6IypOjNNhVdVaqFImeKXpC4=,tag:V5zI47vb9FnSO/OWurbJ+A==,type:str]
|
|
||||||
email: ENC[AES256_GCM,data:xp6HlIO1pTgvrXpGAOQwl0UvcnY4zrLrmw==,iv:LzGkluWeSe8MQqPXQMnNOv062UY+BkQE1fGjGqd/nCg=,tag:Y9nwo+Hjcg4ea2GxGKWApA==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- recipient: age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
|
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA3dER2bmZjYUhlNHpvVVNY
|
|
||||||
dlFYdU1KVzQ0WGhtUlRyRUtMdldqdC9nNm1JCjdJU3pqQ2x2NE52Qm15MUw4d2lv
|
|
||||||
MjM4V3lBQ1o5MWl2MDRrTlJLWFFHRjAKLS0tIHhpUld3NXh4RzdKajJWMzM2a3gy
|
|
||||||
VU4xSytSZHgzd3pocUdOZmFTTVg4OXMKPkk9mbu6POQNwy+6jAhgv3t/DAN1n+Jo
|
|
||||||
xK0s1Ni1FKPU4mvQUsIN2v6y3Nircfr15CfzThjpIBoLtBOyoRhXrw==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
- recipient: age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
|
|
||||||
enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByM3lvcDM4Z0VJMGVBK1lU
|
|
||||||
Y0g1bTE2U3ZiN0E3NUJ0QVlQSUdlSDh6NjNNCmRVZjQ4VWJSM3g4S2Q1TnRWbjZG
|
|
||||||
TVVKUkJTWS9nUGN0Uy9LQ1V0YlpLeWsKLS0tIHRCWkxFTUhNQ21wYVBUL0k4d25h
|
|
||||||
RWNTdys0VnV1V0ZHL3R1N0NvdGFOTjAKQtM4wMzD9Lr9G9o1sp0Ud7LsxnTXzyV9
|
|
||||||
yQ5fxn5lmef7SAPAYVvkU7IH1uhtVyfH9SwsM+EnHdcQWO/lNQp+hg==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
lastmodified: "2025-08-16T16:08:48Z"
|
|
||||||
mac: ENC[AES256_GCM,data:3/ztJNXhOIPqgQ47QxjM5KTeAJwXPpUuVtvI5/xJsMOOZhXYRt+uhL584F98rJiMHhnbsuGIZi+jGlYRiE6c+GJ9X7TKLj9yRqKvCMSCdWHGzY721GH5kMPcjD2YDYZ4tt+olIMePNJBPjC1XJgfhfOvs43o2HyDTCS95cEQzB4=,iv:qofZBAwxbTrc/hPyuSi8nxibJ0bGhoytZpUTZwwzbuI=,tag:z1SJXutJmlJ+j6RnV4u29Q==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.10.2
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{}: {}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{ ... }: {
|
|
||||||
imports = [
|
|
||||||
./mpd
|
|
||||||
./wayvnc
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
homeconfig.mpd.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.mpd.enable {
|
|
||||||
services.mpd = {
|
|
||||||
enable = true;
|
|
||||||
network.startWhenNeeded = true;
|
|
||||||
network.port = 6600;
|
|
||||||
network.listenAddress = "127.0.0.1";
|
|
||||||
musicDirectory = "/home/nathan/Music";
|
|
||||||
extraConfig = ''
|
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "Audio1"
|
|
||||||
}
|
|
||||||
audio_output {
|
|
||||||
type "fifo"
|
|
||||||
name "visualizer"
|
|
||||||
path "/tmp/mpd.fifo"
|
|
||||||
format "44100:16:1"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.mpdris2 = {
|
|
||||||
enable = true;
|
|
||||||
mpd.host = "127.0.0.1";
|
|
||||||
mpd.port = 6600;
|
|
||||||
package = pkgs.mpdris2;
|
|
||||||
mpd.musicDirectory = "/home/nathan/Music";
|
|
||||||
notifications = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wayvnc.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
disabledModules = [
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
(import "${inputs.home-manager-us}/modules/services/wayvnc.nix" {
|
|
||||||
inherit config;
|
|
||||||
inherit lib;
|
|
||||||
pkgs = (import inputs.nixpkgs-us { system = "x86_64-linux"; });
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
novnc
|
|
||||||
];
|
|
||||||
|
|
||||||
services.wayvnc = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
address = "0.0.0.0";
|
|
||||||
|
|
||||||
port = 5900;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
imports = [ inputs.ags.homeManagerModules.default ];
|
|
||||||
|
|
||||||
options.homeconfig.ags.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.ags.enable {
|
|
||||||
programs.ags = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
gtksourceview
|
|
||||||
webkitgtk
|
|
||||||
accountsservice
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".config/ags/launcher.js".text = /*javascript*/ ''
|
|
||||||
function Launcher() {
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "launcher",
|
|
||||||
hpack: "center",
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: '${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake.png',
|
|
||||||
css: 'font-size: 24px;'
|
|
||||||
}),
|
|
||||||
on_primary_click: () => {Utils.execAsync('rofi -show drun')},
|
|
||||||
margin_left: 10,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Launcher
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.ags2.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.ags2.enable {
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,19 +1,19 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
{ config, lib, pkgs, inputs, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./ags
|
|
||||||
./git
|
./git
|
||||||
./nh
|
./nh
|
||||||
./hyprland
|
./hyprland
|
||||||
|
./hyprpanel
|
||||||
./terminal
|
./terminal
|
||||||
./rofi
|
./rofi
|
||||||
./pywal
|
./pywal
|
||||||
./swaylock
|
./hyprlock
|
||||||
./calcurse
|
./calcurse
|
||||||
./firefox
|
./firefox
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf (config.homeconfig.host != "android") {
|
||||||
|
|
||||||
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
home.packages = lib.mkIf (!config.homeconfig.wal.enable) [
|
||||||
inputs.nixvim.packages.${pkgs.system}.default
|
inputs.nixvim.packages.${pkgs.system}.default
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
search = {
|
search = {
|
||||||
default = "ddg";
|
default = "ddg";
|
||||||
privateDefault = "ddg";
|
privateDefault = "ddg";
|
||||||
|
force = true;
|
||||||
};
|
};
|
||||||
bookmarks = {
|
bookmarks = {
|
||||||
force = true;
|
force = true;
|
||||||
|
|||||||
@@ -15,6 +15,18 @@
|
|||||||
pyprland
|
pyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.activation.extraHyprFile = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ]]; then
|
||||||
|
touch ${config.home.homeDirectory}/.config/hypr/otf.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then
|
||||||
|
cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background
|
||||||
|
chmod 600 ${config.home.homeDirectory}/.config/background
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -24,18 +36,29 @@
|
|||||||
variables = [ "--all" ];
|
variables = [ "--all" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = let
|
extraConfig = (if config.homeconfig.host == "laptop" then ''
|
||||||
monitor = if config.homeconfig.host == "laptop" then ''
|
bind = CTRL SHIFT, XF86Launch2, exec, bash -c 'if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then pkexec --user root /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else pkexec --user root /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi'
|
||||||
monitor=eDP-1,1920x1080@300,0x0,1
|
bind = ALT, Escape, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
|
||||||
'' else if config.homeconfig.host == "homebox" then ''
|
'' else if config.homeconfig.host == "homebox" then ''
|
||||||
monitor=HDMI-A-2,1920x1080@60,0x0,1
|
monitor=HDMI-A-2,1920x1080@60,0x0,1
|
||||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
||||||
exec-once=hyprctl output create headless HEADLESS-2
|
exec-once=hyprctl output create headless HEADLESS-2
|
||||||
exec-once=hyprctl keyword monitor HDMI-A-2,disable
|
exec-once=hyprctl keyword monitor HDMI-A-2,disable
|
||||||
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
||||||
'' else '''';
|
'' else if config.homeconfig.host == "container" then ''
|
||||||
in monitor + ''
|
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
||||||
source = /home/nathan/.config/hypr/main.conf
|
exec-once=hyprctl output create headless HEADLESS-2
|
||||||
|
exec-once=${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 -o HEADLESS-2
|
||||||
|
'' else ''
|
||||||
|
monitor= , prefered, auto, 1
|
||||||
|
'') + (if config.homeconfig.hyprpanel.enable then ''
|
||||||
|
bind = , Print, exec, bash -c ${pkgs.hyprpanel}/share/scripts/screenshot.sh"
|
||||||
|
'' else ''
|
||||||
|
bind = , Print, exec, grim -g "$(slurp)"
|
||||||
|
'') + ''
|
||||||
|
source = ${config.home.homeDirectory}/.config/hypr/main.conf
|
||||||
|
|
||||||
|
exec-shutdown = if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid; fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
52
home-manager/programs/hyprlock/default.nix
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
options.homeconfig.hyprlock.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.homeconfig.hyprlock.enable {
|
||||||
|
|
||||||
|
programs.hyprlock = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
general = {
|
||||||
|
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||||
|
after_sleep_cmd = "hyprctl --instance 0 dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
|
};
|
||||||
|
|
||||||
|
listener = [
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 150; # 2.5min.
|
||||||
|
on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
|
on-resume = "brightnessctl -r"; # monitor backlight restore.
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 300; # 5min
|
||||||
|
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 330; # 5.5min
|
||||||
|
on-timeout = "hyprctl --instance 0 dispatch dpms off"; # screen off when timeout has passed
|
||||||
|
on-resume = "hyprctl --instance 0 dispatch dpms on && brightnessctl -r"; # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
timeout = 1800; # 30min
|
||||||
|
on-timeout = "systemctl suspend"; # suspend pc
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options.homeconfig.hyprpanel.enable = lib.mkOption {
|
options.homeconfig.hyprpanel.enable = with lib; mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
programs.hyprpanel = {
|
programs.hyprpanel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,6 @@
|
|||||||
config = lib.mkIf config.homeconfig.wal.enable {
|
config = lib.mkIf config.homeconfig.wal.enable {
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
inputs.themecord.packages.${pkgs.system}.default
|
|
||||||
vesktop
|
|
||||||
|
|
||||||
inputs.nixvim.packages.${pkgs.system}.pywal
|
inputs.nixvim.packages.${pkgs.system}.pywal
|
||||||
|
|
||||||
pywal16
|
pywal16
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.swaylock.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.swaylock.enable {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ swaylock-effects ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -5,9 +5,12 @@
|
|||||||
./bash
|
./bash
|
||||||
./eza
|
./eza
|
||||||
./fzf
|
./fzf
|
||||||
|
./lf
|
||||||
./tmux
|
./tmux
|
||||||
./kitty
|
./kitty
|
||||||
./zoxide
|
./zoxide
|
||||||
./zsh
|
./zsh
|
||||||
|
./ssh
|
||||||
|
./ohmyposh
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
7
home-manager/programs/terminal/lf/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ ... }: {
|
||||||
|
config = {
|
||||||
|
programs.lf = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -6,37 +6,11 @@
|
|||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ls = "eza";
|
|
||||||
ll = "ls -l";
|
|
||||||
|
|
||||||
ksh = "kitten ssh";
|
|
||||||
|
|
||||||
vi = "nvim";
|
|
||||||
vim = "nvim";
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
history = {
|
|
||||||
size = 5000;
|
|
||||||
ignoreAllDups = true;
|
|
||||||
ignoreSpace = true;
|
|
||||||
share = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
||||||
'') else (lib.mkBefore ''
|
'') else (lib.mkBefore ''
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/zsh/ohmyposh.toml)"
|
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
};
|
};
|
||||||
8
home-manager/programs/terminal/ssh/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
oh-my-posh
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -23,6 +19,8 @@
|
|||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
|
|
||||||
|
python = "python3.13";
|
||||||
|
python3 = "python3.13";
|
||||||
};
|
};
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
@@ -31,128 +29,5 @@
|
|||||||
ignoreSpace = true;
|
ignoreSpace = true;
|
||||||
share = true;
|
share = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
||||||
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
||||||
'') else (lib.mkBefore ''
|
|
||||||
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.config/zsh/ohmyposh.toml)"
|
|
||||||
'');
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/wal/templates/ohmyposh.toml".text = ''
|
|
||||||
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
|
||||||
|
|
||||||
version = 2
|
|
||||||
final_space = true
|
|
||||||
console_title_template = '{{{{ .Shell }}}} in {{{{ .Folder }}}}'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'os'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c1'
|
|
||||||
foreground = 'p:c12'
|
|
||||||
template = ' {{{{ .Icon }}}} '
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'session'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c2'
|
|
||||||
foreground = 'p:c14'
|
|
||||||
template = '{{{{ .UserName }}}}@{{{{ .HostName }}}}'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'path'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
background = 'p:c4'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
template = '{{{{ .Path }}}}'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
style = 'full'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
overflow = 'hidden'
|
|
||||||
alignment = 'right'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'executiontime'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c4'
|
|
||||||
foreground = 'p:c13'
|
|
||||||
template = '{{{{ .FormattedMs }}}}'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'time'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c2'
|
|
||||||
foreground = 'p:c14'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'shell'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
background = 'p:c1'
|
|
||||||
foreground = 'p:c12'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'text'
|
|
||||||
style = 'plain'
|
|
||||||
background = 'transparent'
|
|
||||||
foreground_templates = [
|
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
|
||||||
]
|
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
|
||||||
|
|
||||||
[transient_prompt]
|
|
||||||
foreground_templates = [
|
|
||||||
"{{{{ if gt .Code 0 }}}}p:c13{{{{end}}}}",
|
|
||||||
"{{{{ if eq .Code 0 }}}}p:c14{{{{end}}}}",
|
|
||||||
]
|
|
||||||
background = 'transparent'
|
|
||||||
template = "{{{{ if gt .Code 0 }}}}!❭ {{{{else}}}}❭ {{{{end}}}}"
|
|
||||||
|
|
||||||
[secondary_prompt]
|
|
||||||
background = 'transparent'
|
|
||||||
forground = 'p:c14'
|
|
||||||
template = "❭❭ "
|
|
||||||
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
|
|
||||||
c0 = "{color0}"
|
|
||||||
c1 = "{color1}"
|
|
||||||
c2 = "{color2}"
|
|
||||||
c3 = "{color3}"
|
|
||||||
c4 = "{color4}"
|
|
||||||
c5 = "{color5}"
|
|
||||||
c6 = "{color6}"
|
|
||||||
c7 = "{color7}"
|
|
||||||
c8 = "{color8}"
|
|
||||||
c9 = "{color9}"
|
|
||||||
c10 = "{color10}"
|
|
||||||
c11 = "{color11}"
|
|
||||||
c12 = "{color12}"
|
|
||||||
c13 = "{color13}"
|
|
||||||
c14 = "{color14}"
|
|
||||||
c15 = "{color15}"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./mpd
|
./mpd
|
||||||
./wayvnc
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.wayvnc.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
disabledModules = [
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
(import "${inputs.home-manager-us}/modules/services/wayvnc.nix" {
|
|
||||||
inherit config;
|
|
||||||
inherit lib;
|
|
||||||
pkgs = (import inputs.nixpkgs-us { system = "x86_64-linux"; });
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
novnc
|
|
||||||
];
|
|
||||||
|
|
||||||
services.wayvnc = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
address = "0.0.0.0";
|
|
||||||
|
|
||||||
port = 5900;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -38,30 +38,37 @@
|
|||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
defaultSopsFormat = "yaml";
|
defaultSopsFormat = "yaml";
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
nix = {
|
nix = lib.mkIf config.homeconfig.standalone.enable {
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
builders = ''
|
builders = "ssh://builder x86_64-linux,aarch64-linux /run/secrets/remoteBuildKey 1 1 nixos-test,benchmark,big-parallel,kvm - -";
|
||||||
ssh://remote-builder@blunkall.us
|
|
||||||
'';
|
|
||||||
builders-use-substituters = true;
|
builders-use-substituters = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ssh.matchBlocks = {
|
|
||||||
"builder" = {
|
|
||||||
hostname = "blunkall.us";
|
|
||||||
user = "remote-builder";
|
|
||||||
identityFile = config.sops.secrets."".path;
|
|
||||||
port = 2222;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
services.mpris-proxy.enable = true;
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
programs.ssh.enable = true;
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"builder" = {
|
||||||
|
hostname = "blunkall.us";
|
||||||
|
user = "remote-builder";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 2222;
|
||||||
|
};
|
||||||
|
|
||||||
|
"remote" = {
|
||||||
|
hostname = "blunkall.us";
|
||||||
|
user = "nathan";
|
||||||
|
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
|
port = 2222;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
0
home-manager/users/nathan/dotfiles/Wallpaper/galaxy.jpg
Executable file → Normal file
|
Before Width: | Height: | Size: 1007 KiB After Width: | Height: | Size: 1007 KiB |
@@ -1,15 +0,0 @@
|
|||||||
|
|
||||||
# Starter Config
|
|
||||||
|
|
||||||
if suggestions don't work, first make sure
|
|
||||||
you have TypeScript LSP working in your editor
|
|
||||||
|
|
||||||
if you do not want typechecking only suggestions
|
|
||||||
|
|
||||||
```json
|
|
||||||
// tsconfig.json
|
|
||||||
"checkJs": false
|
|
||||||
```
|
|
||||||
|
|
||||||
types are symlinked to:
|
|
||||||
/home/nathan/.nix-profile/share/com.github.Aylur.ags/types
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
const bluetooth = await Service.import("bluetooth")
|
|
||||||
|
|
||||||
|
|
||||||
export function ConnectedList() {
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "btdevices",
|
|
||||||
setup: self => self.hook(bluetooth, self => {
|
|
||||||
self.children = bluetooth.connected_devices
|
|
||||||
.map(({ address, icon_name, name }) => Widget.EventBox({
|
|
||||||
child: Widget.Icon(icon_name + '-symbolic'),
|
|
||||||
tooltip_text: name,
|
|
||||||
on_primary_click: () => {
|
|
||||||
bluetooth.getDevice(address).setConnection(false)
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
self.visible = bluetooth.connected_devices.length > 0;
|
|
||||||
}, 'notify::connected-devices'),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default function Bluetooth() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
tooltip_text: bluetooth.bind('enabled').as(on => on ? 'Enabled' : 'Disabled'),
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: bluetooth.bind('enabled').as(on =>
|
|
||||||
`bluetooth-${on ? 'active' : 'disabled'}-symbolic`),
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
const date = Variable("", {
|
|
||||||
poll: [1000, 'date "+%H:%M %b %e."'],
|
|
||||||
})
|
|
||||||
|
|
||||||
function Clock() {
|
|
||||||
return Widget.Label({
|
|
||||||
class_name: "clock",
|
|
||||||
label: date.bind(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Clock
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
|
|
||||||
const hyprland = await Service.import("hyprland")
|
|
||||||
//const systemtray = await Service.import("systemtray")
|
|
||||||
|
|
||||||
import Clock from './clock.js'
|
|
||||||
import Launcher from './launcher.js'
|
|
||||||
import Media from './media.js'
|
|
||||||
import Notification from './notif.js'
|
|
||||||
import Power from './power.js'
|
|
||||||
import Workspaces from './workspaces.js'
|
|
||||||
import Settings, {SettingsWindow} from './settings.js'
|
|
||||||
import { ConnectedList } from './bluetooth.js'
|
|
||||||
|
|
||||||
import { NotificationPopups } from './notification.js'
|
|
||||||
|
|
||||||
|
|
||||||
// widgets can be only assigned as a child in one container
|
|
||||||
// so to make a reuseable widget, make it a function
|
|
||||||
// then you can simply instantiate one by calling it
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
// layout of the bar
|
|
||||||
function Left() {
|
|
||||||
return Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
Launcher(),
|
|
||||||
Workspaces(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Center() {
|
|
||||||
return Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
Media(),
|
|
||||||
Clock(),
|
|
||||||
Notification(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Right() {
|
|
||||||
return Widget.Box({
|
|
||||||
hpack: "end",
|
|
||||||
spacing: 8,
|
|
||||||
margin_bottom: 5,
|
|
||||||
children: [
|
|
||||||
ConnectedList(),
|
|
||||||
Settings(),
|
|
||||||
Power(),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
|
||||||
//windows
|
|
||||||
|
|
||||||
function Bar(monitor = 0) {
|
|
||||||
return Widget.Window({
|
|
||||||
name: `bar-${monitor}`, // name has to be unique
|
|
||||||
class_name: "bar",
|
|
||||||
monitor,
|
|
||||||
anchor: ["top", "left", "right"],
|
|
||||||
height_request: 32,
|
|
||||||
vexpand: false,
|
|
||||||
exclusivity: "exclusive",
|
|
||||||
child: Widget.CenterBox({
|
|
||||||
start_widget: Left(),
|
|
||||||
center_widget: Center(),
|
|
||||||
end_widget: Right(),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function pickMonitor() {
|
|
||||||
|
|
||||||
let n = 0
|
|
||||||
|
|
||||||
for(let i = 0; i < hyprland.monitors.length; i++) {
|
|
||||||
print(hyprland.getMonitor(i).name)
|
|
||||||
if(hyprland.getMonitor(i).name == 'eDP-1')
|
|
||||||
n = i
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
//App config
|
|
||||||
|
|
||||||
let m = 0
|
|
||||||
|
|
||||||
App.config({
|
|
||||||
style: "/home/nathan/.cache/wal/colors-ags.css",
|
|
||||||
windows: [
|
|
||||||
Bar(m),
|
|
||||||
SettingsWindow(m),
|
|
||||||
NotificationPopups(m)
|
|
||||||
// you can call it, for each monitor
|
|
||||||
// Bar(0),
|
|
||||||
// Bar(1)
|
|
||||||
],
|
|
||||||
})
|
|
||||||
|
|
||||||
App.toggleWindow(App.windows[1].name)
|
|
||||||
|
|
||||||
// Utils.timeout(100, () => Utils.notify({
|
|
||||||
// summary: "Notification Popup Example",
|
|
||||||
// iconName: "info-symbolic",
|
|
||||||
// body: "Lorem ipsum dolor sit amet, qui minim labore adipisicing "
|
|
||||||
// + "minim sint cillum sint consectetur cupidatat.",
|
|
||||||
// actions: {
|
|
||||||
// "Cool": () => print("pressed Cool"),
|
|
||||||
// },
|
|
||||||
// }))
|
|
||||||
|
|
||||||
Utils.monitorFile(`/home/nathan/.cache/wal`, () => {
|
|
||||||
const css = `/home/nathan/.cache/wal/colors-ags.css`
|
|
||||||
App.resetCss()
|
|
||||||
App.applyCss(css)
|
|
||||||
})
|
|
||||||
|
|
||||||
export { }
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
const mpris = await Service.import("mpris")
|
|
||||||
|
|
||||||
|
|
||||||
export default function Media() {
|
|
||||||
const track = Utils.watch("", mpris, "player-changed", () => {
|
|
||||||
if (mpris.players[0]) {
|
|
||||||
const { track_artists, track_title } = mpris.players[0]
|
|
||||||
return `${track_artists.join(", ")} -${track_title}`
|
|
||||||
} else {
|
|
||||||
return "Nothing is playing"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "media",
|
|
||||||
on_primary_click: () => mpris.getPlayer("")?.playPause(),
|
|
||||||
on_scroll_up: () => mpris.getPlayer("")?.next(),
|
|
||||||
on_scroll_down: () => mpris.getPlayer("")?.previous(),
|
|
||||||
child: Widget.Icon({icon: 'emblem-music-symbolic'}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function PlayerImg(player) {
|
|
||||||
return Widget.Box({
|
|
||||||
hpack: "start",
|
|
||||||
width_request: 80,
|
|
||||||
height_request: 80,
|
|
||||||
css: player.bind("track_cover_url").transform(p => `
|
|
||||||
background-image: url('${p || player.cover_path || '/home/nathan/Pictures/symbols/audio.png'}');
|
|
||||||
background-size: contain;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
`),
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function PlayerGUI(player) {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "playerbox",
|
|
||||||
height_request: 200,
|
|
||||||
vexpand: false,
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
margin: 15,
|
|
||||||
hpack: "start",
|
|
||||||
spacing: 20,
|
|
||||||
children: [
|
|
||||||
PlayerImg(player),
|
|
||||||
Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind('track-title').as(t => t)
|
|
||||||
}),
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind("track_artists").transform(a => a.join(", ")),
|
|
||||||
wrap: true,
|
|
||||||
}),
|
|
||||||
Widget.Label({
|
|
||||||
hpack: "start",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: player.bind('track-album').as(t => t)
|
|
||||||
}),
|
|
||||||
]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
|
|
||||||
}),
|
|
||||||
|
|
||||||
Widget.Slider({
|
|
||||||
class_name: "position",
|
|
||||||
draw_value: false,
|
|
||||||
on_change: ({ value }) => player.position = value * player.length,
|
|
||||||
visible: player.bind("length").as(l => l > 0),
|
|
||||||
setup: self => {
|
|
||||||
function update() {
|
|
||||||
const value = player.position / player.length
|
|
||||||
self.value = value > 0 ? value : 0
|
|
||||||
}
|
|
||||||
self.hook(player, update)
|
|
||||||
self.hook(player, update, "position")
|
|
||||||
self.poll(1000, update)
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
|
|
||||||
Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
hpack: "center",
|
|
||||||
spacing: 20,
|
|
||||||
children: [
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: 'media-skip-backward-symbolic'}),
|
|
||||||
on_primary_click: () => player.previous()
|
|
||||||
}),
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: player.bind("play_back_status").transform(s => {
|
|
||||||
switch (s) {
|
|
||||||
case "Playing": return 'media-playback-pause-symbolic'
|
|
||||||
case "Paused":
|
|
||||||
case "Stopped": return 'media-playback-start-symbolic'
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
on_primary_click: () => player.playPause(),
|
|
||||||
}),
|
|
||||||
Widget.Button({
|
|
||||||
child: Widget.Icon({ icon: 'media-skip-forward-symbolic'}),
|
|
||||||
on_primary_click: () => player.next()
|
|
||||||
})
|
|
||||||
]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
setup: self => {
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function Players() {
|
|
||||||
|
|
||||||
const plrs = mpris.bind('players')
|
|
||||||
.as(p => p.map((v) => PlayerGUI(v)))
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: plrs,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
const notifications = await Service.import("notifications")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// we don't need dunst or any other notification daemon
|
|
||||||
// because the Notifications module is a notification daemon itself
|
|
||||||
export default function Notification() {
|
|
||||||
const popups = notifications.bind("popups")
|
|
||||||
return Widget.EventBox({
|
|
||||||
class_name: "notificationbutton",
|
|
||||||
visible: true,
|
|
||||||
on_primary_click: () => {},
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: "preferences-system-notifications-symbolic",
|
|
||||||
}),
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Widget.Label({
|
|
||||||
// label: popups.as(p => p[0]?.summary || ""),
|
|
||||||
// }),
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
const notifications = await Service.import("notifications")
|
|
||||||
|
|
||||||
/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */
|
|
||||||
function NotificationIcon({ app_entry, app_icon, image }) {
|
|
||||||
if (image) {
|
|
||||||
return Widget.Box({
|
|
||||||
css: `background-image: url("${image}");`
|
|
||||||
+ "background-size: contain;"
|
|
||||||
+ "background-repeat: no-repeat;"
|
|
||||||
+ "background-position: center;",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let icon = "dialog-information-symbolic"
|
|
||||||
if (Utils.lookUpIcon(app_icon))
|
|
||||||
icon = app_icon
|
|
||||||
|
|
||||||
if (app_entry && Utils.lookUpIcon(app_entry))
|
|
||||||
icon = app_entry
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
child: Widget.Icon(icon),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */
|
|
||||||
function Notification(n) {
|
|
||||||
const icon = Widget.Box({
|
|
||||||
vpack: "start",
|
|
||||||
class_name: "icon",
|
|
||||||
child: NotificationIcon(n),
|
|
||||||
})
|
|
||||||
|
|
||||||
const title = Widget.Label({
|
|
||||||
class_name: "title",
|
|
||||||
xalign: 0,
|
|
||||||
justification: "left",
|
|
||||||
hexpand: true,
|
|
||||||
max_width_chars: 24,
|
|
||||||
truncate: "end",
|
|
||||||
wrap: true,
|
|
||||||
label: n.summary,
|
|
||||||
use_markup: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const body = Widget.Label({
|
|
||||||
class_name: "body",
|
|
||||||
hexpand: true,
|
|
||||||
use_markup: true,
|
|
||||||
xalign: 0,
|
|
||||||
justification: "left",
|
|
||||||
label: n.body,
|
|
||||||
wrap: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const actions = Widget.Box({
|
|
||||||
class_name: "actions",
|
|
||||||
children: n.actions.map(({ id, label }) => Widget.Button({
|
|
||||||
class_name: "action-button",
|
|
||||||
on_clicked: () => {
|
|
||||||
n.invoke(id)
|
|
||||||
n.dismiss()
|
|
||||||
},
|
|
||||||
hexpand: true,
|
|
||||||
child: Widget.Label(label),
|
|
||||||
})),
|
|
||||||
})
|
|
||||||
|
|
||||||
return Widget.EventBox(
|
|
||||||
{
|
|
||||||
attribute: { id: n.id },
|
|
||||||
on_primary_click: n.dismiss,
|
|
||||||
},
|
|
||||||
Widget.Box(
|
|
||||||
{
|
|
||||||
class_name: `notification ${n.urgency}`,
|
|
||||||
vertical: true,
|
|
||||||
},
|
|
||||||
Widget.Box([
|
|
||||||
icon,
|
|
||||||
Widget.Box(
|
|
||||||
{ vertical: true },
|
|
||||||
title,
|
|
||||||
body,
|
|
||||||
),
|
|
||||||
]),
|
|
||||||
actions,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function NotificationPopups(monitor = 0) {
|
|
||||||
const list = Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: notifications.popups.map(Notification),
|
|
||||||
})
|
|
||||||
|
|
||||||
function onNotified(_, /** @type {number} */ id) {
|
|
||||||
const n = notifications.getNotification(id)
|
|
||||||
if (n)
|
|
||||||
list.children = [Notification(n), ...list.children]
|
|
||||||
}
|
|
||||||
|
|
||||||
function onDismissed(_, /** @type {number} */ id) {
|
|
||||||
list.children.find(n => n.attribute.id === id)?.destroy()
|
|
||||||
}
|
|
||||||
|
|
||||||
list.hook(notifications, onNotified, "notified")
|
|
||||||
.hook(notifications, onDismissed, "dismissed")
|
|
||||||
|
|
||||||
return Widget.Window({
|
|
||||||
monitor,
|
|
||||||
name: `notifications${monitor}`,
|
|
||||||
class_name: "notification-popups",
|
|
||||||
anchor: ["top", "right"],
|
|
||||||
layer: "overlay",
|
|
||||||
child: Widget.Box({
|
|
||||||
css: "min-width: 2px; min-height: 2px;",
|
|
||||||
class_name: "notifications",
|
|
||||||
vertical: true,
|
|
||||||
child: list,
|
|
||||||
|
|
||||||
/** this is a simple one liner that could be used instead of
|
|
||||||
hooking into the 'notified' and 'dismissed' signals.
|
|
||||||
but its not very optimized becuase it will recreate
|
|
||||||
the whole list everytime a notification is added or dismissed */
|
|
||||||
// children: notifications.bind('popups')
|
|
||||||
// .as(popups => popups.map(Notification))
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Power() {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
vertical: false,
|
|
||||||
spacing: 8,
|
|
||||||
children: [
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-reboot-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'restart',
|
|
||||||
tooltip_text: 'restart',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('reboot')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-log-out-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'logout',
|
|
||||||
tooltip_text: 'log out',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('loginctl kill-session self')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-lock-screen-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'lockscreen',
|
|
||||||
tooltip_text: 'lock screen',
|
|
||||||
on_primary_click: () => {Utils.exec('swaylock')},
|
|
||||||
}),
|
|
||||||
Widget.EventBox({
|
|
||||||
child: Widget.Icon({icon: 'system-shutdown-symbolic'}),
|
|
||||||
margin_right: 10,
|
|
||||||
class_name: 'poweroff',
|
|
||||||
tooltip_text: 'shutdown',
|
|
||||||
on_primary_click: () => {App.Quit(); Utils.execAsync('shutdown now')},
|
|
||||||
})
|
|
||||||
],
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default Power
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
const audio = await Service.import("audio")
|
|
||||||
const battery = await Service.import("battery")
|
|
||||||
const mpris = await Service.import("mpris")
|
|
||||||
|
|
||||||
import Bluetooth from "./bluetooth.js"
|
|
||||||
import WifiIndicator from "./wifi.js"
|
|
||||||
import { Players } from "./media.js"
|
|
||||||
|
|
||||||
export function Volume() {
|
|
||||||
const icons = {
|
|
||||||
101: "high",
|
|
||||||
67: "high",
|
|
||||||
34: "medium",
|
|
||||||
1: "low",
|
|
||||||
0: "muted",
|
|
||||||
}
|
|
||||||
|
|
||||||
function getIcon() {
|
|
||||||
const icon = audio.speaker.is_muted ? 0 : [101, 67, 34, 1, 0].find(
|
|
||||||
threshold => threshold <= audio.speaker.volume * 100)
|
|
||||||
|
|
||||||
return `audio-volume-${icons[icon]}-symbolic`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.EventBox({
|
|
||||||
tooltip_text: '',
|
|
||||||
setup: (self) => self.hook(audio.speaker, () => {
|
|
||||||
self.tooltip_text = `Volume: ${(100 * audio.speaker.volume).toFixed(0)}%`
|
|
||||||
}),
|
|
||||||
child: Widget.Icon({
|
|
||||||
class_name: "volume",
|
|
||||||
icon: Utils.watch(getIcon(), audio.speaker, getIcon),
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// const slider = Widget.Slider({
|
|
||||||
// hexpand: true,
|
|
||||||
// draw_value: false,
|
|
||||||
// inverted: true,
|
|
||||||
// on_change: ({ value }) => audio.speaker.volume = value,
|
|
||||||
// setup: (self) => self.hook(audio.speaker, () => {
|
|
||||||
// self.value = audio.speaker.volume || 0
|
|
||||||
// }),
|
|
||||||
// })
|
|
||||||
|
|
||||||
|
|
||||||
export function BatteryLabel() {
|
|
||||||
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0)
|
|
||||||
const icon = battery.bind("percent").as(p =>
|
|
||||||
`battery-${p > 90 ? "full" : p > 70 ? "good" : p > 50 ? "medium" : p > 30 ? "low" : p > 10 ? "caution" : "empty"}-symbolic`)
|
|
||||||
|
|
||||||
return Widget.Box({
|
|
||||||
class_name: "battery",
|
|
||||||
visible: battery.bind("available"),
|
|
||||||
child: Widget.EventBox({
|
|
||||||
child: Widget.Icon({ icon }),
|
|
||||||
tooltip_text: value.as(p => `Battery: ${(p * 100).toFixed(0)}%`)
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function Panel() {
|
|
||||||
return Widget.Box({
|
|
||||||
height_request: 200,
|
|
||||||
css: 'background: black;',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SettingsWindow(monitor = 0) {
|
|
||||||
return Widget.Window({
|
|
||||||
monitor,
|
|
||||||
name: `Settings-${monitor}`,
|
|
||||||
anchor: ["top", "bottom", "right"],
|
|
||||||
margins: [50, 0, 10, 0],
|
|
||||||
width_request: 400,
|
|
||||||
exclusivity: "ignore",
|
|
||||||
layer: "top",
|
|
||||||
class_name: "SettingsWindow",
|
|
||||||
child: Widget.Box({
|
|
||||||
class_name: "settings_window",
|
|
||||||
child: Widget.Scrollable({
|
|
||||||
vscroll: "always",
|
|
||||||
hscroll: "never",
|
|
||||||
hexpand: true,
|
|
||||||
vexpand: true,
|
|
||||||
margin: 20,
|
|
||||||
child: Widget.Box({
|
|
||||||
vertical: true,
|
|
||||||
children: [
|
|
||||||
Panel(),
|
|
||||||
Players()
|
|
||||||
]
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export default function Settings() {
|
|
||||||
|
|
||||||
|
|
||||||
return Widget.Button({
|
|
||||||
tooltip_text: 'Settings',
|
|
||||||
attribute: false,
|
|
||||||
margin_right: 8,
|
|
||||||
child: Widget.Box({
|
|
||||||
spacing: 8,
|
|
||||||
children: [
|
|
||||||
Bluetooth(),
|
|
||||||
WifiIndicator(),
|
|
||||||
BatteryLabel(),
|
|
||||||
Volume(),
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
on_clicked: (self) => {
|
|
||||||
self.attribute = !self.attribute
|
|
||||||
|
|
||||||
App.toggleWindow(App.windows[1].name)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
window.bar {
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
window.win {
|
|
||||||
background-color: transparent;
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.booox {
|
|
||||||
color: white;
|
|
||||||
background-color: white;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.playerbox {
|
|
||||||
background-color: rgb(73, 81, 121);
|
|
||||||
color:rgb(73, 81, 121);
|
|
||||||
border: 3px solid black;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.launcher {
|
|
||||||
color: aqua;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
box {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Window.SettingsWindow {
|
|
||||||
background-color: black;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
.settings_window {
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
color: teal;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.focused {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.other {
|
|
||||||
color: teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media {
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media:active {
|
|
||||||
background-color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
min-width: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
padding: 0px;
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:active {
|
|
||||||
background-color: aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:hover {
|
|
||||||
border-bottom: 3px solid teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspaces button.focused {
|
|
||||||
border-bottom: 3px solid aqua;
|
|
||||||
}
|
|
||||||
|
|
||||||
.client-title {
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.clock {
|
|
||||||
color: rgb(200, 200, 200);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification {
|
|
||||||
color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
levelbar block,
|
|
||||||
highlight {
|
|
||||||
min-height: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************/
|
|
||||||
|
|
||||||
window.notification-popups box.notifications {
|
|
||||||
padding: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon image {
|
|
||||||
font-size: 58px;
|
|
||||||
/* to center the icon */
|
|
||||||
margin: 5px;
|
|
||||||
color: yellow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon box {
|
|
||||||
min-width: 68px;
|
|
||||||
min-height: 68px;
|
|
||||||
border-radius: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notificationbutton {
|
|
||||||
color: teal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification {
|
|
||||||
min-width: 350px;
|
|
||||||
border-radius: 11px;
|
|
||||||
padding: 1em;
|
|
||||||
margin: .5em;
|
|
||||||
border: 1px solid blue;
|
|
||||||
background-color: rgb(36, 40, 59);
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification.critical {
|
|
||||||
border: 1px solid lightcoral;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
color: black;
|
|
||||||
font-size: 1.4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button {
|
|
||||||
margin: 0 .4em;
|
|
||||||
margin-top: .8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button:first-child {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .action-button:last-child {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
const network = await Service.import('network')
|
|
||||||
|
|
||||||
export default function WifiIndicator() {
|
|
||||||
return Widget.Box({
|
|
||||||
child: Widget.EventBox({
|
|
||||||
child: Widget.Icon({
|
|
||||||
icon: 'network-wireless-disconnected-symbolic',
|
|
||||||
}),
|
|
||||||
|
|
||||||
setup: self => self.hook(network.wifi, () => {
|
|
||||||
self.child.icon = network.wifi.icon_name == 'network-wireless-disabled-symbolic' ? 'network-wireless-disconnected-symbolic' : network.wifi.icon_name
|
|
||||||
self.tooltip_text = network.wifi.ssid ? network.wifi.ssid : network.wifi.internet
|
|
||||||
}),
|
|
||||||
|
|
||||||
tooltip_text: 'disconnected',
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// const WiredIndicator = () => Widget.Icon({
|
|
||||||
// icon: network.wired.bind('icon_name'),
|
|
||||||
// })
|
|
||||||
|
|
||||||
// const NetworkIndicator = () => Widget.Stack({
|
|
||||||
// children: {
|
|
||||||
// wifi: WifiIndicator(),
|
|
||||||
// wired: WiredIndicator(),
|
|
||||||
// },
|
|
||||||
// shown: network.bind('primary').as(p => p || 'wifi'),
|
|
||||||
// })
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
const hyprland = await Service.import("hyprland")
|
|
||||||
|
|
||||||
|
|
||||||
function ClientTitle() {
|
|
||||||
return Widget.Label({
|
|
||||||
class_name: "client-title",
|
|
||||||
max_width_chars: 30,
|
|
||||||
truncate: "end",
|
|
||||||
label: hyprland.active.client.bind("title"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function Workspaces() {
|
|
||||||
const activeId = hyprland.active.workspace.bind("id")
|
|
||||||
const workspaces = hyprland.bind("workspaces")
|
|
||||||
.as(ws => ws.map(({ id }) => id > 0 ? Widget.Button({
|
|
||||||
on_clicked: () => hyprland.messageAsync(`dispatch workspace ${id}`),
|
|
||||||
child: Widget.Label(`${id}`),
|
|
||||||
class_name: activeId.as(i => `${i === id ? "focused" : "other"}`),
|
|
||||||
margin_left: 10,
|
|
||||||
}) : null
|
|
||||||
).sort((a, b) => { return a && b ? Number(a.child.label) - Number(b.child.label) : a ? -1 : 1 }))
|
|
||||||
|
|
||||||
return Widget.CenterBox({
|
|
||||||
|
|
||||||
spacing: 8,
|
|
||||||
start_widget: Widget.Box({
|
|
||||||
class_name: "workspaces",
|
|
||||||
spacing: 0,
|
|
||||||
children: workspaces
|
|
||||||
}),
|
|
||||||
end_widget: ClientTitle(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Workspaces
|
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/ags" = { source = ./ags; recursive = true; };
|
".config/hypr" = lib.mkIf config.homeconfig.hyprland.enable { source = ./hypr; recursive = true; };
|
||||||
".config/hypr" = { source = ./hypr; recursive = true; };
|
".config/hyprpanel" = lib.mkIf config.homeconfig.hyprpanel.enable { source = ./hyprpanel; recursive = true; };
|
||||||
".config/swaylock" = { source = ./swaylock; recursive = true; };
|
".config/wal/templates" = lib.mkIf config.homeconfig.wal.enable { source = ./wal/templates; recursive = true; };
|
||||||
".config/wal/templates" = { source = ./wal/templates; recursive = true; };
|
|
||||||
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
".config/ohmyposh" = { source = ./ohmyposh; recursive = true; };
|
||||||
"Pictures/Wallpaper" = { source = ./Wallpaper; recursive = true; };
|
"Pictures/Wallpaper" = lib.mkIf config.homeconfig.graphical { source = ./Wallpaper; recursive = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||