# Allow unfree packages
nixpkgs.config.allowUnfree = true;
- programs.hyprland.enable = true;
+ programs.hyprland = {
+ enable = true;
+ withUWSM = true;
+ };
+
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
hyprland
kitty
libnotify
+ gnome-keyring
+
];
programs.steam = {
enable = true;
pkgs,
...
}:
+
+
{
imports = [
./sh.nix
./hyprland/hyprland.nix
+ ./hyprpaper.nix
./ghostty.nix
./obsidian.nix
./fastfetch.nix
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
+
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
];
wayland.windowManager.hyprland = {
enable = true;
+ systemd.enable = false;
settings = {
monitor = [
"DP-3,2560x1440@180.00,0x0,1"
];
exec-once = [
"xrandr --output DP-3 --primary"
- "waybar"
- "[workspace 1 silent] ghostty"
- "[workspace 2 silent] ghostty -e rmpc"
- "[workspace 3 silent] obsidian"
- "[workspace 6 silent] brave"
- "[workspace 7 silent] discord"
- "[workspace 8 silent] steam"
+ "uwsm app -- waybar"
+# "systemctl --user enable --now ./../hyprpaper.service"
+ "[workspace 1 silent] uwsm app -- ghostty"
+ "[workspace 2 silent] uwsm app -- ghostty -e rmpc"
+ "[workspace 3 silent] uwsm app -- obsidian"
+ "[workspace 6 silent] uwsm app -- brave"
+ "[workspace 7 silent] uwsm app -- discord"
+ "[workspace 8 silent] uwsm app -- steam"
];
windowrule = [
"workspace 7 silent, class:(discord)"
--- /dev/null
+{ config, pkgs, ... }:
+let
+ hk_1440 = pkgs.fetchurl {
+ url = "https://raw.githubusercontent.com/Skullheadx/dotfiles/16c0b7ce0cf0a6286554a3bbe60c636871fb75c9/backgrounds/hollowknightbackground_2560x1440.png";
+ hash = "sha256-NyfvBFeEkXe3Z6ZpciJlOEBOMvKQjZKoH9ji2jiqmj8=";
+ };
+ hk_1080 = pkgs.fetchurl {
+ url = "https://raw.githubusercontent.com/Skullheadx/dotfiles/16c0b7ce0cf0a6286554a3bbe60c636871fb75c9/backgrounds/hollowknightbackground_1920x1080.png";
+ hash = "sha256-mCqYc4w+S8aVALo6wMyXrWtCmfw78kIEcFAhxlFNbHQ=";
+ };
+ testImage = pkgs.fetchurl {
+ url = "https://i.redd.it/mvev8aelh7zc1.png";
+ hash = "sha256-lJjIq+3140a5OkNy/FAEOCoCcvQqOi73GWJGwR2zT9w";
+ };
+in
+{
+
+ services.hyprpaper = {
+ enable = true;
+ settings = {
+ ipc = "on";
+ splash = false;
+ preload = [
+ (builtins.toString hk_1440)
+ (builtins.toString hk_1080)
+ ];
+
+ wallpaper = [
+ "DP-3,${builtins.toString hk_1440}"
+ "DP-2,${builtins.toString hk_1080}"
+ ];
+ };
+};}
--- /dev/null
+[Unit]
+Description=Hyprpaper wallpaper utility for Hyprland
+Documentation=man:hyprpaper(1)
+# order startup after WM
+After=graphical-session.target
+
+[Service]
+Type=exec
+# Repurpose XDG Autostart filtering
+ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "Hyprland" ""
+ExecStart=hyprpaper
+Restart=on-failure
+Slice=background-graphical.slice
+
+[Install]
+WantedBy=graphical-session.target
+# Alternatively can be wanted by specific WMs' targets
+# Should also be duplicated in 'After=' to avoid ordering loop
+#WantedBy=wayland-session@hyprland.desktop.target
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
polarity = "dark";
- image = ./backgrounds/hollowknightbackground_2560x1440.png;
+ #image = ./backgrounds/hollowknightbackground_2560x1440.png;
fonts = {
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;