From 9ec800b97e31297434f0aa6d3582c0c5e35508a7 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 12 Feb 2025 17:36:55 +0100 Subject: [PATCH] change wallpaper location on wayland/hyprland, sync script broken --- homeConfigs/home.nix | 2 +- homeConfigs/modules/sync.nix | 15 +++++++++++++++ homeConfigs/modules/wayland/hyprland.nix | 2 +- homeConfigs/modules/wayland/hyprlock.nix | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 homeConfigs/modules/sync.nix diff --git a/homeConfigs/home.nix b/homeConfigs/home.nix index 1a7afdb..843982a 100644 --- a/homeConfigs/home.nix +++ b/homeConfigs/home.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/10/17 18:15:38 by tomoron #+# #+# # -# Updated: 2025/02/12 16:41:58 by tomoron ### ########.fr # +# Updated: 2025/02/12 16:49:55 by tomoron ### ########.fr # # # # **************************************************************************** # diff --git a/homeConfigs/modules/sync.nix b/homeConfigs/modules/sync.nix new file mode 100644 index 0000000..2aac104 --- /dev/null +++ b/homeConfigs/modules/sync.nix @@ -0,0 +1,15 @@ +{ lib, config, pkgs, ... }: + +{ + options.mods.sync.enable = lib.mkOption { + type = lib.types.bool; + default = true; + description = "enable desk_sync command"; + }; + + home.file.".local/bin/desk_sync" = pkgs.writeShellScriptBin "desk_sync" '' + ${pkgs.unison}/ + config = lib.mkIf config.mods.sync.enable { + ''; + }; +} diff --git a/homeConfigs/modules/wayland/hyprland.nix b/homeConfigs/modules/wayland/hyprland.nix index 26d9a1a..6c2dd98 100644 --- a/homeConfigs/modules/wayland/hyprland.nix +++ b/homeConfigs/modules/wayland/hyprland.nix @@ -165,7 +165,7 @@ ]; exec-once = [ - "swaybg -i ~/.config/nitrogen/wallpaper.png&" + "swaybg -i ~/.config/wallpaper.png&" "(sleep 2;activate-linux)&" "waybar&" "alacritty&" diff --git a/homeConfigs/modules/wayland/hyprlock.nix b/homeConfigs/modules/wayland/hyprlock.nix index 314564a..2390654 100644 --- a/homeConfigs/modules/wayland/hyprlock.nix +++ b/homeConfigs/modules/wayland/hyprlock.nix @@ -11,7 +11,7 @@ background = { monitor = ""; - path = "~/.config/nitrogen/wallpaper.png"; + path = "~/.config/wallpaper.png"; blur_passes = 1; };