Add hyprland utilities

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-25 17:31:49 +03:00
parent 193c665aa4
commit a69695dd73
22 changed files with 162 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
{ config, inputs, pkgs, ... }:
{ config, inputs, ... }:
{
imports = [
@@ -21,14 +21,7 @@
./options/home-manager/theme
];
home = {
packages = with pkgs; [
pavucontrol
];
stateVersion = "24.05";
};
home.stateVersion = "24.05";
systemd.user.startServices = "sd-switch";
nix.settings = config.nix.settings;
}];

View File

@@ -7,6 +7,11 @@ let
runtimeInputs = with pkgs; [ coreutils-full ];
bashOptions = [ "nounset" "pipefail" ];
text = ''
if [ -z "$WAYLAND_DISPLAY" ]; then
echo "No Wayland session active. Exiting."
exit 0
fi
[ ! -L "${cfg.configDir}/wallpaper" ] && ln -sf "${cfg.wallpaper}" "${cfg.configDir}/wallpaper"
[ ! -f "${cfg.configDir}/mode" ] && echo "${cfg.mode}" > "${cfg.configDir}/mode"