This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/user/configs/wayland/hyprland/default.nix

40 lines
844 B
Nix
Executable File

{
config,
pkgs,
inputs,
...
}: {
imports = [
../eww
../mako
./settings.nix
];
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
#package = inputs.nixpkgs.legacyPackages.${pkgs.system}.hyprland;
};
home.file.".local/share/kservices5/swww.desktop".text = ''
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=image/jpeg;image/png;image/svg
Actions=setSWWWWallpaper;
Encoding=UTF-8
[Desktop Action setSWWWWallpaper]
Name=Set Image as Wallpaper
Exec=swww img "%f" && ln -sf "%f" ~/.cache/swww/wallpaper
'';
home.packages = [
inputs.hyprland-contrib.packages.${pkgs.system}.hyprprop
pkgs.hyprpicker
pkgs.swww
pkgs.wl-clipboard
pkgs.wl-clipboard-x11
];
}