Files
skygqts/skygqts.nu
T
2026-09-21 10:29:19 -04:00

40 lines
841 B
Nu
Executable File

#!/usr/bin/env nu
const REPO_ROOT = path self | path dirname
# Quickshell SKYG apps
def "main" [] {
help main
}
# Run the app carousel
def "main carousel" [
path_to_config: string # path to JSON config
] {
$env.SKYG_APP_CAROUSEL = $path_to_config
qs -p ($REPO_ROOT | path join "app-carousel")
}
const WS_RENAME_PATH = $REPO_ROOT | path join "workspace-rename"
# Send an IPC call to the running workspace rename bar
def ws-rename-ipc [fn: string] {
qs ipc -p $WS_RENAME_PATH call wsname $fn
}
# Run the workspace rename bar
def "main workspace-rename" [
--daemon (-d) # detach from the terminal
] {
if $daemon {
qs -d -n -p $WS_RENAME_PATH
} else {
qs -n -p $WS_RENAME_PATH
}
}
# Toggle the workspace rename bar
def "main workspace-rename toggle" [] {
ws-rename-ipc "toggle"
}