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

34 lines
733 B
Nix
Raw Normal View History

2023-10-08 10:51:15 +01:00
{
config,
pkgs,
inputs,
2023-12-01 12:55:49 +00:00
system,
2023-10-08 10:51:15 +01:00
...
2023-12-01 12:55:49 +00:00
}: {
imports = [
2023-12-01 12:55:49 +00:00
./settings.nix
2023-09-24 01:42:00 +01:00
../ags
2023-05-15 21:06:28 +01:00
../wob
];
wayland.windowManager.hyprland = {
enable = true;
2023-12-01 12:55:49 +00:00
package = inputs.hyprland.packages.${system}.hyprland;
};
2023-05-25 15:44:15 +01:00
2023-05-21 21:21:25 +01:00
home.file.".local/share/kservices5/swww.desktop".text = ''
2023-07-01 19:47:43 +01:00
[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
2023-12-01 12:55:49 +00:00
Exec=swww img "%f" && ln -sf "%f" ~/.cache/swww/wallpaper
2023-05-21 21:21:25 +01:00
'';
2023-12-01 12:55:49 +00:00
home.packages = [pkgs.wl-clipboard pkgs.wl-clipboard-x11 pkgs.swww inputs.hyprland-contrib.packages.${system}.hyprprop];
}