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.
20 lines
749 B
20 lines
749 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('exec ' .. task_e .. 'mako')
|
|
hl.exec_cmd('exec ' .. task_e .. 'waybar')
|
|
hl.exec_cmd('exec ' .. task_e .. 'fcitx5')
|
|
hl.exec_cmd('exec ' .. task_e .. 'hyprpaper')
|
|
end)
|
|
|
|
hl.on('hyprland.shutdown', function()
|
|
os.execute('systemctl --user stop hyprland-session.target && sleep 0.1')
|
|
end)
|
|
|
|
hl.on('window.close', function(w)
|
|
if w.class == 'org.godotengine.Editor' and string.sub(w.title, -7) == '(DEBUG)' then
|
|
hl.dispatch(hl.dsp.focus { window = 'initialtitle:Godot' })
|
|
end
|
|
end)
|
|
|