local function exit_submap() hl.dispatch(hl.dsp.submap("reset")) end hl.define_submap("groupedlaunch", function() hl.bind("e", function() hl.exec_cmd("systemctl start docker") hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/", { workspace = 1 }) hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/backend/", { workspace = 10 }) hl.exec_cmd("kitty ~/projects/eth/projects/eyetap/frontend/", { workspace = 10 }) hl.exec_cmd("librewolf http://localhost:8081") exit_submap() end, { description = "Launch programs for EYE-TAP development" }) hl.bind("s", function() hl.exec_cmd("kitty ~/projects/eth/eth-summaries/", { workspace = 1 }) hl.exec_cmd("kitty ~/NextCloud/Documents/ETH/Semester5/", { workspace = 3 }) exit_submap() end, { description = "Launch programs to write ETH summaries" }) hl.bind("m", function() hl.exec_cmd("kitty ~/projects/github/MusicPlayer/", { workspace = 1 }) hl.exec_cmd("kitty ~/projects/github/MusicPlayer/backend/go", { workspace = 9 }) hl.exec_cmd("kitty ~/projects/github/MusicPlayer/web/", { workspace = 10 }) exit_submap() end, { description = "Launch programs for MusicPlayer development" }) hl.bind("v", function() hl.exec_cmd("kitty ~/projects/system/vps-docker/", { workspace = 1 }) hl.exec_cmd("alacritty", { workspace = 3 }) hl.exec_cmd("librewolf", { workspace = 11 }) exit_submap() end, { description = "Launch programs for VPS management" }) hl.bind("b", function() hl.exec_cmd("wivrn-dashboard", { workspace = 1 }) hl.exec_cmd("/opt/BSManager/bs-manager", { workspace = 2 }) hl.exec_cmd("steam", { workspace = 3 }) exit_submap() end, { description = "Launch everything for BeatSaber" }) hl.bind("Escape", function() exit_submap() end) end)