diff --git a/modules/home/apps/default.nix b/modules/home/apps/default.nix index 137e07d..58c8f43 100644 --- a/modules/home/apps/default.nix +++ b/modules/home/apps/default.nix @@ -96,15 +96,16 @@ in { ssh = "kitty +kitten ssh"; }; - home.sessionVariables = { + home.sessionVariables = rec { EDITOR = "nvim"; - VISUAL = "nvim"; + VISUAL = EDITOR; TERMINAL = "kitty"; BROWSER = "google-chrome-stable"; + DEFAULT_BROWSER = BROWSER; }; xdg.enable = true; xdg.mimeApps = { - enable = false; + enable = true; defaultApplications = { "x-scheme-handler/http" = browser; "x-scheme-handler/https" = browser; diff --git a/modules/home/colors/default.nix b/modules/home/colors/default.nix index e851f8b..39cb87a 100644 --- a/modules/home/colors/default.nix +++ b/modules/home/colors/default.nix @@ -17,6 +17,7 @@ in rec { ]; colorScheme = lib.mkDefault specialization.dark.configuration.colorScheme; + home.file.".local/state/theme".text = lib.mkDefault "dark"; darkColors = specialization.dark.configuration.colorScheme.colors; specialization = { dark.configuration = { diff --git a/modules/home/hyprland/default.nix b/modules/home/hyprland/default.nix index 88806ee..977fc15 100644 --- a/modules/home/hyprland/default.nix +++ b/modules/home/hyprland/default.nix @@ -33,7 +33,6 @@ in { extraConfig = builtins.readFile ./hyprland.conf; }; - home.file."wallpapers".source = ../../../wallpapers; home.file.".config/hypr/wallpaper.sh" = { source = ./wallpaper.sh; executable = true; diff --git a/modules/home/hyprland/hyprland.conf b/modules/home/hyprland/hyprland.conf index 116d5de..12d5d56 100644 --- a/modules/home/hyprland/hyprland.conf +++ b/modules/home/hyprland/hyprland.conf @@ -179,7 +179,7 @@ bind = $mainMod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-cop $WOBSOCK = $XDG_RUNTIME_DIR/wob.sock # Use exec and killall to refresh the colorscheme of wob. -exec=killall wob && rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob +exec=killall wob ; rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob bindle=,XF86MonBrightnessDown,exec,brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK bindle=,XF86MonBrightnessUp,exec,brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK diff --git a/modules/nixos/nix/default.nix b/modules/nixos/nix/default.nix index 0732f00..3e9ed86 100644 --- a/modules/nixos/nix/default.nix +++ b/modules/nixos/nix/default.nix @@ -46,6 +46,7 @@ in { "downloads" "stuff" "projects" + "wallpapers" { directory = ".gnupg"; mode = "0700"; } { directory = ".ssh"; mode = "0700"; } ".local/share/direnv"