From 88bcb04ad4d26d37b07091d756c13ab0dfcc0ec6 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 13 Aug 2024 15:00:33 -0300 Subject: [PATCH] hyprland: decouple waybar into a script that gets run every config reload --- programs/hyprland/default.nix | 1 + scripts/hyprland/start_apps.sh | 11 +++++++++++ scripts/hyprland/start_services.sh | 10 ---------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100755 scripts/hyprland/start_apps.sh diff --git a/programs/hyprland/default.nix b/programs/hyprland/default.nix index 912acd4..5ccf267 100644 --- a/programs/hyprland/default.nix +++ b/programs/hyprland/default.nix @@ -82,6 +82,7 @@ # Execute your favorite apps at launch exec-once = ~/.local/share/scripts/hyprland/start_services.sh + exec = ~/.local/share/scripts/hyprland/start_apps.sh # Set cursor size. env = HYPRCURSOR_SIZE, 36 diff --git a/scripts/hyprland/start_apps.sh b/scripts/hyprland/start_apps.sh new file mode 100755 index 0000000..36ddb2f --- /dev/null +++ b/scripts/hyprland/start_apps.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# +# Start waybar. +# +waybar & + +# +# Start xwaylandvideobridge +# +xwaylandvideobridge & diff --git a/scripts/hyprland/start_services.sh b/scripts/hyprland/start_services.sh index c47ea64..36a40b4 100755 --- a/scripts/hyprland/start_services.sh +++ b/scripts/hyprland/start_services.sh @@ -10,16 +10,6 @@ dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # /nix/store/$(ls -la /nix/store | rg '^d.*polkit-kde-agent.*\d$' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 & -# -# Start waybar. -# -waybar & - -# -# Start xwaylandvideobridge -# -xwaylandvideobridge & - # ## Start wallpaper daemon and set one. #