You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
508 B

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)