hyprland: decouple waybar into a script that gets run every config reload

This commit is contained in:
Alexandre Cavalheiro 2024-08-13 15:00:33 -03:00
parent f79dc5f08b
commit 88bcb04ad4
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 12 additions and 10 deletions

View file

@ -82,6 +82,7 @@
# Execute your favorite apps at launch # Execute your favorite apps at launch
exec-once = ~/.local/share/scripts/hyprland/start_services.sh exec-once = ~/.local/share/scripts/hyprland/start_services.sh
exec = ~/.local/share/scripts/hyprland/start_apps.sh
# Set cursor size. # Set cursor size.
env = HYPRCURSOR_SIZE, 36 env = HYPRCURSOR_SIZE, 36

11
scripts/hyprland/start_apps.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
#
# Start waybar.
#
waybar &
#
# Start xwaylandvideobridge
#
xwaylandvideobridge &

View file

@ -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 & /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. ## Start wallpaper daemon and set one.
# #