From 83f3edf2d350bf309e488ca21b7c7b429b451070 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:03:43 +0100 Subject: [PATCH] Hyprland: Make config more universal adalbert-specific config pulled into adalbert.nix --- home/adalbert.nix | 14 +++++++++++--- home/features/desktop/hyprland/config.nix | 2 -- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/home/adalbert.nix b/home/adalbert.nix index fe0883c..67d2205 100644 --- a/home/adalbert.nix +++ b/home/adalbert.nix @@ -1,5 +1,4 @@ -{inputs, ...}: let -in { +{ inputs, ... }: { imports = [ ./global ./features/desktop/awesome @@ -7,7 +6,6 @@ in { ./features/games ./features/coding ./features/desktop/common/alacritty.nix - # ./features/desktop/common/3d-printing.nix ]; home.packages = [ @@ -21,4 +19,14 @@ in { ]; }; }; + + wayland.windowManager.hyprland = { + settings = { + exec-once = [ + "picokontroller" # volume & light control + "easyeffects --gapplication-service" + "xrandr --output DP-3 --primary" # since wayland doesn't have a concept of primary monitors + ]; + }; + }; } diff --git a/home/features/desktop/hyprland/config.nix b/home/features/desktop/hyprland/config.nix index e60144e..9989259 100644 --- a/home/features/desktop/hyprland/config.nix +++ b/home/features/desktop/hyprland/config.nix @@ -3,14 +3,12 @@ settings = { # autostart exec-once = [ - "picokontroller" # volume & light control "systemctl --user start hyprpolkitagent" # polkit agent "hyprshade on bluelight" # set bluelight shader "fcitx5 -d" # japanese typing "webcord --start-minimized --force-audio-share-support" # discord but some privacy "kdeconnect-indicator & kdeconnect-cli -l" # kde connect "signal-desktop --start-in-tray" - "easyeffects --gapplication-service" "wl-clip-persist --clipboard both &" # Keep Wayland clipboard even after programs close "wl-paste --watch cliphist store &" # Store clipboard contents in cliphist on each change ];