40 lines
1.2 KiB
Lua
40 lines
1.2 KiB
Lua
local color_palette <const> = 'noctis_azureus'
|
|
|
|
local events <const> = {
|
|
AEROSPACE_WORKSPACE_CHANGED = 'aerospace_workspace_changed',
|
|
AEROSPACE_SWITCH = 'aerospace_switch',
|
|
SWAP_MENU_AND_SPACES = 'swap_menu_and_spaces',
|
|
FRONT_APP_SWITCHED = 'front_app_switched',
|
|
UPDATE_WINDOWS = 'update_windows',
|
|
SEND_MESSAGE = 'send_message',
|
|
HIDE_MESSAGE = 'hide_message',
|
|
}
|
|
|
|
local items <const> = {
|
|
SPACES = 'workspaces',
|
|
MENU = 'menu',
|
|
MENU_TOGGLE = 'menu_toggle',
|
|
FRONT_APPS = 'front_apps',
|
|
MESSAGE = 'message',
|
|
VOLUME = 'widgets.volume',
|
|
WIFI = 'widgets.wifi',
|
|
BATTERY = 'widgets.battery',
|
|
CALENDAR = 'widgets.calendar',
|
|
}
|
|
|
|
local aerospace_cmd <const> = '/opt/homebrew/bin/aerospace'
|
|
|
|
local aerospace <const> = {
|
|
LIST_ALL_WORKSPACES = aerospace_cmd .. ' list-workspaces --all',
|
|
GET_CURRENT_WORKSPACE = aerospace_cmd .. ' list-workspaces --focused',
|
|
LIST_WINDOWS = aerospace_cmd .. ' list-windows --workspace focused --format "id=%{window-id}, name=%{app-name}"',
|
|
GET_CURRENT_WINDOW = aerospace_cmd .. ' list-windows --focused --format %{app-name}',
|
|
}
|
|
|
|
return {
|
|
items = items,
|
|
events = events,
|
|
aerospace_cmd = aerospace_cmd,
|
|
aerospace = aerospace,
|
|
color_palette = color_palette,
|
|
}
|