initalize

This commit is contained in:
xenomxrph
2025-07-16 15:00:51 +02:00
commit 8d16baf6f1
40 changed files with 2353 additions and 0 deletions

34
sketchybar/constants.lua Normal file
View File

@@ -0,0 +1,34 @@
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 <const> = {
LIST_ALL_WORKSPACES = "aerospace list-workspaces --all",
GET_CURRENT_WORKSPACE = "aerospace list-workspaces --focused",
LIST_WINDOWS = "aerospace list-windows --workspace focused --format \"id=%{window-id}, name=%{app-name}\"",
GET_CURRENT_WINDOW = "aerospace list-windows --focused --format %{app-name}",
}
return {
items = items,
events = events,
aerospace = aerospace,
}