From 83dfab90ec89cd4bb887e1d7fab35d228c51ec8f Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Tue, 22 Oct 2024 10:23:52 +0700 Subject: [PATCH] hyprland: update dbus settings --- home/modules/hyprland/hyprland.nix | 3 +-- home/modules/hyprland/waybar.nix | 2 +- system/modules/hyprland.nix | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home/modules/hyprland/hyprland.nix b/home/modules/hyprland/hyprland.nix index a273cc5..07b37f3 100644 --- a/home/modules/hyprland/hyprland.nix +++ b/home/modules/hyprland/hyprland.nix @@ -17,10 +17,9 @@ in ]; wayland.windowManager.hyprland = { enable = true; - systemd.variables = [ "all" ]; + systemd.variables = [ "--all" ]; settings = { env = [ "DBUS_SESSION_BUS_ADDRESS,unix:path=/run/user/${toString config.profile.user.uid}/bus" ]; - exec-once = lib.mkOrder 5 [ ''${pkgs.dbus}/bin/dbus-update-activation-environment --all'' ]; # window decors general = { gaps_in = 10; diff --git a/home/modules/hyprland/waybar.nix b/home/modules/hyprland/waybar.nix index c44a5b7..03a848a 100644 --- a/home/modules/hyprland/waybar.nix +++ b/home/modules/hyprland/waybar.nix @@ -163,7 +163,7 @@ in rofi-wayland ]; wayland.windowManager.hyprland.settings.exec-once = [ - "sleep 1 && waybar" + "sleep 2 && waybar" "wl-paste --watch cliphist store" ]; programs.waybar = { diff --git a/system/modules/hyprland.nix b/system/modules/hyprland.nix index dd2c38c..72c1f48 100644 --- a/system/modules/hyprland.nix +++ b/system/modules/hyprland.nix @@ -87,7 +87,7 @@ in vt = 5; }; default_session = { - command = ''tuigreet --remember --cmd "dbus-run-session Hyprland"''; + command = ''tuigreet --remember --cmd "Hyprland"''; user = "tigor"; }; };