Compare commits
6 Commits
cf5cefe142
...
19bf6fcb72
Author | SHA1 | Date |
---|---|---|
Nathan McCarty | 19bf6fcb72 | |
Nathan McCarty | 6f7babf046 | |
Nathan McCarty | f35832d52a | |
Nathan McCarty | d86a58d618 | |
Nathan McCarty | 0654008864 | |
Nathan McCarty | 4ba7614e30 |
192
flake.lock
192
flake.lock
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685559570,
|
||||
"narHash": "sha256-MNIQvLRoq92isMLR/ordKNCl+aXNiuwBM4QyqmS8d00=",
|
||||
"lastModified": 1686307493,
|
||||
"narHash": "sha256-R4VEFnDn7nRmNxAu1LwNbjns5DPM8IBsvnrWmZ8ymPs=",
|
||||
"owner": "lnl7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "4338bc869e9874d54a4c89539af72f16666b2abe",
|
||||
"rev": "7c16d31383a90e0e72ace0c35d2d66a18f90fb4f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -140,11 +140,11 @@
|
|||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681202837,
|
||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
||||
"lastModified": 1685518550,
|
||||
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
||||
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -160,11 +160,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685599623,
|
||||
"narHash": "sha256-Tob4CMOVHue0D3RzguDBCtUmX5ji2PsdbQDbIOIKvsc=",
|
||||
"lastModified": 1686693375,
|
||||
"narHash": "sha256-1Smjo0E8WI9PeVGmmCjpQWRX04aQvz5gAGXfdanIjgw=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "93db05480c0c0f30382d3e80779e8386dcb4f9dd",
|
||||
"rev": "61e5d1c38ef04ba30a9119825b159bce9c6010be",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -174,6 +174,48 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprland": {
|
||||
"inputs": {
|
||||
"hyprland-protocols": "hyprland-protocols",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"wlroots": "wlroots",
|
||||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1686680001,
|
||||
"narHash": "sha256-JPcudWZ2bBwkJofGTV23NyXw/wo7PyiLFIdqPfrzxHE=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "7762ac0173b860af83e58d56409f9cf0fa7252e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprland-protocols": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"hyprland",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1684265364,
|
||||
"narHash": "sha256-AxNnWbthsuNx73HDQr0eBxrcE3+yfl/WsaXZqUFmkpQ=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprland-protocols",
|
||||
"rev": "8c279b9fb0f2b031427dc5ef4eab53f2ed835530",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprland-protocols",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"idris-emacs-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -199,11 +241,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685687232,
|
||||
"narHash": "sha256-DYwyjTdJjPDd/H5keb0tfmzR4AGwg/EaZMMQnLfksfY=",
|
||||
"lastModified": 1686669673,
|
||||
"narHash": "sha256-xx9SV/te+Ydo+bQNZR6w9cvMApE086Vwl6a8+T3O4EQ=",
|
||||
"owner": "idris-lang",
|
||||
"repo": "idris2",
|
||||
"rev": "31c17ebec2e64c095076e8425637176db7658492",
|
||||
"rev": "1fa59f842a9760978befcb59228c27de8ebed7af",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -220,11 +262,11 @@
|
|||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685786410,
|
||||
"narHash": "sha256-rjMM1cuUaiJdIZvOrBAZl2r9F+OwozRRijdCKsL0QAw=",
|
||||
"lastModified": 1686391228,
|
||||
"narHash": "sha256-EH9eRzGasV7VH7pSJc0zDm5WIVPSFEtlaASs7GvHeKk=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "adc881336d6b81368b07e8a5b12df343f0ac5e67",
|
||||
"revCount": 41,
|
||||
"rev": "c61008f5207468c73ef92257e94c93126695efaa",
|
||||
"revCount": 45,
|
||||
"type": "git",
|
||||
"url": "https://git.stranger.systems/nix/java"
|
||||
},
|
||||
|
@ -306,11 +348,11 @@
|
|||
},
|
||||
"nixlib": {
|
||||
"locked": {
|
||||
"lastModified": 1681001314,
|
||||
"narHash": "sha256-5sDnCLdrKZqxLPK4KA8+f4A3YKO/u6ElpMILvX0g72c=",
|
||||
"lastModified": 1685840432,
|
||||
"narHash": "sha256-VJIbiKsY7Xy4E4WcgwUt/UiwYDmN5BAk8tngAjcWsqY=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "367c0e1086a4eb4502b24d872cea2c7acdd557f4",
|
||||
"rev": "961e99baaaa57f5f7042fe7ce089a88786c839f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -327,11 +369,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685446848,
|
||||
"narHash": "sha256-vEU1jynjDXwOJESHeJyABqbY/Y+DoihZq9iDVtYgrMg=",
|
||||
"lastModified": 1686644215,
|
||||
"narHash": "sha256-FYa25w7gt8FqzWLl4UuwLLG7BiKZiAW/PFGbXWW6UAc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-generators",
|
||||
"rev": "b6114e214e5b546c4cceccd33ee6b72294a76b60",
|
||||
"rev": "f17fb67fc81a9f3b166cee711089466ba6617154",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -342,11 +384,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1684899633,
|
||||
"narHash": "sha256-NtwerXX8UFsoNy6k+DukJMriWtEjQtMU/Urbff2O2Dg=",
|
||||
"lastModified": 1686452266,
|
||||
"narHash": "sha256-zLKiX0iu6jZFeZDpR1gE6fNyMr8eiM8GLnj9SoUCjFs=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "4cc688ee711159b9bcb5a367be44007934e1a49d",
|
||||
"rev": "2a807ad6e8dc458db08588b78cc3c0f0ec4ff321",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -389,11 +431,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1685758009,
|
||||
"narHash": "sha256-IT4Z5WGhafrq+xbDTyuKrRPRQ1f+kVOtE+4JU1CHFeo=",
|
||||
"lastModified": 1686392259,
|
||||
"narHash": "sha256-hqSS9hKhWldIZr1bBp9xKhIznnGPICGKzuehd2LH0UA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "eaf03591711b46d21abc7082a8ebee4681f9dbeb",
|
||||
"rev": "ef24b2fa0c5f290a35064b847bc211f25cb85c88",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -405,11 +447,11 @@
|
|||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1685655444,
|
||||
"narHash": "sha256-6EujQNAeaUkWvpEZZcVF8qSfQrNVWFNNGbUJxv/A5a8=",
|
||||
"lastModified": 1686501370,
|
||||
"narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e635192892f5abbc2289eaac3a73cdb249abaefd",
|
||||
"rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -421,11 +463,27 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1685801374,
|
||||
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
|
||||
"lastModified": 1686501370,
|
||||
"narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
|
||||
"rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1686513595,
|
||||
"narHash": "sha256-H3JNqj7TEiMx5rd8lRiONvgFZvmf3kmwHI2umDdqgFY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "bb8b5735d6f7e06b9ddd27de115b0600c1ffbdb4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -435,7 +493,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1667292599,
|
||||
"narHash": "sha256-7ISOUI1aj6UKMPIL+wwthENL22L3+A9V+jS8Is3QsRo=",
|
||||
|
@ -451,7 +509,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1667085676,
|
||||
"narHash": "sha256-jPHYYoSdrV3ypWG4oi9SUeI2MU6dLjxM88+9io5Rrx0=",
|
||||
|
@ -542,12 +600,13 @@
|
|||
"emacs": "emacs",
|
||||
"flake-utils": "flake-utils_2",
|
||||
"home-manager": "home-manager",
|
||||
"hyprland": "hyprland",
|
||||
"idris2": "idris2",
|
||||
"java": "java",
|
||||
"nix-on-droid": "nix-on-droid",
|
||||
"nixos-generators": "nixos-generators",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"quilt-server": "quilt-server",
|
||||
"scripts": "scripts",
|
||||
|
@ -558,7 +617,7 @@
|
|||
"scripts": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_4",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"swaywm-toggler": "swaywm-toggler"
|
||||
},
|
||||
"locked": {
|
||||
|
@ -584,11 +643,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685848844,
|
||||
"narHash": "sha256-Iury+/SVbAwLES76QJSiKFiQDzmf/8Hsq8j54WF2qyw=",
|
||||
"lastModified": 1686453485,
|
||||
"narHash": "sha256-75iPAcS6xuw4SNfqLmFCi9wWG1JmDNKaC8l3WJUkmDk=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "a522e12ee35e50fa7d902a164a9796e420e6e75b",
|
||||
"rev": "cb85e297937af1bd1434cf5f85a3f86a21dc8207",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -600,7 +659,7 @@
|
|||
"swaywm-toggler": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_5",
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1667366374,
|
||||
|
@ -677,6 +736,24 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"wlroots": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"host": "gitlab.freedesktop.org",
|
||||
"lastModified": 1686573751,
|
||||
"narHash": "sha256-5vnFxEMvn4wzT+XKR5Jo8VSn1hXrdf/mWuTmdHhRFBs=",
|
||||
"owner": "wlroots",
|
||||
"repo": "wlroots",
|
||||
"rev": "6e8fb5509f2c94d09d4efa0f9b1f40b37bf73863",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
"host": "gitlab.freedesktop.org",
|
||||
"owner": "wlroots",
|
||||
"repo": "wlroots",
|
||||
"type": "gitlab"
|
||||
}
|
||||
},
|
||||
"wsl": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
|
@ -686,11 +763,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1682982995,
|
||||
"narHash": "sha256-PK0pSY48JkcLDFphafjpLqeTDs0XUqGMHjsiNuEq5s0=",
|
||||
"lastModified": 1686480427,
|
||||
"narHash": "sha256-cs2cg+x21jM3e7gOX9zYRh/19i8DFInBDLtUWMEAdvA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NixOS-WSL",
|
||||
"rev": "c5d7db84c422be515dac8fc26420900c349374e8",
|
||||
"rev": "c192f97d59acb878fd1f2f6f362c8632d1e8426e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -698,6 +775,31 @@
|
|||
"repo": "NixOS-WSL",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"xdph": {
|
||||
"inputs": {
|
||||
"hyprland-protocols": [
|
||||
"hyprland",
|
||||
"hyprland-protocols"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"hyprland",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1685385764,
|
||||
"narHash": "sha256-r+XMyOoRXq+hlfjayb+fyi9kq2JK48TrwuNIAXqlj7U=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "xdg-desktop-portal-hyprland",
|
||||
"rev": "4d9ff0c17716936e0b5ca577a39e263633901ed1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "xdg-desktop-portal-hyprland",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
15
flake.nix
15
flake.nix
|
@ -9,6 +9,7 @@
|
|||
url = "github:nix-community/home-manager/release-23.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
nix-on-droid = {
|
||||
url = "github:t184256/nix-on-droid";
|
||||
inputs = {
|
||||
|
@ -53,7 +54,8 @@
|
|||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils, sops-nix
|
||||
, home-manager, darwin, nixos-generators, wsl, nix-on-droid, ... }@inputs:
|
||||
, home-manager, hyprland, darwin, nixos-generators, wsl, nix-on-droid, ...
|
||||
}@inputs:
|
||||
let
|
||||
makeNixosSystem =
|
||||
{ system, hostName, extraModules ? [ ], ourNixpkgs ? nixpkgs }:
|
||||
|
@ -63,6 +65,7 @@
|
|||
modules = [
|
||||
sops-nix.nixosModules.sops
|
||||
home-manager.nixosModules.home-manager
|
||||
hyprland.nixosModules.default
|
||||
./modules/linux/default.nix
|
||||
({ pkgs, lib, config, ... }: {
|
||||
# Configure hostname
|
||||
|
@ -80,7 +83,10 @@
|
|||
inputs = inputs;
|
||||
nixosConfig = config;
|
||||
};
|
||||
sharedModules = [ ./home-manager/linux/default.nix ];
|
||||
sharedModules = [
|
||||
./home-manager/linux/default.nix
|
||||
hyprland.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
})
|
||||
] ++ extraModules;
|
||||
|
@ -253,16 +259,15 @@
|
|||
pname = "discord-electron";
|
||||
binaryName = "DiscordCanary";
|
||||
desktopName = "Discord (Wayland)";
|
||||
version = "0.0.158";
|
||||
version = "0.0.159";
|
||||
src = pkgs.fetchurl {
|
||||
url =
|
||||
"https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
||||
hash = "sha256-vEkH8erhTP03/hU3TJqAULgaZMfTJl/zPrebEBa5ktA=";
|
||||
hash = "sha256-rhfp07qojSDJoQayyEwzunHWOsXIR3S42vN4635KGDI=";
|
||||
};
|
||||
electron = pkgs.electron_22;
|
||||
};
|
||||
swayimg = pkgs.callPackage ./packages/swayimg/default.nix { };
|
||||
layman = pkgs.callPackage ./packages/layman/default.nix { };
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
@ -6,7 +6,9 @@ in with lib; {
|
|||
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.swaylock-effects;
|
||||
swaylock-command = ''
|
||||
${swaylock-package}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3'';
|
||||
layman-package = inputs.self.packages.${pkgs.system}.layman;
|
||||
fuzzel-command = ''
|
||||
fuzzel -f "Iosevka Sans Quasi" -b "103c48ff" -S "adbcbcff" -s "184956ff" -t "72898fff" -B 5 -r 5 -C "ed8649ff"
|
||||
'';
|
||||
wob-package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.wob;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
|
@ -46,17 +48,146 @@ in with lib; {
|
|||
# Productivity
|
||||
libreoffice-fresh
|
||||
## Sway addons
|
||||
# sworkstyle - Automatic workspace renaming
|
||||
swayest-workstyle
|
||||
font-awesome
|
||||
layman-package
|
||||
wob-package
|
||||
# For fancy x11 scaling
|
||||
sommelier
|
||||
# Polkit
|
||||
libsForQt5.polkit-kde-agent
|
||||
polkit_gnome
|
||||
];
|
||||
#########################
|
||||
## Hyprland
|
||||
#########################
|
||||
# Enable and configure hyperland
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
recommendedEnvironment = true;
|
||||
systemdIntegration = false;
|
||||
extraConfig = ''
|
||||
env = XCURSOR_SIZE,24
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
follow_mouse = 1
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
border_size = 3
|
||||
col.active_border = rgba(3fc5b7ee) rgba(70b433ee) 45deg
|
||||
col.inactive_border = rgba(252525aa)
|
||||
layout = dwindle
|
||||
}
|
||||
decoration {
|
||||
rounding = 10
|
||||
blur = true
|
||||
blur_size = 3
|
||||
blur_passes = 1
|
||||
blur_new_optimizations = true
|
||||
drop_shadow = true
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(181818ee)
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true;
|
||||
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 = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # you probably want this
|
||||
}
|
||||
|
||||
gestures {
|
||||
workspace_swipe = false
|
||||
}
|
||||
|
||||
$mainMod = SUPER
|
||||
|
||||
bind = $mainMod, Q, exec, alacritty
|
||||
bind = $mainMod, C, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, fuzzel -f "Iosevka Sans Quasi" -b "103c48ff" -S "adbcbcff" -s "184956ff" -t "72898fff" -B 5 -r 5 -C "ed8649ff"
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, Z, exec, ${swaylock-command}
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, j, 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
|
||||
|
||||
# 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
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# systemd integration
|
||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && sleep 2 && systemctl --user start hyprland-session.target
|
||||
'';
|
||||
};
|
||||
|
||||
# systemd session target
|
||||
# Specified manually so we can work around an issue with the loading
|
||||
systemd.user.targets.hyprland-session = {
|
||||
Unit = {
|
||||
Description = "Hyprland compositor session";
|
||||
Documentation = [ "man:systemd.special(7)" ];
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
Wants = [ "graphical-session-pre.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
};
|
||||
#########################
|
||||
## Sway
|
||||
#########################
|
||||
wayland.windowManager.sway = let modifier = "Mod4";
|
||||
|
@ -68,11 +199,11 @@ in with lib; {
|
|||
gtk = true;
|
||||
};
|
||||
extraSessionCommands = ''
|
||||
# Make qt theming work
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
# Prepare for wob
|
||||
export WOBSOCK="$XDG_RUNTIME_DIR/wob.sock"
|
||||
rm -rf $WOBSOCK && mkfifo $WOBSOCK
|
||||
# Make qt theming work
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
# Prepare for wob
|
||||
export WOBSOCK="$XDG_RUNTIME_DIR/wob.sock"
|
||||
rm -rf $WOBSOCK && mkfifo $WOBSOCK
|
||||
'';
|
||||
config = {
|
||||
# Startup wob
|
||||
|
@ -116,7 +247,7 @@ in with lib; {
|
|||
terminal = "alacritty";
|
||||
# Use krunner (from kde) as our launcher
|
||||
menu = ''
|
||||
fuzzel -f "Iosevka Sans Quasi" -b "103c48ff" -S "adbcbcff" -s "184956ff" -t "72898fff" -B 5 -r 5 -C "ed8649ff"
|
||||
${fuzzel-command}
|
||||
'';
|
||||
# Use waybar, but through systemd
|
||||
bars = [
|
||||
|
@ -218,74 +349,6 @@ in with lib; {
|
|||
#########################
|
||||
## Sway Addons
|
||||
#########################
|
||||
## swayest_workstyle
|
||||
# first setup the service
|
||||
systemd.user.services.sworkstyle = {
|
||||
Unit = {
|
||||
Description = "sworkstyle - sway workspace renamer";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = ''
|
||||
${pkgs.swayest-workstyle}/bin/sworkstyle
|
||||
'';
|
||||
Restart = "always";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
# then setup the configuration
|
||||
xdg.configFile."sworkstyle" = {
|
||||
target = "sworkstyle/config.toml";
|
||||
text = ''
|
||||
[matching]
|
||||
'firefox-beta' = ''
|
||||
'emacs' = ''
|
||||
'signal' = ''
|
||||
'chrome-messages.google.com__web-Default' = ''
|
||||
'chrome-app.cinny.in__-Default' = ''
|
||||
'chrome-messenger.com__-Default' = ''
|
||||
'chrome-localhost__iris_-Default' = ''
|
||||
'org.jellyfin.' = ''
|
||||
'Mattermost' = ''
|
||||
'';
|
||||
};
|
||||
## layman
|
||||
# First setup the service
|
||||
systemd.user.services.layman = {
|
||||
Unit = {
|
||||
Description = "layman - sway layout manager";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = ''
|
||||
${layman-package}/bin/layman
|
||||
'';
|
||||
Restart = "always";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
# then setup the configuration
|
||||
xdg.configFile."layman" = {
|
||||
target = "layman/config.toml";
|
||||
text = ''
|
||||
# The `layman` section configures options that apply to the layman daemon, and any fallback
|
||||
# values for options not set in a [workspace] or [output] section.
|
||||
[layman]
|
||||
defaultLayout = "none" # The default WLM to assign to a workspace
|
||||
excludedWorkspaces = [] # Numbers of workspaces to be excuded
|
||||
excludedOutputs = [] # Names of outputs to be excuded
|
||||
debug = true # Enable logging debug messages globaly
|
||||
depthLimit = 0 # Autotiling: Default depth limit (disabled) for all workspaces
|
||||
stackLayout = "splitv" # MasterStack: Default stack layout for all workspaces
|
||||
stackSidet = "left" # MasterStack: Default stack position for all workspaces
|
||||
masterWidth = 70 # MasterStack: Default master width for all workspaces
|
||||
'';
|
||||
onChange = ''
|
||||
${layman-package}/bin/layman || true
|
||||
'';
|
||||
};
|
||||
# Setup polkit as a service
|
||||
systemd.user.services.polkit-gnome = {
|
||||
Unit = {
|
||||
|
@ -358,26 +421,95 @@ in with lib; {
|
|||
}
|
||||
];
|
||||
};
|
||||
systemd.user.services.swayidle = {
|
||||
Install = { WantedBy = [ "hyprland-session.target" ]; };
|
||||
};
|
||||
#########################
|
||||
## Waybar
|
||||
#########################
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".waybar;
|
||||
package =
|
||||
inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".waybar.overrideAttrs
|
||||
(old: { mesonFlags = old.mesonFlags ++ [ "-Dexperimental=true" ]; });
|
||||
systemd = { enable = false; };
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
height = 27;
|
||||
modules-left = [ "sway/workspaces" "sway/mode" ];
|
||||
modules-center = [ "sway/window" ];
|
||||
modules-right = [ "mpd" "clock" "tray" ];
|
||||
"sway/workspaces" = { disable-scroll = true; };
|
||||
"sway/window" = { icon = true; };
|
||||
position = "top";
|
||||
height = 30;
|
||||
spacing = 4;
|
||||
margin-top = 5;
|
||||
margin-bottom = 0;
|
||||
# modules-left = [ "wlr/workspaces" "hyprland/submap" ];
|
||||
# modules-center = [ "hyprland/window" ];
|
||||
# modules-right = [ "mpd" "clock" "tray" ];
|
||||
modules-center = [
|
||||
"custom/launcher"
|
||||
"wlr/workspaces"
|
||||
"mpd"
|
||||
# "hyprland/window"
|
||||
"idle_inhibitor"
|
||||
"pulseaudio"
|
||||
"network"
|
||||
"cpu"
|
||||
"memory"
|
||||
# "temperature"
|
||||
"tray"
|
||||
"clock"
|
||||
# "custom/power"
|
||||
];
|
||||
"custom/launcher" = {
|
||||
format = " ";
|
||||
on-click = fuzzel-command;
|
||||
on-click-right = "killall fuzzel";
|
||||
};
|
||||
"idle_inhibitor" = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
activated = "";
|
||||
deactivated = "";
|
||||
};
|
||||
};
|
||||
pulseaudio = {
|
||||
scroll-step = 1;
|
||||
format = "{volume}% {icon}";
|
||||
format-bluetooth = "{volume}% {icon}";
|
||||
format-bluetooth-muted = "{icon} {format_source}";
|
||||
format-muted = "{format_source}";
|
||||
format-source = "";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
hands-free = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [ "" "" "" ];
|
||||
};
|
||||
on-click = "pavucontrol";
|
||||
};
|
||||
network = {
|
||||
# // "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
format-ethernet = "Connected ";
|
||||
tooltip-format = "{ifname} via {gwaddr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "Disconnected ⚠";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
on-click-right = "bash ~/.config/rofi/wifi_menu/rofi_wifi_menu";
|
||||
};
|
||||
cpu = {
|
||||
format = "{usage}% ";
|
||||
tooltip = false;
|
||||
};
|
||||
memory = { format = "{}% ({used}GB/{total}GB) "; };
|
||||
"tray" = {
|
||||
icon-size = 20;
|
||||
spacing = 10;
|
||||
};
|
||||
"clock" = { format = "{:%I:%M%p %Y-%m-%d}"; };
|
||||
"window" = { icon = true; };
|
||||
"tray" = { spacing = 5; };
|
||||
"mpd" = {
|
||||
format =
|
||||
"{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})";
|
||||
|
@ -396,15 +528,16 @@ in with lib; {
|
|||
};
|
||||
style = ''
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Iosevka Sans Quasi;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #103c48;
|
||||
border: 2px solid #2d5b69;
|
||||
color: #adbcbc;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
@ -413,50 +546,35 @@ in with lib; {
|
|||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: #184956;
|
||||
color: #72898f;
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each workspace name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: #1f1f1f;
|
||||
color: #ffffff;
|
||||
border-radius: 20px;
|
||||
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
background: lightblue;
|
||||
color: black;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #2d5b69;
|
||||
color: #adbcbc;
|
||||
/* box-shadow: inset 0 -3px #ffffff; */
|
||||
#workspaces button.active {
|
||||
background: #3f3f3f;
|
||||
}
|
||||
|
||||
#workspaces button.active:hover {
|
||||
background: lightblue;
|
||||
color: black;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #2d5b69;
|
||||
color: #fa5750;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
|
@ -474,32 +592,45 @@ in with lib; {
|
|||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#custom-launcher,
|
||||
#custom-power,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: black;
|
||||
}
|
||||
#mpd {
|
||||
background-color: #8EC5FC;
|
||||
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
|
||||
color: black;
|
||||
border-radius: 20px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
margin: 0px 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
border: 2px solid #41c7b9;
|
||||
background-color: #184956;
|
||||
color: #41c7b9;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
border-radius: 0px 20px 20px 0px;
|
||||
margin-right: 4px;
|
||||
|
||||
}
|
||||
|
||||
#battery {
|
||||
|
@ -534,56 +665,104 @@ in with lib; {
|
|||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: red;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: red;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
background-color: #8EC5FC;
|
||||
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
|
||||
color: black;
|
||||
border-radius: 20px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
background-color: #8EC5FC;
|
||||
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
|
||||
color: black;
|
||||
border-radius: 20px;
|
||||
margin-right: 5px;
|
||||
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
background-color: #8EC5FC;
|
||||
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
|
||||
color: black;
|
||||
border-radius: 20px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#custom-power{
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
font-size: 16px;
|
||||
border-radius: 19px;
|
||||
|
||||
}
|
||||
#custom-launcher{
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
font-size: 18px;
|
||||
border-radius: 20px;
|
||||
|
||||
}
|
||||
|
||||
#custom-updater {
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
|
@ -591,68 +770,55 @@ in with lib; {
|
|||
}
|
||||
|
||||
#tray {
|
||||
background-color: #4695f7;
|
||||
border: 2px solid #58a3ff;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(-45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
border-radius: 20px 0px 0px 20px;
|
||||
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
border-radius: 20px 0px 0px 20px;
|
||||
|
||||
#mpd {
|
||||
color: #adbcbc;
|
||||
border: 2px solid #75b938;
|
||||
background-color: #184956;
|
||||
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
color: #dbb32d;
|
||||
border: 2px solid #dbb32d;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
color: #fa5750;
|
||||
border: 2px solid #fa5750;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
color: #f275be;
|
||||
border: 2px solid #f275be;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
background-color: #FA8BFF;
|
||||
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
|
||||
color: black;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
padding: 0px 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
|
@ -672,7 +838,7 @@ in with lib; {
|
|||
Service = {
|
||||
ExecStart = "${config.programs.waybar.package}/bin/waybar";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||
ExecstartPost = "${pkgs.coreutils}/bin/sleep 1";
|
||||
ExecStartPost = "${pkgs.coreutils}/bin/sleep 1";
|
||||
Restart = "on-failure";
|
||||
KillMode = "mixed";
|
||||
};
|
||||
|
|
|
@ -79,6 +79,9 @@ in {
|
|||
# Setup home manager
|
||||
home-manager.users.nathan = import ./home.nix;
|
||||
|
||||
# Disable session persistance
|
||||
services.logind.killUserProcesses = true;
|
||||
|
||||
# TPM setup
|
||||
security = { tpm2 = { enable = true; }; };
|
||||
|
||||
|
|
|
@ -35,26 +35,14 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Sway background
|
||||
|
||||
# Spin up glpaper as a user service so we can have it restart on failure (liable due to kvm switch
|
||||
# disconnecting input)
|
||||
systemd.user.services.glpaper-dp1 = {
|
||||
Unit = {
|
||||
Description = "glpaper (DP-1)";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = ''
|
||||
/etc/profiles/per-user/nathan/bin/glpaper DP-1 ${
|
||||
../../custom-files/sway/selen.frag
|
||||
}
|
||||
'';
|
||||
Restart = "always";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
# Hyprland outputs
|
||||
wayland.windowManager.hyprland.extraConfig = ''
|
||||
monitor=DP-1,preferred,auto,1.4,bitdepth,10
|
||||
input {
|
||||
sensitivity = -0.3
|
||||
# accel_profile = flat
|
||||
}
|
||||
'';
|
||||
|
||||
# Gammastep
|
||||
services.gammastep = {
|
||||
|
|
|
@ -239,10 +239,12 @@ in {
|
|||
substituters = [
|
||||
"https://nix-cache.mccarty.io/"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://hyprland.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nathan-nix-cache:R5/0GiItBM64sNgoFC/aSWuAopOAsObLcb/mwDf335A="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -58,6 +58,14 @@ in with lib; {
|
|||
wrapperFeatures.gtk = true;
|
||||
# package = null;
|
||||
};
|
||||
# Enable and configure hyperland
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland = {
|
||||
enable = true;
|
||||
hidpi = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; };
|
||||
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ pkgs, lib, pythonPkgs ? pkgs.python311Packages }:
|
||||
let
|
||||
vals = builtins.fromJSON (builtins.readFile ../../sources/layman.json);
|
||||
inherit pythonPkgs;
|
||||
f = { buildPythonPackage, i3ipc, setproctitle, tomli, setuptools }:
|
||||
buildPythonPackage rec {
|
||||
pname = "layman";
|
||||
version = "0.0.1";
|
||||
format = "pyproject";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "frap129";
|
||||
repo = "layman";
|
||||
rev = vals.rev;
|
||||
hash = vals.hash;
|
||||
};
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
propagatedBuildInputs = [ i3ipc setproctitle tomli ];
|
||||
};
|
||||
in pythonPkgs.callPackage f { }
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"rev": "67d8f95f4693d3a1ffa2e7d4dccba4e066dc56a0",
|
||||
"hash": "sha256-SuedE7AUmZha50zwD0iuBMrQsYoLiJFPbkV4BgnKnCc="
|
||||
}
|
|
@ -15,15 +15,3 @@ jq --null-input \
|
|||
'{"version": $version, "url": $url, "hash": $hash}' \
|
||||
> $DIRECTORY/swayimg.json
|
||||
echo "swayimg now at $SWAYIMG_VERSION"
|
||||
|
||||
# Update layman
|
||||
LAYMAN_BRANCH=$(curl https://api.github.com/repos/frap129/layman | jq -r '.default_branch')
|
||||
LAYMAN_REV=$(curl https://api.github.com/repos/frap129/layman/git/refs/heads/$LAYMAN_BRANCH | \
|
||||
jq -r '.object.sha')
|
||||
LAYMAN_HASH=$(nix-prefetch fetchFromGitHub --owner frap129 --repo layman --rev $LAYMAN_REV)
|
||||
jq --null-input \
|
||||
--arg rev "$LAYMAN_REV" \
|
||||
--arg hash "$LAYMAN_HASH" \
|
||||
'{"rev": $rev, "hash": $hash}' \
|
||||
> $DIRECTORY/layman.json
|
||||
echo "layman now at $LAYMAN_REV"
|
||||
|
|
Loading…
Reference in New Issue