Files
dotfiles/.config/hypr/autostart.lua
T

70 lines
1.6 KiB
Lua
Raw Normal View History

2026-08-16 16:57:29 +01:00
hl.on('hyprland.start', function()
2026-09-02 14:30:16 +01:00
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'
2026-09-27 17:06:16 +01:00
exec 'station-bg-set'
2026-09-30 17:03:12 +01:00
-- hl.dispatch(
-- dispatch_exec(
-- 'station-launch-tui btop',
-- { move = { workspace = 'special:monitor' } }
-- )
-- )
2026-09-07 17:56:47 +01:00
local monitors = hl.get_monitors()
for j = #monitors, 1, -1 do
local monitor = monitors[j]
2026-09-26 22:45:43 +01:00
hl.dispatch(hl.dsp.focus { workspace = 'name:Home_' .. j })
2026-09-07 17:56:47 +01:00
end
2026-09-02 14:30:16 +01:00
end)
hl.on('config.reloaded', function()
toggle_laptop_monitor()
2026-09-30 17:03:12 +01:00
-- exec(
-- 'station-launch-tui btop',
-- { move = { workspace = 'special:monitor' } }
-- )
2026-06-09 21:53:08 +01:00
end)
2026-08-16 16:57:29 +01:00
2026-10-04 11:06:32 +01:00
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