2024-05-31 03:10:39 +02:00
|
|
|
#!/usr/bin/env nu
|
|
|
|
|
2024-05-31 03:48:46 +02:00
|
|
|
let icon = match ($env.INFO?) {
|
2024-05-31 03:10:39 +02:00
|
|
|
# IDEs
|
|
|
|
"CLion" | "GoLand" | "PhpStorm" | "PyCharm" | RustRover | "WebStorm" | "Xcode" => " ",
|
|
|
|
"Neovide" => " ",
|
|
|
|
|
|
|
|
# developer
|
|
|
|
"Docker" => " ",
|
|
|
|
|
|
|
|
# terminals
|
|
|
|
"Kitty" | "iTerm" | "Terminal" | "WezTerm" => " ",
|
|
|
|
|
|
|
|
# browsers
|
|
|
|
"Chromium" | "Firefox" | "Safari" | "qutebrowser" => " ",
|
|
|
|
|
|
|
|
# system
|
|
|
|
"App Store" => " ",
|
|
|
|
"Books" => " ",
|
|
|
|
"Finder" => " ",
|
|
|
|
"Music" => " ",
|
|
|
|
"Podcasts" => " ",
|
|
|
|
"Photos" => " ",
|
|
|
|
"Preview" => " ",
|
|
|
|
"System Preferences" => " ",
|
|
|
|
|
|
|
|
# chat
|
|
|
|
"Discord" => " ",
|
|
|
|
"Mattermost" => " ",
|
|
|
|
"Slack" => " ",
|
|
|
|
|
|
|
|
# creativity
|
|
|
|
"Affinity Designer" => " ",
|
|
|
|
"Affinity Photo" => " ",
|
|
|
|
"Affinity Publisher" => " ",
|
|
|
|
"Blender" => " ",
|
|
|
|
"Final Cut" => " ",
|
|
|
|
"Garageband" => " ",
|
|
|
|
"Logic Pro X" => " ",
|
|
|
|
"iMovie" => " ",
|
|
|
|
|
|
|
|
# password managers
|
|
|
|
"GPG Keychain" | "KeePassXC" | "LastPass" | "1Password" => " ",
|
|
|
|
|
|
|
|
# other
|
|
|
|
"Audible" => " ",
|
|
|
|
"Pocket Casts" => " ",
|
|
|
|
"Setapp" => " ",
|
|
|
|
"Spotify" => " ",
|
|
|
|
"Steam" => " ",
|
|
|
|
|
|
|
|
_ => " ",
|
|
|
|
}
|
|
|
|
|
|
|
|
(sketchybar
|
2024-05-31 03:48:46 +02:00
|
|
|
--set $env.NAME $"label=($env.INFO? | default '')" $"icon=($icon)"
|
2024-05-31 03:10:39 +02:00
|
|
|
icon.font="Symbols Nerd Font:2048-em:18.0"
|
|
|
|
label.font="Berkeley Mono:Bold:16.0" y_offset="3")
|