Compare commits
3 Commits
a1490e90b7
...
2d014546bd
Author | SHA1 | Date | |
---|---|---|---|
2d014546bd | |||
e94eb28e54 | |||
0c5259fac4 |
96
flake.lock
96
flake.lock
@ -320,11 +320,11 @@
|
||||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1663678795,
|
||||
"narHash": "sha256-SkROcpe7lb46fpBnwMYooExP6WqttsRPeao1d9ykHho=",
|
||||
"lastModified": 1664882193,
|
||||
"narHash": "sha256-uiAYOxN/M4dpaB6ieY3xOvOH6XgHP9NVXDTzSRa3pMc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "dream2nix",
|
||||
"rev": "0f3b6c5dd1630d601ae6f456421b4dfed178f260",
|
||||
"rev": "785b76894263fd76a0e69955e4cd990b7b735bdf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -381,11 +381,11 @@
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664455278,
|
||||
"narHash": "sha256-RxeLR9NQnWW2VsROMIrPhiqQ7qHXmDqyKlxNs23B45E=",
|
||||
"lastModified": 1664638652,
|
||||
"narHash": "sha256-3mPHAFecDyP1Rgjshjyn1u5EsdjZun9DofnVbtlfRJk=",
|
||||
"owner": "elkowar",
|
||||
"repo": "eww",
|
||||
"rev": "91d55cb3051b007b480aa3cf1bc4ac63f09eff75",
|
||||
"rev": "0cccd9d74f0bda19f8409549588db274eba0d393",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -586,11 +586,11 @@
|
||||
"rust-overlay": "rust-overlay_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664475105,
|
||||
"narHash": "sha256-+Q7jyAMgXcCba6Z+2oA1ahXWKkmMqn0dPgz9t3DyEiQ=",
|
||||
"lastModified": 1666357885,
|
||||
"narHash": "sha256-DemaXcgFATQmft2PsoY6SewraST/Y5V8CuGjDD8vs9g=",
|
||||
"owner": "helix-editor",
|
||||
"repo": "helix",
|
||||
"rev": "8a7a6e4cff1db3ef65a2c20e0e90c60b44516e27",
|
||||
"rev": "79ef39ab3a41c32fcdcb660df6ee60aeb1eb80e6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -607,11 +607,11 @@
|
||||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664449551,
|
||||
"narHash": "sha256-iTStJtZB1+MppkT+95Ckqy2NDaISb+QcUkOAa0DS0io=",
|
||||
"lastModified": 1666253070,
|
||||
"narHash": "sha256-MtaNgghmfp+ywh5mv9FcspFT4ACaYINSN+D98PCkrP0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "864ff685fe6443101a0a8f3950d21bcb4330e56a",
|
||||
"rev": "c485669ca529e01c1505429fa9017c9a93f15559",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -629,11 +629,11 @@
|
||||
"wlroots": "wlroots"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664477193,
|
||||
"narHash": "sha256-W8pe+3wrAUjtexyd6ve4qZGLOWzfqqXKyieY3Q3ntsY=",
|
||||
"lastModified": 1666345512,
|
||||
"narHash": "sha256-/45v91bYl9hbEJSgYu51ep9ZyoEHlZDE44gotGZfO4M=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "da40bf823f2f307e439f4bd85c405d9e612c2df5",
|
||||
"rev": "b71d7c9007d77f78a403075b99adf8e9d43bf125",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -649,11 +649,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664384946,
|
||||
"narHash": "sha256-zqpXujNioqibBBkVT2BQSa/l3GQRGZRZbcY69vpRpVU=",
|
||||
"lastModified": 1666104453,
|
||||
"narHash": "sha256-gMH11FNZtnU7d+pIkwg9NmumJ6YvxyUP9Do43YKrd/E=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"rev": "63ebc34d0c2398e33bc97d065e3790abc5e1f070",
|
||||
"rev": "5b21c74a3200ffdd48ed7764c7041d43c3cd5588",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -737,11 +737,11 @@
|
||||
"rust-overlay": "rust-overlay_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664360253,
|
||||
"narHash": "sha256-QXXzd6SYgpuFGcr6D8gtALC2V23kPIT4IkSM0eU6MJI=",
|
||||
"lastModified": 1664831215,
|
||||
"narHash": "sha256-Oo0y/333YyeW9zeYQyiUUay7q7GK/Uu/FdEa6+5c4Pk=",
|
||||
"owner": "oxalica",
|
||||
"repo": "nil",
|
||||
"rev": "d2a22b8460279a001bf070bcd6da660bda9c8bd7",
|
||||
"rev": "756be130c8cda1d02c3681299ce372c97cc7d0bd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -776,11 +776,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664206072,
|
||||
"narHash": "sha256-VPKsLlfSfsJ4GsvtrcFdXiR5VUcsl1jFyKSxB4qvcf8=",
|
||||
"lastModified": 1665496492,
|
||||
"narHash": "sha256-CFR9423s2TalOHYEw+6r7v8FmtABKB4NVNQMjwXXt8g=",
|
||||
"owner": "matthewcroughan",
|
||||
"repo": "nixinate",
|
||||
"rev": "efa632418053bbbaf5b8cf8215c14b699830e3e1",
|
||||
"rev": "bc620b8f801f4d0dcb2a1fb6d061fff0d585d4a5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -791,11 +791,11 @@
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1664452918,
|
||||
"narHash": "sha256-SfnQ2t5b9RTSIqO3PQBDlwrWn4l3t0F65sZtCKTl8eA=",
|
||||
"lastModified": 1665987993,
|
||||
"narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "12f905b731494bc59010f05a7467df8abdcf8d63",
|
||||
"rev": "0e6593630071440eb89cd97a52921497482b22c6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -850,11 +850,11 @@
|
||||
"nixpkgs-wayland": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1664477139,
|
||||
"narHash": "sha256-YYb3KDl7JWrQNjGQX9rBlpLl7bsAvDxooKHMiim28YA=",
|
||||
"lastModified": 1665858291,
|
||||
"narHash": "sha256-aqazSjyKXnHu0PF7K1Y4i6E4UK/w+BTC5NTu+FvPg/c=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "494999730de678ee83c3caadfee8e0b77719060d",
|
||||
"rev": "1e4635a232db95976217590c77f5d76a91a87f61",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -881,11 +881,11 @@
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1664370076,
|
||||
"narHash": "sha256-NDnIo0nxJozLwEw0VPM+RApMA90uTfbvaNNtC5eB7Os=",
|
||||
"lastModified": 1666282307,
|
||||
"narHash": "sha256-O1T2HGLARLKDLfdOmjPBfn3eC4cSIaQD71wUN4I/6/s=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "854fdc68881791812eddd33b2fed94b954979a8e",
|
||||
"rev": "b7d8c687782c8f9a1d425a7e486eb989654f6468",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -897,11 +897,11 @@
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1664475443,
|
||||
"narHash": "sha256-l3Re7eo0vOwTQTcJPrXQStG4i4of2eKkdDdDG96z1ZA=",
|
||||
"lastModified": 1666358658,
|
||||
"narHash": "sha256-xNszm7yHrsF7hLzvHYUIrvM69U1uNNK3vddGjFAgk0w=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "05e2f3d002a53eeb192d5e8521c6d38f24609681",
|
||||
"rev": "6c1a3c3e533118ef6466718dd389896c47cf588d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -1063,11 +1063,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1663815552,
|
||||
"narHash": "sha256-J4j/d69SGKx1qripBCINe7T3SUtMM1sdj5PoHRThV5Q=",
|
||||
"lastModified": 1664734860,
|
||||
"narHash": "sha256-Agin7U5+AhlVqPCZAhlAMlRnoV7rGIZXtDsPspF/DRg=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "f45f856ae5a9fe2c48d756fa17bb9c5b3b8070c5",
|
||||
"rev": "5db6b63124ccedd61e896ec98def85fb4e6668f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -1124,11 +1124,11 @@
|
||||
"webcord": "webcord_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664817607,
|
||||
"narHash": "sha256-1c9doRBUy61lrkA5MTRF4xIE9VcnBxfWUGzXMnMm0CM=",
|
||||
"lastModified": 1666097086,
|
||||
"narHash": "sha256-6WKh4NwItcz9IGY5rGkkeWCtGOmpU3nf85dX29suDjE=",
|
||||
"owner": "fufexan",
|
||||
"repo": "webcord-flake",
|
||||
"rev": "6fdcb79b9aa692acf95c2c9e05b7cd7fa426a385",
|
||||
"rev": "9098504f2a08ac848ea43de40496925c450e7111",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -1140,11 +1140,11 @@
|
||||
"webcord_2": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1663533822,
|
||||
"narHash": "sha256-TvlaaWu40La+CRD2+zXXRmyAF6LEU63eH/BuEQgUiQ4=",
|
||||
"lastModified": 1664742535,
|
||||
"narHash": "sha256-QoXBlhCM97haNlkbU4O2oXITnzrkiM9hYAiNpduVjIQ=",
|
||||
"owner": "SpacingBat3",
|
||||
"repo": "WebCord",
|
||||
"rev": "2df618b4669eaca06b2f635145d1293a612fa24c",
|
||||
"rev": "cb6938bde4f57b252b167b23fc0c2d6120326fff",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -1157,11 +1157,11 @@
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"host": "gitlab.freedesktop.org",
|
||||
"lastModified": 1663507239,
|
||||
"narHash": "sha256-LISZtkPVe8lQ2N8YwVe+KxCkXWLP9mdw6Q2kG93wE8A=",
|
||||
"lastModified": 1665405587,
|
||||
"narHash": "sha256-lVL48azhjGA/oEIcUSZQNwomNs0EzPxCcjgzyDST0PM=",
|
||||
"owner": "wlroots",
|
||||
"repo": "wlroots",
|
||||
"rev": "2ad25b1460400e66ea26bd6489b04072be7d9dbb",
|
||||
"rev": "221ee83d440fb7dcbfd141ef3a459a5a973331b6",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
services.joycond.enable = true;
|
||||
}
|
6
hosts/tkaronto/modules/weylus.nix
Normal file
6
hosts/tkaronto/modules/weylus.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.weylus = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
@ -1,18 +1,26 @@
|
||||
{lib, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.gnome = {
|
||||
gnome-keyring.enable = true;
|
||||
core-shell.enable = true;
|
||||
core-os-services.enable = true;
|
||||
at-spi2-core.enable = true;
|
||||
chrome-gnome-shell.enable = false;
|
||||
gnome-online-accounts.enable = false;
|
||||
gnome-online-miners.enable = lib.mkForce false;
|
||||
gnome-browser-connector.enable = true;
|
||||
gnome-online-accounts.enable = true;
|
||||
gnome-online-miners.enable = true;
|
||||
tracker-miners.enable = true;
|
||||
tracker.enable = true;
|
||||
sushi.enable = true;
|
||||
gnome-remote-desktop.enable = false;
|
||||
core-utilities.enable = false;
|
||||
tracker-miners.enable = false;
|
||||
tracker.enable = false;
|
||||
gnome-settings-daemon.enable = lib.mkForce false;
|
||||
sushi.enable = false;
|
||||
};
|
||||
services.tumbler.enable = true;
|
||||
programs = {
|
||||
geary.enable = lib.mkForce false;
|
||||
gnome-terminal.enable = true;
|
||||
evince.enable = true;
|
||||
};
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
@ -37,4 +45,6 @@
|
||||
"autovt@tty1".enable = false;
|
||||
};
|
||||
services.power-profiles-daemon.enable = false;
|
||||
environment.systemPackages = with pkgs; [gnome.gnome-tweaks ffmpegthumbnailer webp-pixbuf-loader];
|
||||
environment.gnome.excludePackages = with pkgs; [gnome-console gnome-tour gnome.gnome-maps];
|
||||
}
|
||||
|
16
modules/de/greetd/default.nix
Normal file
16
modules/de/greetd/default.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{pkgs, ...}: {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
terminal.vt = 1;
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --issue --time --cmd 'apply-hm-env Hyprland'";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services = {
|
||||
"getty@tty1".enable = false;
|
||||
"autovt@tty1".enable = false;
|
||||
};
|
||||
}
|
@ -15,7 +15,7 @@ in {
|
||||
];
|
||||
home.packages = let
|
||||
pkg = inputs.webcord.packages.${pkgs.system}.webcord.override {
|
||||
flags = "--add-css-theme=${theme}";
|
||||
flags = ["--add-css-theme=${theme}"];
|
||||
};
|
||||
in [pkg];
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ in {
|
||||
alignment = "center";
|
||||
corner_radius = 16;
|
||||
follow = "mouse";
|
||||
font = config.settings.font.fullName;
|
||||
font = config.settings.font.regular.fullName;
|
||||
format = "<b>%s</b>\\n%b";
|
||||
frame_width = 1;
|
||||
offset = "5x5";
|
||||
|
@ -1,8 +1,7 @@
|
||||
.calendar-window {
|
||||
@include wshadow;
|
||||
.calendar-win {
|
||||
@include window;
|
||||
background-color: $bg;
|
||||
border: 1px solid $border;
|
||||
border-radius: 16px;
|
||||
color: $fg;
|
||||
padding: .2em;
|
||||
}
|
||||
@ -12,7 +11,6 @@ calendar {
|
||||
|
||||
:selected {
|
||||
color: $mauve;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header {
|
||||
@ -23,4 +21,12 @@ calendar {
|
||||
color: $maroon;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.button {
|
||||
color: $sapphire;
|
||||
}
|
||||
|
||||
:indeterminate {
|
||||
color: $overlay0;
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@ $fg: $text;
|
||||
$bg: $base;
|
||||
$bg1: $surface0;
|
||||
$border: #28283d;
|
||||
$shadow: $surface1;
|
||||
$shadow: $crust;
|
||||
|
@ -1,17 +1,16 @@
|
||||
.song-cover-art {
|
||||
@include rounding;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
border-radius: 16px;
|
||||
margin: 4px 5px 4px 0;
|
||||
min-height: 24px;
|
||||
min-width: 24px;
|
||||
}
|
||||
|
||||
.music-window {
|
||||
@include wshadow;
|
||||
@include window;
|
||||
background-color: $bg;
|
||||
border: 1px solid $border;
|
||||
border-radius: 16px;
|
||||
color: $fg;
|
||||
}
|
||||
|
||||
@ -30,11 +29,11 @@
|
||||
|
||||
.music-title {
|
||||
font-weight: bold;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.music-artist {
|
||||
color: $subtext1;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.music-button label {
|
||||
@ -44,7 +43,6 @@
|
||||
|
||||
.music-time {
|
||||
color: $subtext1;
|
||||
font-size: 1rem;
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
|
@ -1,42 +1,59 @@
|
||||
.side {
|
||||
padding: 1em;
|
||||
.notifications-box {
|
||||
@include window;
|
||||
background: $bg;
|
||||
border-radius: 16px;
|
||||
@include wshadow;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.notification {
|
||||
background-color: $crust;
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
:hover {
|
||||
background-color: $surface0;
|
||||
border-bottom: 1px solid $bg;
|
||||
padding: .5rem;
|
||||
|
||||
box { margin-bottom: .5rem; }
|
||||
|
||||
label { font-size: 1rem; }
|
||||
|
||||
&:hover {
|
||||
border: 1px solid $border;
|
||||
}
|
||||
|
||||
.appname {
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
color: $peach;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.summary {
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
color: $text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.body {
|
||||
color: $text;
|
||||
}
|
||||
.body { color: $text; }
|
||||
}
|
||||
|
||||
.container {
|
||||
&:first-child { border-radius: 8px 8px 0 0; };
|
||||
&:last-child { border-radius: 0 0 8px 8px; };
|
||||
}
|
||||
|
||||
.notification-header {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.notification-label {
|
||||
font-size: 1.5rem;
|
||||
color: $blue;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.notification-action {
|
||||
font-size: 2rem;
|
||||
color: $text;
|
||||
margin-left: 1rem;
|
||||
border-radius: 50%;
|
||||
padding: .3rem;
|
||||
|
||||
label {
|
||||
color: $text;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $surface0;
|
||||
}
|
||||
}
|
||||
|
109
users/modules/eww/css/_sidebar.scss
Normal file
109
users/modules/eww/css/_sidebar.scss
Normal file
@ -0,0 +1,109 @@
|
||||
.system-menu-box {
|
||||
@include window;
|
||||
background-color: $bg;
|
||||
border: 1px solid $border;
|
||||
color: $text;
|
||||
}
|
||||
|
||||
.separator {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
margin: 1rem 1.5rem 0;
|
||||
}
|
||||
|
||||
.system-row {
|
||||
margin: .5rem .7rem;
|
||||
|
||||
.airplane-box button {
|
||||
padding: 1rem 3rem;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 1rem;
|
||||
margin: 0 .1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.element {
|
||||
@include rounding;
|
||||
background: $surface0;
|
||||
margin: .3rem;
|
||||
|
||||
button {
|
||||
@include rounding;
|
||||
padding: 1rem;
|
||||
|
||||
label {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $overlay0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sliders {
|
||||
@include rounding;
|
||||
background-color: $surface0;
|
||||
margin: .5rem 1rem;
|
||||
padding: .6rem 1rem;
|
||||
|
||||
scale {
|
||||
margin-right: -1rem;
|
||||
min-width: 21.5rem;
|
||||
}
|
||||
|
||||
box { margin: .2rem 0; }
|
||||
|
||||
label { font-size: 1.2rem; }
|
||||
}
|
||||
|
||||
.volume-bar highlight {
|
||||
@include rounding;
|
||||
background-image: linear-gradient(to right, $teal 30%, $sky 100%);
|
||||
}
|
||||
|
||||
.brightness-slider-box scale highlight {
|
||||
@include rounding;
|
||||
background-image: linear-gradient(to right, $yellow 30%, $peach 100%);
|
||||
}
|
||||
|
||||
.time { font-size: 2rem; }
|
||||
.date-box {
|
||||
margin: 0 1rem;
|
||||
|
||||
label { font-size: 1.1rem; }
|
||||
|
||||
.date {
|
||||
background: unset;
|
||||
margin: 0 .5rem 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.battery-box { margin: .5rem 1rem; }
|
||||
.battery-icon { font-size: 2rem; }
|
||||
.battery-wattage { color: $mauve; }
|
||||
|
||||
.battery-status {
|
||||
color: $subtext0;
|
||||
margin: 0 .5rem;
|
||||
}
|
||||
|
||||
.bottom-row button {
|
||||
background-color: $surface0;
|
||||
border-radius: 50%;
|
||||
padding: .5rem;
|
||||
margin: .5rem 1rem;
|
||||
|
||||
label {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $overlay0;
|
||||
}
|
||||
}
|
@ -20,10 +20,6 @@
|
||||
color: $peach;
|
||||
}
|
||||
|
||||
.iconbat {
|
||||
color: $green;
|
||||
}
|
||||
|
||||
.iconcpu {
|
||||
color: $blue;
|
||||
}
|
||||
@ -35,35 +31,30 @@
|
||||
|
||||
.sys-text-sub {
|
||||
color: $text;
|
||||
font-size: 1.2rem;
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.sys-text-mem,
|
||||
.sys-text-cpu,
|
||||
.sys-text-bat {
|
||||
.sys-text-cpu {
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.sys-icon-mem,
|
||||
.sys-icon-cpu,
|
||||
.sys-icon-bat {
|
||||
font-size: 30px;
|
||||
margin: 25px;
|
||||
.sys-icon-cpu {
|
||||
font-size: 1.5rem;
|
||||
margin: 1.5rem;
|
||||
}
|
||||
|
||||
.sys-win {
|
||||
@include wshadow;
|
||||
background-color: $bg;
|
||||
border: 1px solid $border;
|
||||
border-radius: 16px;
|
||||
.system-info-box {
|
||||
@include rounding;
|
||||
background-color: $surface0;
|
||||
margin: .5rem 1rem;
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.sys-mem,
|
||||
.sys-cpu,
|
||||
.sys-bat {
|
||||
background-color: $bg1;
|
||||
.sys-cpu {
|
||||
background-color: $bg;
|
||||
}
|
||||
|
||||
.sys-icon-mem,
|
||||
@ -78,14 +69,8 @@
|
||||
color: $blue;
|
||||
}
|
||||
|
||||
.sys-icon-bat,
|
||||
.sys-text-bat,
|
||||
.sys-bat {
|
||||
color: $green;
|
||||
}
|
||||
|
||||
.sys-box {
|
||||
margin: 1em;
|
||||
margin: .3em;
|
||||
|
||||
box { margin-left: 1rem; }
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,37 +3,3 @@
|
||||
background-image: linear-gradient(to right, $teal 30%, $sky 100%);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.volume-window {
|
||||
@include wshadow;
|
||||
background-color: $bg;
|
||||
border-radius: 16px;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
.volume-text {
|
||||
color: $teal;
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.volume-icon {
|
||||
color: $teal;
|
||||
font-size: 5rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.volume-info {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.volume-bar {
|
||||
trough {
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
highlight {
|
||||
background-image: linear-gradient(to right, $teal 30%, $sky 100%);
|
||||
border-radius: 16px;
|
||||
}
|
||||
}
|
||||
|
@ -5,38 +5,46 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
dependencies =
|
||||
config.home.packages
|
||||
++ (with pkgs; [
|
||||
config.wayland.windowManager.hyprland.package
|
||||
config.programs.eww.package
|
||||
bash
|
||||
bc
|
||||
bluez
|
||||
coreutils
|
||||
dbus
|
||||
dunst
|
||||
findutils
|
||||
gawk
|
||||
gnused
|
||||
jq
|
||||
light
|
||||
networkmanager
|
||||
playerctl
|
||||
procps
|
||||
pulseaudio
|
||||
ripgrep
|
||||
socat
|
||||
udev
|
||||
upower
|
||||
wget
|
||||
wireplumber
|
||||
]);
|
||||
dependencies = with pkgs; [
|
||||
config.wayland.windowManager.hyprland.package
|
||||
config.programs.eww.package
|
||||
# notifs
|
||||
dunst
|
||||
# utils
|
||||
coreutils
|
||||
findutils
|
||||
gawk
|
||||
gnused
|
||||
jq
|
||||
bash
|
||||
bc
|
||||
ripgrep
|
||||
socat
|
||||
procps
|
||||
util-linux
|
||||
wget
|
||||
# brightness
|
||||
light
|
||||
# network
|
||||
networkmanager
|
||||
config.programs.rofi-nm.package
|
||||
# volume
|
||||
wireplumber
|
||||
playerctl
|
||||
pulseaudio
|
||||
# session management
|
||||
wlogout
|
||||
# bluetooth
|
||||
blueberry
|
||||
bluez
|
||||
# misc
|
||||
dbus
|
||||
udev
|
||||
upower
|
||||
];
|
||||
in {
|
||||
imports = [../rofi-nm];
|
||||
|
||||
# home.packages = [inputs.eww.packages.${pkgs.system}.eww-wayland];
|
||||
# home.file.".config/eww".source = config.lib.file.mkOutOfStoreSymlink ./.;
|
||||
programs.eww = {
|
||||
enable = true;
|
||||
package = inputs.eww.packages.${pkgs.system}.eww-wayland;
|
||||
|
@ -1,54 +1,71 @@
|
||||
@import 'css/colors';
|
||||
|
||||
@mixin wshadow {
|
||||
box-shadow: 0 5px 10px $shadow;
|
||||
margin: 15px 20px 25px;
|
||||
@mixin rounding {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
@mixin window {
|
||||
border: 1px solid $border;
|
||||
box-shadow: 0 2px 3px $shadow;
|
||||
margin: 5px 5px 10px;
|
||||
@include rounding;
|
||||
}
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 1.2rem;
|
||||
transition: 200ms ease;
|
||||
}
|
||||
|
||||
@import 'css/calendar';
|
||||
@import 'css/music';
|
||||
@import 'css/notification';
|
||||
@import 'css/sidebar';
|
||||
@import 'css/system';
|
||||
@import 'css/volume';
|
||||
|
||||
.bar {
|
||||
background-color: $bg;
|
||||
color: $fg;
|
||||
|
||||
label {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: $bg;
|
||||
border: 1px solid $border;
|
||||
border-radius: 8px;
|
||||
|
||||
label {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.module { margin: 0 5px; }
|
||||
.clock { font-size: 1.4rem; }
|
||||
.hour { font-weight: bold; }
|
||||
.date {
|
||||
label {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
background: $bg;
|
||||
color: $flamingo;
|
||||
margin-left: -1rem;
|
||||
margin-left: -1.15rem;
|
||||
padding: 0 1rem;
|
||||
|
||||
label {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.bright-icon { color: $yellow; }
|
||||
.brightbar trough highlight {
|
||||
background-image: linear-gradient(to right, $yellow 30%, $peach 100%);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.module-ssid,
|
||||
.module-net { color: $lavender; }
|
||||
|
||||
.module-bt { font-size: 1.2rem; }
|
||||
|
||||
.separ {
|
||||
color: $surface0;
|
||||
padding-bottom: 2px;
|
||||
font-size: 1.5rem;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
scale trough {
|
||||
|
@ -10,10 +10,9 @@
|
||||
(include "./modules/volume.yuck")
|
||||
|
||||
(include "./windows/calendar.yuck")
|
||||
(include "./windows/music_win.yuck")
|
||||
(include "./windows/music.yuck")
|
||||
(include "./windows/notifications.yuck")
|
||||
(include "./windows/system.yuck")
|
||||
(include "./windows/volume_win.yuck")
|
||||
(include "./windows/sidebar.yuck")
|
||||
|
||||
(defwidget sep []
|
||||
(label :class "separ module" :text "|"))
|
||||
@ -21,7 +20,7 @@
|
||||
(defwidget notif-toggle []
|
||||
(button
|
||||
:class "notif-toggle module"
|
||||
:onclick "scripts/reveal_toggle notification_rev ${EWW_CMD}";
|
||||
:onclick "${EWW_CMD} open --toggle notifications";
|
||||
{notif_icons.icon}))
|
||||
|
||||
; clipboard
|
||||
@ -40,7 +39,7 @@
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
(bright)
|
||||
(volume)
|
||||
(volume-module)
|
||||
(net)
|
||||
(bluetooth)
|
||||
(sep)
|
||||
@ -55,7 +54,7 @@
|
||||
(box
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
(music)))
|
||||
(music-module)))
|
||||
|
||||
(defwidget bar []
|
||||
(centerbox
|
||||
|
@ -6,5 +6,5 @@
|
||||
:thickness 3
|
||||
(button
|
||||
:tooltip "battery on ${EWW_BATTERY["BAT0"].capacity}%"
|
||||
:onclick "./scripts/pop system"
|
||||
:onclick "${EWW_CMD} open --toggle system-menu"
|
||||
(label :class "icon-text" :text ""))))
|
||||
|
@ -1,19 +1,7 @@
|
||||
(defwidget bluetooth []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update bt_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update bt_rev=false"
|
||||
(box
|
||||
:space-evenly "false"
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
:reveal bt_rev
|
||||
:duration "350ms"
|
||||
(label
|
||||
:class "module-bt module"
|
||||
:style "color: ${bluetooth.color};"
|
||||
:text {bluetooth.text}))
|
||||
(button
|
||||
:class "module-bt module"
|
||||
:onclick "rofi-bluetooth"
|
||||
:style "color: ${bluetooth.color};"
|
||||
{bluetooth.icon}))))
|
||||
(button
|
||||
:class "module-bt module"
|
||||
:onclick "blueberry"
|
||||
:tooltip "${bluetooth.text} ${bluetooth.batt_icon}"
|
||||
:style "color: ${bluetooth.color};"
|
||||
{bluetooth.icon}))
|
||||
|
@ -1,21 +1,9 @@
|
||||
(defwidget bright []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update bright_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update bright_reveal=false"
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:spacing "3"
|
||||
(revealer
|
||||
:transition "slideleft"
|
||||
:reveal bright_reveal
|
||||
:duration "350ms"
|
||||
(scale
|
||||
:class "brightbar"
|
||||
:value {brightness.level}
|
||||
:tooltip "${brightness.level}%"
|
||||
:onchange "light -S {}"))
|
||||
(box
|
||||
:class "module"
|
||||
(eventbox
|
||||
:onscroll "echo {} | sed -e 's/up/-U 1/g' -e 's/down/-A 1/g' | xargs light"
|
||||
(label
|
||||
:text {brightness.icon}
|
||||
:class "bright-icon"
|
||||
:tooltip "brightness ${brightness.level}%"))))
|
||||
:tooltip "brightness ${round(brightness.level, 0)}%"))))
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
(defwidget clock_module []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update time_rev=false; ${EWW_CMD} update date_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update time_rev=false; ${EWW_CMD} update date_rev=false"
|
||||
:onhover "${EWW_CMD} update date_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update date_rev=false"
|
||||
(overlay
|
||||
:class "module"
|
||||
(box
|
||||
@ -21,5 +21,5 @@
|
||||
:reveal date_rev
|
||||
(button
|
||||
:class "date clock"
|
||||
:onclick "./scripts/pop calendar"
|
||||
:onclick "${EWW_CMD} open --toggle calendar"
|
||||
{time.date})))))
|
||||
|
@ -5,5 +5,5 @@
|
||||
:thickness 3
|
||||
(button
|
||||
:tooltip "using ${round(EWW_CPU.avg,0)}% cpu"
|
||||
:onclick "./scripts/pop system"
|
||||
:onclick "${EWW_CMD} open --toggle system-menu"
|
||||
(label :class "icon-text" :text ""))))
|
||||
|
@ -5,5 +5,5 @@
|
||||
:thickness 3
|
||||
(button
|
||||
:tooltip "using ${round(memory.percentage,0)}% ram"
|
||||
:onclick "./scripts/pop system"
|
||||
:onclick "${EWW_CMD} open --toggle system-menu"
|
||||
(label :class "icon-text" :text ""))))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(defwidget music []
|
||||
(defwidget music-module []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update music_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update music_reveal=false"
|
||||
@ -10,7 +10,7 @@
|
||||
:style "background-image: url(\"${music_cover}\");")
|
||||
(button
|
||||
:class "module"
|
||||
:onclick "./scripts/pop music"
|
||||
:onclick "${EWW_CMD} open --toggle music"
|
||||
{music.title})
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
|
@ -1,19 +1,7 @@
|
||||
(defwidget net []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update net_rev=true"
|
||||
:onhoverlost "${EWW_CMD} update net_rev=false"
|
||||
(box
|
||||
:space-evenly "false"
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
:reveal net_rev
|
||||
:duration "350ms"
|
||||
(label
|
||||
:class "module-ssid module"
|
||||
:style "color: ${net.color};"
|
||||
:text {net.essid}))
|
||||
(button
|
||||
:class "module-net module"
|
||||
:onclick "rofi-nm"
|
||||
:style "color: ${net.color};"
|
||||
{net.icon}))))
|
||||
(button
|
||||
:class "module-net module"
|
||||
:onclick "rofi-nm"
|
||||
:tooltip {net.essid}
|
||||
:style "color: ${net.color};"
|
||||
{net.icon}))
|
||||
|
@ -1,13 +1,14 @@
|
||||
(defvar bright_reveal false)
|
||||
(defvar bt_rev false)
|
||||
(defvar music_reveal false)
|
||||
(defvar notification_rev false)
|
||||
(defvar notif_rev false)
|
||||
(defvar net_rev false)
|
||||
(defvar time_rev false)
|
||||
(defvar vol_reveal false)
|
||||
|
||||
(defpoll time :interval "5s" `date +'{"date": "%d/%m", "hour": "%H", "minute": "%M"}'`)
|
||||
(defpoll time :interval "5s" `date +'{"date": "%d/%m", "hour": "%H", "minute": "%M", "day": "%A"}'`)
|
||||
|
||||
(deflisten airplane "scripts/airplane")
|
||||
(deflisten battery "scripts/battery")
|
||||
(deflisten bluetooth "scripts/bluetooth")
|
||||
(deflisten brightness "scripts/brightness")
|
||||
|
@ -1,23 +1,11 @@
|
||||
(defwidget volume []
|
||||
(eventbox
|
||||
:onhover "${EWW_CMD} update vol_reveal=true"
|
||||
:onhoverlost "${EWW_CMD} update vol_reveal=false"
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly "false"
|
||||
:spacing "3"
|
||||
(revealer
|
||||
:transition "slideright"
|
||||
:reveal vol_reveal
|
||||
:duration "350ms"
|
||||
(scale
|
||||
:class "volbar"
|
||||
:value {volume.percent}
|
||||
:tooltip "${volume.percent}%"
|
||||
:max 100
|
||||
:min 0
|
||||
:onchange "./scripts/volume setvol SINK {}"))
|
||||
(button
|
||||
:onclick "./scripts/pop volume"
|
||||
(defwidget volume-module []
|
||||
(box
|
||||
:class "module"
|
||||
(eventbox
|
||||
:onscroll "echo {} | sed -e 's/up/-/g' -e 's/down/+/g' | xargs -I% wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.005%"
|
||||
:onclick "pavucontrol &"
|
||||
:onrightclick "scripts/volume mute SINK"
|
||||
(label
|
||||
:class "vol-icon"
|
||||
{volume.icon}))))
|
||||
:tooltip "volume ${volume.percent}"
|
||||
:text {volume.icon}))))
|
||||
|
29
users/modules/eww/scripts/airplane
Executable file
29
users/modules/eww/scripts/airplane
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
icon() {
|
||||
if [[ $STATUS == "no" ]]; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
toggle() {
|
||||
if [[ $STATUS == "no" ]]; then
|
||||
rfkill block all
|
||||
notify-send --urgency=normal -i airplane-mode-symbolic "Airplane Mode" "Airplane mode has been turned on!"
|
||||
else
|
||||
rfkill unblock all
|
||||
notify-send --urgency=normal -i airplane-mode-disabled-symbolic "Airplane Mode" "Airplane mode has been turned off!"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ $1 == "toggle" ]]; then
|
||||
toggle
|
||||
else
|
||||
while true; do
|
||||
STATUS="$(rfkill list | sed -n 2p | awk '{print $3}')"
|
||||
icon
|
||||
sleep 3;
|
||||
done
|
||||
fi
|
@ -1,5 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
icons=("" "" "" "" "" "" "" "" "" "")
|
||||
icons_charging=("" "" "" "" "")
|
||||
|
||||
# declare -A baticon=([10]="" [20]="" [30]="" [40]="" [50]="" [60]="" [70]="" [80]="" [90]="" [100]="")
|
||||
|
||||
geticon() {
|
||||
if [ "$STATE" = "Charging" ]; then
|
||||
level=$(awk -v n="$CAPACITY" 'BEGIN{print int((n-1)/20)}')
|
||||
echo "${icons_charging[$level]}"
|
||||
else
|
||||
level=$(awk -v n="$CAPACITY" 'BEGIN{print int((n-1)/10)}')
|
||||
echo "${icons[$level]}"
|
||||
fi
|
||||
}
|
||||
|
||||
status() {
|
||||
if [ "$STATE" = "Charging" ]; then
|
||||
echo -n "charging"
|
||||
@ -47,6 +62,6 @@ while true; do
|
||||
CAPACITY=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
STATE=$(cat /sys/class/power_supply/BAT0/status)
|
||||
|
||||
echo '{ "percentage": '"$CAPACITY"', "wattage": "'"$(wattage)"'", "status": "'"$(status)"'", "color": "'"$(color)"'" }'
|
||||
echo '{ "icon": "'"$(geticon)"'", "percentage": '"$CAPACITY"', "wattage": "'"$(wattage)"'", "status": "'"$(status)"'", "color": "'"$(color)"'" }'
|
||||
sleep 3
|
||||
done
|
@ -1,35 +1,51 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
declare -A baticon=([10]="" [20]="" [30]="" [40]="" [50]="" [60]="" [70]="" [80]="" [90]="" [100]="")
|
||||
declare -A baticon=([10]="" [20]="" [30]="" [40]="" [50]="" [60]="" [70]="" [80]="" [90]="" [100]="")
|
||||
|
||||
while true; do
|
||||
powered=$(bluetoothctl show | rg Powered | cut -f 2- -d ' ')
|
||||
status=$(bluetoothctl info)
|
||||
battery=$(echo "$status" | tail -1 | awk '{print $4 }' | tr -d '()')
|
||||
name=$(echo "$status" | rg Name | cut -f 2- -d ' ')
|
||||
toggle() {
|
||||
status=$(rfkill -J | jq -r '.rfkilldevices[] | select(.type == "bluetooth") | .soft' | head -1)
|
||||
|
||||
if [ "$powered" = "yes" ]; then
|
||||
if [ "$status" != "Missing device address argument" ]; then
|
||||
if [ "$battery" -le 100 ] && [ "$battery" -ge 0 ]; then
|
||||
text="$name ${baticon[$battery]}"
|
||||
else
|
||||
text="$name"
|
||||
fi
|
||||
if [ "$status" = "unblocked" ]; then
|
||||
rfkill block bluetooth
|
||||
else
|
||||
rfkill unblock bluetooth
|
||||
fi
|
||||
}
|
||||
|
||||
icon=""
|
||||
color="#b4befe"
|
||||
if [ "$1" = "toggle" ]; then
|
||||
toggle
|
||||
else
|
||||
while true; do
|
||||
powered=$(bluetoothctl show | rg Powered | cut -f 2- -d ' ')
|
||||
status=$(bluetoothctl info)
|
||||
name=$(echo "$status" | rg Name | cut -f 2- -d ' ')
|
||||
mac=$(echo "$status" | head -1 | awk '{print $2}' | tr ':' '_')
|
||||
|
||||
if [[ "$(echo "$status" | rg Percentage)" != "" ]]; then
|
||||
battery=$(upower -i /org/freedesktop/UPower/devices/headset_dev_"$mac" | rg percentage | awk '{print $2}' | cut -f 1 -d '%')
|
||||
batt_icon=${baticon[$battery]}
|
||||
else
|
||||
icon=""
|
||||
text="Disconnected"
|
||||
batt_icon=""
|
||||
fi
|
||||
|
||||
if [ "$powered" = "yes" ]; then
|
||||
if [ "$status" != "Missing device address argument" ]; then
|
||||
text="$name"
|
||||
icon=""
|
||||
color="#b4befe"
|
||||
else
|
||||
icon=""
|
||||
text="Disconnected"
|
||||
color="#45475a"
|
||||
fi
|
||||
else
|
||||
icon=""
|
||||
text="Bluetooth off"
|
||||
color="#45475a"
|
||||
fi
|
||||
else
|
||||
icon=""
|
||||
text="Bluetooth off"
|
||||
color="#45475a"
|
||||
fi
|
||||
|
||||
echo '{ "icon": "'"$icon"'", "text": "'"$text"'", "color": "'"$color"'" }'
|
||||
echo '{ "icon": "'"$icon"'", "batt_icon": "'"$batt_icon"'", "text": "'"$text"'", "color": "'"$color"'" }'
|
||||
|
||||
sleep 3
|
||||
done
|
||||
sleep 3
|
||||
done
|
||||
fi
|
||||
|
@ -66,7 +66,7 @@ get_cover() {
|
||||
|
||||
echo "$IMGPATH"
|
||||
elif [ "$COVER_URL" = "" ]; then
|
||||
echo "images/music.png"
|
||||
echo ""
|
||||
else
|
||||
echo "$COVER_URL"
|
||||
fi
|
||||
|
@ -1,26 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true; do
|
||||
status=$(nmcli g | tail -n 1 | awk '{print $1}')
|
||||
signal=$(nmcli dev wifi | rg "\*" | awk '{ print $8 }')
|
||||
essid=$(nmcli -t -f NAME connection show --active | head -n1)
|
||||
toggle() {
|
||||
status=$(rfkill -J | jq -r '.rfkilldevices[] | select(.type == "wlan") | .soft' | head -1)
|
||||
|
||||
icons=("" "" "" "" "")
|
||||
|
||||
if [ "$status" = "disconnected" ] ; then
|
||||
icon=""
|
||||
color="#988ba2"
|
||||
if [ "$status" = "unblocked" ]; then
|
||||
rfkill block wlan
|
||||
else
|
||||
level=$(awk -v n="$signal" 'BEGIN{print int(n/20)}')
|
||||
if [ "$level" -gt 4 ]; then
|
||||
level=4
|
||||
rfkill unblock wlan
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$1" = "toggle" ]; then
|
||||
toggle
|
||||
else
|
||||
while true; do
|
||||
status=$(nmcli g | tail -n 1 | awk '{print $1}')
|
||||
signal=$(nmcli -f in-use,signal dev wifi | rg "\*" | awk '{ print $2 }')
|
||||
essid=$(nmcli -t -f NAME connection show --active | head -n1)
|
||||
|
||||
icons=("" "" "" "" "")
|
||||
|
||||
if [ "$status" = "disconnected" ] ; then
|
||||
icon=""
|
||||
color="#988ba2"
|
||||
else
|
||||
level=$(awk -v n="$signal" 'BEGIN{print int((n-1)/20)}')
|
||||
if [ "$level" -gt 4 ]; then
|
||||
level=4
|
||||
fi
|
||||
|
||||
icon=${icons[$level]}
|
||||
color="#cba6f7"
|
||||
fi
|
||||
|
||||
icon=${icons[$level]}
|
||||
color="#cba6f7"
|
||||
fi
|
||||
echo '{ "essid": "'"$essid"'", "icon": "'"$icon"'", "color": "'"$color"'" }'
|
||||
|
||||
echo '{ "essid": "'"$essid"'", "icon": "'"$icon"'", "color": "'"$color"'" }'
|
||||
|
||||
sleep 3
|
||||
done
|
||||
sleep 3
|
||||
done
|
||||
fi
|
||||
|
@ -1,6 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
tmp=$XDG_CACHE_HOME/dunst-history.json
|
||||
lock="$XDG_CACHE_HOME/dunst-toggle.lock"
|
||||
lockinfo="$XDG_CACHE_HOME/dunst-lock-info"
|
||||
|
||||
touch $lockinfo
|
||||
|
||||
declare ids
|
||||
export toggle_icon=""
|
||||
|
||||
@ -9,25 +14,23 @@ get_ids() {
|
||||
}
|
||||
|
||||
get_notif() {
|
||||
|
||||
echo -n "(box :orientation \"v\" :space-evenly \"false\" :spacing \"10\" :halign \"start\" "
|
||||
echo -n '(box :class "container" :orientation "v" :space-evenly false '
|
||||
|
||||
for id in "${ids[@]}"; do
|
||||
mapfile -t n < <(jq -r ".data[] | .[] | select(.id.data == $id) | .appname.data, .summary.data, .body.data" "$tmp" | sed -r '/^\s*$/d' | sed -e 's/\%/ percent/g')
|
||||
echo -n "(eventbox :onclick \"dunstctl history-pop $id && dunstctl action 0 && dunstctl close\" \
|
||||
(box :class \"notification\" :orientation \"h\" :width 300 :space-evenly \"false\" \
|
||||
(box :orientation \"v\" :space-evenly \"false\" :valign \"start\" :width 300 :spacing 10 \
|
||||
(box :orientation \"h\" :space-evenly \"false\" :width 300 :spacing 10 \
|
||||
(label :xalign 0 :wrap \"true\" :class \"summary\" :text \"${n[1]}\") \
|
||||
(label :xalign 1 :wrap \"true\" :class \"appname\" :text \"${n[0]}\")) \
|
||||
(label :xalign 0 :wrap \"true\" :class \"body\" :text \"${n[2]}\"))))"
|
||||
echo -n '(eventbox :onclick "dunstctl history-pop '"$id"' && dunstctl action 0 && dunstctl close" '
|
||||
echo -n '(box :class "notification" :orientation "v" :width 300 :space-evenly false '
|
||||
echo -n '(box :space-evenly false :spacing 10 '
|
||||
echo -n '(label :halign "start" :xalign 0 :wrap true :class "summary" :text "'"${n[1]}"'")'
|
||||
echo -n '(label :halign "end" :xalign 1 :wrap true :class "appname" :text "'"${n[0]}"'"))'
|
||||
echo -n '(label :halign "start" :wrap true :class "body" :text "'"${n[2]}"'")))'
|
||||
done
|
||||
echo ")"
|
||||
|
||||
echo ')'
|
||||
}
|
||||
|
||||
toggle() {
|
||||
dunstctl set-paused toggle
|
||||
lock="$XDG_CACHE_HOME/dunst-toggle.lock"
|
||||
|
||||
if [ ! -f "$lock" ]; then
|
||||
export toggle_icon=""
|
||||
@ -36,14 +39,13 @@ toggle() {
|
||||
export toggle_icon=""
|
||||
rm "$lock"
|
||||
fi
|
||||
|
||||
echo "icon_change" > $lockinfo
|
||||
}
|
||||
|
||||
clear() {
|
||||
get_ids
|
||||
for id in "${ids[@]}"; do
|
||||
dunstctl history-pop "$id"
|
||||
done
|
||||
get_ids
|
||||
systemctl --user restart dunst
|
||||
echo "icon_change" > $lockinfo
|
||||
}
|
||||
|
||||
get_icon() {
|
||||
@ -64,7 +66,7 @@ elif [ "$1" == "icons" ]; then
|
||||
dunstctl history > "$tmp"
|
||||
get_ids
|
||||
echo '{"toggle_icon": "'"$toggle_icon"'", "icon": "'"$(get_icon)"'"}'
|
||||
tail -f "$tmp" 2>/dev/null | rg --line-buffered "aa\{sv\}" | while read -r; do
|
||||
tail -f "$lockinfo" | while read -r; do
|
||||
get_ids
|
||||
echo '{"toggle_icon": "'"$toggle_icon"'", "icon": "'"$(get_icon)"'"}'
|
||||
done
|
||||
|
@ -1,8 +1,9 @@
|
||||
(defwidget calendar-win []
|
||||
(box
|
||||
:class "calendar-window"
|
||||
:class "calendar-win"
|
||||
(calendar)))
|
||||
(defwindow calendar_win
|
||||
|
||||
(defwindow calendar
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
|
54
users/modules/eww/windows/music.yuck
Normal file
54
users/modules/eww/windows/music.yuck
Normal file
@ -0,0 +1,54 @@
|
||||
(defwidget music []
|
||||
(box
|
||||
:class "music-window"
|
||||
:space-evenly false
|
||||
(box
|
||||
:class "music-cover-art"
|
||||
:style "background-image: url(\"${music_cover}\");")
|
||||
(box
|
||||
:orientation "v"
|
||||
:class "music-box"
|
||||
(label
|
||||
:class "music-title"
|
||||
:wrap true
|
||||
:limit-width 30
|
||||
:text {music.title})
|
||||
(label
|
||||
:class "music-artist"
|
||||
:wrap true
|
||||
:limit-width 30
|
||||
:text {music.artist})
|
||||
(centerbox
|
||||
:halign "center"
|
||||
:class "music-button-box"
|
||||
(button :class "music-button" :onclick "playerctl previous" "")
|
||||
(button :class "music-button" :onclick "playerctl play-pause" {music.status})
|
||||
(button :class "music-button" :onclick "playerctl next" ""))
|
||||
(box
|
||||
:orientation "v"
|
||||
(box
|
||||
(label
|
||||
:xalign 0
|
||||
:class "music-time"
|
||||
:text {music.position_time})
|
||||
(label
|
||||
:xalign 1
|
||||
:class "music-time"
|
||||
:text {music.length}))
|
||||
(box
|
||||
:class "music-bar"
|
||||
(scale
|
||||
:onchange "playerctl position `bc <<< \"{} * $(playerctl metadata mpris:length) / 1000000 / 100\"`"
|
||||
:value {music.position}))))))
|
||||
|
||||
(defwindow music
|
||||
:stacking "fg"
|
||||
:focusable "false"
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "0%"
|
||||
:width "0%"
|
||||
:height "0%"
|
||||
:anchor "top center")
|
||||
(music))
|
@ -1,42 +1,34 @@
|
||||
(defwindow notifications_win
|
||||
(defwindow notifications
|
||||
:geometry
|
||||
(geometry
|
||||
:x "0px"
|
||||
:y "0px"
|
||||
:width "0px"
|
||||
:height "0px"
|
||||
:anchor "right center")
|
||||
:anchor "right top")
|
||||
:stacking "fg"
|
||||
:monitor "0"
|
||||
(rightside))
|
||||
(notifications))
|
||||
|
||||
(defwidget rightside []
|
||||
(revealer
|
||||
:transition "slideleft"
|
||||
:reveal notification_rev
|
||||
:duration "350ms"
|
||||
(defwidget notifications []
|
||||
(box
|
||||
:class "side"
|
||||
:class "notifications-box"
|
||||
:orientation "v"
|
||||
:space-evenly "false"
|
||||
:spacing "10"
|
||||
:halign "center"
|
||||
(box
|
||||
:class "notification-header"
|
||||
:orientation "h"
|
||||
:space-evenly "false"
|
||||
(label
|
||||
:class "notification-label"
|
||||
:halign "start"
|
||||
:text "Notifications")
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly "false"
|
||||
:halign "end"
|
||||
:space-evenly "false"
|
||||
:spacing 10
|
||||
(button
|
||||
:class "notification-action"
|
||||
:tooltip "Refresh"
|
||||
:onclick "dunstctl history > $XDG_CACHE_HOME/dunst-history.json" "")
|
||||
:onclick "dunstctl history > $XDG_CACHE_HOME/dunst-history.json" "")
|
||||
(button
|
||||
:class "notification-action"
|
||||
:tooltip "Pause/Resume Notifications"
|
||||
@ -44,12 +36,11 @@
|
||||
(button
|
||||
:class "notification-action"
|
||||
:tooltip "Clear Notifications"
|
||||
:onclick "scripts/notifications clear" "")));
|
||||
:onclick "scripts/notifications clear" ""))) ;
|
||||
(scroll
|
||||
:vscroll "true"
|
||||
:hscroll "false"
|
||||
:height 840
|
||||
:width 200
|
||||
:height 500
|
||||
:width 300
|
||||
(literal
|
||||
:content notifications)
|
||||
))))
|
||||
:content notifications))))
|
||||
|
215
users/modules/eww/windows/sidebar.yuck
Normal file
215
users/modules/eww/windows/sidebar.yuck
Normal file
@ -0,0 +1,215 @@
|
||||
(defwidget system-menu []
|
||||
(box
|
||||
:class "system-menu-box"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "top-row"
|
||||
:space-evenly false
|
||||
(label
|
||||
:class "time"
|
||||
:text "${time.hour}:${time.minute}")
|
||||
(box
|
||||
:class "date-box"
|
||||
:space-evenly false
|
||||
(label
|
||||
:class "date"
|
||||
:text {time.date})
|
||||
(label
|
||||
:class "day"
|
||||
:text {time.day})))
|
||||
|
||||
(centerbox
|
||||
:class "system-row"
|
||||
(box
|
||||
:class "wifi-box"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "element"
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "wifi-button"
|
||||
:onclick "scripts/net toggle"
|
||||
{net.icon})
|
||||
(label
|
||||
:class "separator"
|
||||
:text "|")
|
||||
(button
|
||||
:class "wifi-arrow-btn"
|
||||
:onclick "eww close system-menu && nm-connection-editor &"
|
||||
""))
|
||||
(label
|
||||
:text {net.essid}
|
||||
:xalign 0.5
|
||||
:limit-width 15))
|
||||
|
||||
(box
|
||||
:class "bluetooth-box"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "element"
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "bluetooth-button"
|
||||
:onclick "scripts/bluetooth toggle"
|
||||
{bluetooth.icon})
|
||||
(label
|
||||
:class "separator"
|
||||
:text "|")
|
||||
(button
|
||||
:class "bluetooth-arrow-btn"
|
||||
:onclick "eww close system-menu && blueberry"
|
||||
""))
|
||||
(label
|
||||
:text {bluetooth.text}
|
||||
:xalign 0.5
|
||||
:tooltip "${bluetooth.text} ${bluetooth.batt_icon}"
|
||||
:limit-width 15))
|
||||
|
||||
(box
|
||||
:class "airplane-box"
|
||||
:space-evenly false
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "element"
|
||||
(button
|
||||
:class "airplane-button"
|
||||
:onclick "scripts/airplane toggle"
|
||||
airplane))
|
||||
(label
|
||||
:text "Airplane Mode"
|
||||
:xalign 0.5
|
||||
:limit-width 16)))
|
||||
|
||||
(box
|
||||
:class "sliders"
|
||||
:orientation "v"
|
||||
(box
|
||||
:class "volume-slider-box"
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "volume-icon"
|
||||
:onclick "scripts/volume mute SINK"
|
||||
{volume.icon})
|
||||
(scale
|
||||
:class "volume-bar"
|
||||
:value {volume.percent}
|
||||
:tooltip "volume on ${volume.percent}%"
|
||||
:onchange "scripts/volume setvol SINK {}"))
|
||||
(box
|
||||
:class "volume-slider-box"
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "volume-icon"
|
||||
:onclick "scripts/volume mute SOURCE"
|
||||
"")
|
||||
(scale
|
||||
:class "volume-bar"
|
||||
:value {volume.microphone}
|
||||
:tooltip "mic on ${volume.microphone}%"
|
||||
:onchange "scripts/volume setvol SOURCE {}"))
|
||||
(box
|
||||
:class "brightness-slider-box"
|
||||
:space-evenly false
|
||||
(button
|
||||
:class "brightness-slider-icon"
|
||||
{brightness.icon})
|
||||
(scale
|
||||
:class "brightness-slider"
|
||||
:value {brightness.level}
|
||||
:marks true
|
||||
:onchange "light -S {}")))
|
||||
|
||||
(box
|
||||
:class "system-info-box"
|
||||
|
||||
; cpu
|
||||
(box
|
||||
:class "sys-box"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
(circular-progress
|
||||
:value "${EWW_CPU.avg}"
|
||||
:class "sys-cpu"
|
||||
:thickness 3
|
||||
(label
|
||||
:text ""
|
||||
:class "sys-icon-cpu"))
|
||||
(box
|
||||
:orientation "v"
|
||||
:vexpand "false"
|
||||
(label
|
||||
:text "cpu"
|
||||
:halign "start"
|
||||
:class "sys-text-cpu")
|
||||
(label
|
||||
:text "${round(EWW_CPU.avg,2)}%"
|
||||
:halign "start"
|
||||
:class "sys-text-sub")
|
||||
(label
|
||||
:text "${EWW_CPU.cores[0].freq} MHz"
|
||||
:halign "start"
|
||||
:class "sys-text-sub")))
|
||||
|
||||
; memory
|
||||
(box
|
||||
:class "sys-box"
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
(circular-progress
|
||||
:value {memory.percentage}
|
||||
:class "sys-mem"
|
||||
:thickness 3
|
||||
(label
|
||||
:text ""
|
||||
:class "sys-icon-mem"))
|
||||
(box
|
||||
:orientation "v"
|
||||
(label
|
||||
:text "memory"
|
||||
:halign "start"
|
||||
:class "sys-text-mem")
|
||||
(label
|
||||
:text "${memory.used} | ${memory.total}"
|
||||
:halign "start"
|
||||
:class "sys-text-sub"))))
|
||||
|
||||
(box
|
||||
:class "bottom-row"
|
||||
(box
|
||||
:class "battery-box"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
(label
|
||||
:class "battery-icon"
|
||||
:style "color: ${battery.color}"
|
||||
:text {battery.icon})
|
||||
(label
|
||||
:class "battery-percentage"
|
||||
:text {EWW_BATTERY["BAT0"].capacity})
|
||||
(label
|
||||
:class "battery-status"
|
||||
:text {battery.status})
|
||||
(label
|
||||
:class "battery-wattage"
|
||||
:text {battery.wattage}))
|
||||
(button
|
||||
:class "power-button"
|
||||
:halign "end"
|
||||
:onclick "wlogout -p layer-shell &" ""))))
|
||||
|
||||
;; windows
|
||||
(defwindow system-menu
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
:wm-ignore true
|
||||
:monitor "0"
|
||||
:geometry (geometry
|
||||
:x "0"
|
||||
:y "0"
|
||||
:width "0%"
|
||||
:height "0%"
|
||||
:anchor "right top")
|
||||
(system-menu))
|
@ -5,7 +5,7 @@
|
||||
server.enable = false;
|
||||
settings = {
|
||||
main = {
|
||||
font = "${config.settings.font.name}:size=${toString config.settings.font.size}";
|
||||
font = "${config.settings.font.monospace.name}:size=${toString config.settings.font.monospace.size}";
|
||||
dpi-aware = "yes";
|
||||
};
|
||||
colors = {
|
||||
|
3
users/modules/godot/default.nix
Normal file
3
users/modules/godot/default.nix
Normal file
@ -0,0 +1,3 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [godot godot-headless godot-server];
|
||||
}
|
@ -25,37 +25,37 @@ in {
|
||||
|
||||
exec-once=xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
|
||||
exec-once=swaybg -i ~/.config/wallpaper
|
||||
exec-once=eww open-many bar notifications_win
|
||||
exec-once=eww open bar
|
||||
|
||||
input {
|
||||
kb_layout=tr
|
||||
follow_mouse=1
|
||||
force_no_accel=1
|
||||
touchpad {
|
||||
natural_scroll=1
|
||||
}
|
||||
kb_layout=tr
|
||||
follow_mouse=1
|
||||
force_no_accel=1
|
||||
touchpad {
|
||||
natural_scroll=1
|
||||
}
|
||||
}
|
||||
general {
|
||||
main_mod=SUPER
|
||||
gaps_in=5
|
||||
gaps_out=5
|
||||
border_size=0
|
||||
main_mod=SUPER
|
||||
gaps_in=5
|
||||
gaps_out=5
|
||||
border_size=0
|
||||
}
|
||||
decoration {
|
||||
rounding=16
|
||||
blur=1
|
||||
blur_size=3
|
||||
blur_passes=3
|
||||
blur_new_optimizations=1
|
||||
drop_shadow=0
|
||||
shadow_ignore_window=1
|
||||
rounding=16
|
||||
blur=1
|
||||
blur_size=3
|
||||
blur_passes=3
|
||||
blur_new_optimizations=1
|
||||
drop_shadow=0
|
||||
shadow_ignore_window=1
|
||||
}
|
||||
animations {
|
||||
enabled=1
|
||||
animation=windows,1,3,default,popin 80%
|
||||
animation=border,1,2,default
|
||||
animation=fade,1,4,default
|
||||
animation=workspaces,1,2,default,slide
|
||||
enabled=1
|
||||
animation=windows,1,3,default,popin 80%
|
||||
animation=border,1,2,default
|
||||
animation=fade,1,4,default
|
||||
animation=workspaces,1,2,default,slide
|
||||
}
|
||||
dwindle {
|
||||
pseudotile=1
|
||||
@ -67,17 +67,20 @@ in {
|
||||
}
|
||||
|
||||
# window rules
|
||||
windowrule=float,title:^(Media viewer)$
|
||||
windowrule=float,title:^(Picture-in-Picture)$
|
||||
windowrule=pin,title:^(Picture-in-Picture)$
|
||||
windowrule=float,title:^(Firefox — Sharing Indicator)$
|
||||
windowrule=move 0 0,title:^(Firefox — Sharing Indicator)$
|
||||
windowrulev2=float,title:^(Media viewer)$
|
||||
windowrulev2=float,title:^(Picture-in-Picture)$
|
||||
windowrulev2=pin,title:^(Picture-in-Picture)$
|
||||
windowrulev2=float,title:^(Firefox — Sharing Indicator)$
|
||||
windowrulev2=move 0 0,title:^(Firefox — Sharing Indicator)$
|
||||
|
||||
# window rules for organization
|
||||
windowrule=workspace 1,title:^(Firefox)$
|
||||
windowrule=workspace 2,title:^(Discord)$
|
||||
windowrule=workspace 2,title:^(WebCord)$
|
||||
windowrule=workspace 3,title:^(foot)$
|
||||
windowrulev2=workspace 1,title:^(Firefox)$
|
||||
windowrulev2=workspace 2,title:^(Discord)$
|
||||
windowrulev2=workspace 2,title:^(WebCord)$
|
||||
windowrulev2=workspace 3,title:^(foot)$
|
||||
|
||||
# make blueberry device-specific window proper size
|
||||
windowrulev2 = tile, class:^(blueberry.py)$, title:^(?!Sound).+$
|
||||
|
||||
# mouse
|
||||
bindm=SUPER,mouse:272,movewindow
|
||||
|
@ -27,6 +27,7 @@
|
||||
playerctl
|
||||
wlogout
|
||||
swaybg
|
||||
mpvpaper
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
|
@ -6,7 +6,7 @@
|
||||
programs.mako = {
|
||||
enable = true;
|
||||
anchor = "top-center";
|
||||
font = config.settings.font.fullName;
|
||||
font = config.settings.font.regular.fullName;
|
||||
borderRadius = 16;
|
||||
extraConfig = builtins.readFile (
|
||||
builtins.fetchurl {
|
||||
|
@ -1,136 +1,143 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
rofi-nm = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/P3rf/rofi-network-manager/1daa69406c9b6539a4744eafb0d5bb8afdc80e9b/rofi-network-manager.sh";
|
||||
hash = "sha256:1nlnjmk5b743j5826z2nzfvjwk0fmbf7gk38darby93kdr3nv5zx";
|
||||
};
|
||||
package = pkgs.writeShellScriptBin "rofi-nm" ''
|
||||
${config.home.homeDirectory}/.config/rofi-nm/rofi-nm.sh
|
||||
'';
|
||||
in {
|
||||
xdg.configFile = {
|
||||
"rofi-nm/rofi-nm.sh" = {
|
||||
source = pkgs.runCommandLocal "rofi-nm" {} ''
|
||||
cp --no-preserve=mode,ownership ${rofi-nm} rofi-nm.sh
|
||||
substituteInPlace rofi-nm.sh \
|
||||
--replace "#!/bin/bash" "#!${pkgs.stdenv.shell}" \
|
||||
--replace "grep" "${pkgs.gnugrep}/bin/grep"
|
||||
mv rofi-nm.sh $out
|
||||
'';
|
||||
executable = true;
|
||||
options = {
|
||||
programs.rofi-nm.package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
};
|
||||
"rofi-nm/rofi-network-manager.conf".text = ''
|
||||
LOCATION=3
|
||||
WIDTH_FIX_MAIN=10
|
||||
WIDTH_FIX_STATUS=10
|
||||
'';
|
||||
"rofi-nm/rofi-network-manager.rasi".text = ''
|
||||
configuration {
|
||||
show-icons: false;
|
||||
sidebar-mode: false;
|
||||
hover-select: true;
|
||||
me-select-entry: "";
|
||||
me-accept-entry: [MousePrimary];
|
||||
}
|
||||
|
||||
* {
|
||||
font: "${config.settings.font.fullName}";
|
||||
}
|
||||
|
||||
@theme "catppuccin"
|
||||
|
||||
element-text, element-icon , mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
height: 40%;
|
||||
width: 40%;
|
||||
border: 3px;
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @bg-col;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 3px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
placeholder: "";
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 6px 0px 0px;
|
||||
margin: 10px 0px 0px 20px;
|
||||
columns: 1;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
background-color: @bg-col;
|
||||
text-color: @fg-col ;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 25px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col ;
|
||||
text-color: @fg-col2 ;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col-light;
|
||||
text-color: @grey;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @bg-col;
|
||||
text-color: @blue;
|
||||
}
|
||||
'';
|
||||
};
|
||||
config = {
|
||||
programs.rofi-nm.package = package;
|
||||
|
||||
home.packages = [
|
||||
(
|
||||
pkgs.writeShellScriptBin "rofi-nm" ''
|
||||
${config.home.homeDirectory}/.config/rofi-nm/rofi-nm.sh
|
||||
''
|
||||
)
|
||||
];
|
||||
home.packages = [package];
|
||||
|
||||
xdg.configFile = {
|
||||
"rofi-nm/rofi-nm.sh" = {
|
||||
source = pkgs.runCommandLocal "rofi-nm" {} ''
|
||||
cp --no-preserve=mode,ownership ${rofi-nm} rofi-nm.sh
|
||||
substituteInPlace rofi-nm.sh \
|
||||
--replace "#!/bin/bash" "#!${pkgs.stdenv.shell}" \
|
||||
--replace "grep" "${pkgs.gnugrep}/bin/grep"
|
||||
mv rofi-nm.sh $out
|
||||
'';
|
||||
executable = true;
|
||||
};
|
||||
"rofi-nm/rofi-network-manager.conf".text = ''
|
||||
LOCATION=3
|
||||
WIDTH_FIX_MAIN=10
|
||||
WIDTH_FIX_STATUS=10
|
||||
'';
|
||||
"rofi-nm/rofi-network-manager.rasi".text = ''
|
||||
configuration {
|
||||
show-icons: false;
|
||||
sidebar-mode: false;
|
||||
hover-select: true;
|
||||
me-select-entry: "";
|
||||
me-accept-entry: [MousePrimary];
|
||||
}
|
||||
|
||||
* {
|
||||
font: "${config.settings.font.regular.fullName}";
|
||||
}
|
||||
|
||||
@theme "catppuccin"
|
||||
|
||||
element-text, element-icon , mode-switcher {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
window {
|
||||
height: 40%;
|
||||
width: 40%;
|
||||
border: 3px;
|
||||
border-color: @border-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [prompt,entry];
|
||||
background-color: @bg-col;
|
||||
border-radius: 5px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @blue;
|
||||
padding: 6px;
|
||||
text-color: @bg-col;
|
||||
border-radius: 3px;
|
||||
margin: 20px 0px 0px 20px;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
}
|
||||
|
||||
entry {
|
||||
placeholder: "";
|
||||
padding: 6px;
|
||||
margin: 20px 0px 0px 10px;
|
||||
text-color: @fg-col;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
listview {
|
||||
border: 0px 0px 0px;
|
||||
padding: 6px 0px 0px;
|
||||
margin: 10px 0px 0px 20px;
|
||||
columns: 1;
|
||||
background-color: @bg-col;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 5px;
|
||||
background-color: @bg-col;
|
||||
text-color: @fg-col ;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 25px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @selected-col ;
|
||||
text-color: @fg-col2 ;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
spacing: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
background-color: @bg-col-light;
|
||||
text-color: @grey;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @bg-col;
|
||||
text-color: @blue;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
configuration{
|
||||
modi: "drun";
|
||||
lines: 5;
|
||||
font: "${config.settings.font.fullName}";
|
||||
font: "${config.settings.font.regular.fullName}";
|
||||
show-icons: true;
|
||||
terminal: "st";
|
||||
drun-display-format: "{icon} {name}";
|
||||
|
@ -6,6 +6,21 @@
|
||||
l = lib // builtins;
|
||||
t = l.types;
|
||||
cfg = config.settings;
|
||||
fontSettings = {
|
||||
name = l.mkOption {
|
||||
type = t.str;
|
||||
};
|
||||
package = l.mkOption {
|
||||
type = t.package;
|
||||
};
|
||||
size = l.mkOption {
|
||||
type = t.ints.unsigned;
|
||||
};
|
||||
fullName = l.mkOption {
|
||||
type = t.str;
|
||||
readOnly = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
settings.iconTheme = {
|
||||
@ -22,28 +37,14 @@ in {
|
||||
};
|
||||
};
|
||||
settings.font = {
|
||||
enable = l.mkOption {
|
||||
type = t.bool;
|
||||
default = false;
|
||||
};
|
||||
name = l.mkOption {
|
||||
type = t.str;
|
||||
};
|
||||
package = l.mkOption {
|
||||
type = t.package;
|
||||
};
|
||||
size = l.mkOption {
|
||||
type = t.ints.unsigned;
|
||||
};
|
||||
fullName = l.mkOption {
|
||||
type = t.str;
|
||||
readOnly = true;
|
||||
};
|
||||
regular = fontSettings;
|
||||
monospace = fontSettings;
|
||||
};
|
||||
};
|
||||
|
||||
config = l.mkIf cfg.font.enable {
|
||||
home.packages = [cfg.font.package];
|
||||
settings.font.fullName = "${cfg.font.name} ${toString cfg.font.size}";
|
||||
config = {
|
||||
home.packages = [cfg.font.regular.package cfg.font.monospace.package];
|
||||
settings.font.regular.fullName = "${cfg.font.regular.name} ${toString cfg.font.regular.size}";
|
||||
settings.font.monospace.fullName = "${cfg.font.monospace.name} ${toString cfg.font.monospace.size}";
|
||||
};
|
||||
}
|
||||
|
@ -2,19 +2,12 @@
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
format = "$shell$shlvl@ $directory$character";
|
||||
format = "$directory$character";
|
||||
add_newline = false;
|
||||
character = {
|
||||
success_symbol = "[>](bold green)";
|
||||
error_symbol = "[>](bold red)";
|
||||
};
|
||||
shell.disabled = false;
|
||||
shlvl = {
|
||||
disabled = false;
|
||||
symbol = "shlvl ";
|
||||
format = "on [$symbol$shlvl]($style) ";
|
||||
};
|
||||
nix_shell.format = "via [$name]($style) ";
|
||||
directory = {
|
||||
truncation_length = 2;
|
||||
truncate_to_repo = false;
|
||||
|
@ -12,6 +12,6 @@
|
||||
effect-scale = "0.5";
|
||||
effect-greyscale = true;
|
||||
effect-blur = "20x3";
|
||||
font = config.settings.font.name;
|
||||
font = config.settings.font.regular.name;
|
||||
};
|
||||
}
|
||||
|
@ -17,8 +17,8 @@
|
||||
}
|
||||
|
||||
return {
|
||||
font = wezterm.font("${config.settings.font.name}"),
|
||||
font_size = ${builtins.toJSON config.settings.font.size},
|
||||
font = wezterm.font("${config.settings.font.regular.name}"),
|
||||
font_size = ${builtins.toJSON config.settings.font.regular.size},
|
||||
default_cursor_style = "BlinkingBar",
|
||||
enable_wayland = true,
|
||||
enable_tab_bar = false,
|
||||
|
@ -50,10 +50,10 @@ in {
|
||||
fuse.userAllowOther = true;
|
||||
adb.enable = true;
|
||||
steam.enable = true;
|
||||
kdeconnect.enable = true;
|
||||
# gnome stuffs
|
||||
seahorse.enable = true;
|
||||
dconf.enable = true;
|
||||
weylus.users = ["patriot"];
|
||||
};
|
||||
services = {
|
||||
syncthing.folders = {
|
||||
@ -97,7 +97,7 @@ in {
|
||||
imports = let
|
||||
modulesToEnable = l.flatten [
|
||||
# wm
|
||||
["hyprland"]
|
||||
["hyprland" "foot"]
|
||||
# desktop stuff
|
||||
["firefox" "discord"]
|
||||
# cli stuff
|
||||
@ -121,7 +121,6 @@ in {
|
||||
directories =
|
||||
l.flatten [
|
||||
"Downloads"
|
||||
# "smos"
|
||||
".wine"
|
||||
# ssh / gpg / keys
|
||||
".ssh"
|
||||
@ -141,18 +140,22 @@ in {
|
||||
]
|
||||
++ mkPaths ".config" [
|
||||
"lutris"
|
||||
"kdeconnect"
|
||||
];
|
||||
files = l.flatten [
|
||||
".config/wallpaper"
|
||||
".config/wallpaper.mp4"
|
||||
(lib.removePrefix "~/" config.programs.ssh.userKnownHostsFile)
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = l.mkForce true;
|
||||
settings.font = {
|
||||
enable = true;
|
||||
settings.font.regular = {
|
||||
name = "Comic Relief";
|
||||
size = 13;
|
||||
package = pkgs.comic-relief;
|
||||
};
|
||||
settings.font.monospace = {
|
||||
name = "Comic Mono";
|
||||
size = 13;
|
||||
package = pkgs.comic-mono;
|
||||
@ -175,7 +178,7 @@ in {
|
||||
enable = true;
|
||||
|
||||
font = {
|
||||
inherit (config.settings.font) name package;
|
||||
inherit (config.settings.font.regular) name package;
|
||||
};
|
||||
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
@ -220,7 +223,6 @@ in {
|
||||
''
|
||||
)
|
||||
obs-studio
|
||||
rofi-bluetooth-wayland
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
|
Loading…
Reference in New Issue
Block a user