hl.on('hyprland.start', function() exec 'uwsm-app -- hypridle' exec 'uwsm-app -- mako' exec 'uwsm-app -- fcitx5 --disable notificationitem' exec 'nextcloud' exec '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1' exec 'dbus-update-activation-environment --systemd --all' exec 'station-bg-set' -- hl.dispatch( -- dispatch_exec( -- 'station-launch-tui btop', -- { move = { workspace = 'special:monitor' } } -- ) -- ) local monitors = hl.get_monitors() for j = #monitors, 1, -1 do local monitor = monitors[j] hl.dispatch(hl.dsp.focus { workspace = 'name:Home_' .. j }) end end) hl.on('config.reloaded', function() toggle_laptop_monitor() -- exec( -- 'station-launch-tui btop', -- { move = { workspace = 'special:monitor' } } -- ) end) local events = { 'config.props_refreshed', 'config.reloaded', 'hyprland.shutdown', 'hyprland.start', 'keybinds.submap', 'layer.closed', 'layer.opened', 'monitor.added', 'monitor.focused', 'monitor.layout_changed', 'monitor.removed', 'screenshare.state', 'window.active', 'window.class', 'window.close', 'window.destroy', 'window.fullscreen', 'window.kill', 'window.move_to_workspace', 'window.open', 'window.open_early', 'window.pin', 'window.urgent', 'workspace.active', 'workspace.created', 'workspace.move_to_monitor', 'workspace.removed', 'workspace.special_active', } for _, event in ipairs(events) do hl.on(event, function(data) notify('event: ' .. event, 5000) end) end