local task_e = TaskE or '' hl.on('hyprland.start', function () hl.exec_cmd('systemctl --user start hyprland-session.target') hl.exec_cmd('dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP') hl.exec_cmd( task_e .. 'dunst & ' .. task_e .. 'waybar & ' .. task_e .. 'fcitx5 & ' .. task_e .. 'hyprpaper' ) end) hl.on('hyprland.shutdown', function () os.execute('systemctl --user stop hyprland-session.target && sleep 0.1') end)