Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
},
"dependencies": {
"@aptabase/electron": "^0.3.1",
"@esbuild/darwin-arm64": "0.19.12",
"@esbuild/darwin-x64": "0.19.12",
"@phosphor-icons/react": "^2.1.10",
"@raycast/api": "^1.104.5",
"electron-builder-notarize": "^1.5.2",
Expand All @@ -57,6 +55,10 @@
"react-dom": "^18.2.0",
"transliteration": "^2.6.1"
},
"optionalDependencies": {
"@esbuild/darwin-arm64": "0.19.12",
"@esbuild/darwin-x64": "0.19.12"
},
"build": {
"appId": "com.supercmd.app",
"productName": "SuperCmd",
Expand Down
48 changes: 48 additions & 0 deletions src/main/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ const SHUTDOWN_ICON_DATA_URL = svgToBase64DataUrl(
'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none"><defs><linearGradient id="sdBg" x1="12" y1="10" x2="52" y2="54" gradientUnits="userSpaceOnUse"><stop stop-color="#fca5a5" stop-opacity="0.7"/><stop offset="1" stop-color="#dc2626" stop-opacity="0.82"/></linearGradient></defs><rect x="8" y="8" width="48" height="48" rx="15" fill="url(#sdBg)"/><g transform="translate(18,18) scale(1.167)" stroke="rgba(255,255,255,0.92)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"/><line x1="12" y1="2" x2="12" y2="12"/></g></svg>'
);

const CONFETTI_ICON_DATA_URL = svgToBase64DataUrl(
'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none"><defs><linearGradient id="cfBg" x1="12" y1="10" x2="52" y2="54" gradientUnits="userSpaceOnUse"><stop stop-color="#f0abfc" stop-opacity="0.7"/><stop offset="1" stop-color="#a21caf" stop-opacity="0.82"/></linearGradient></defs><rect x="8" y="8" width="48" height="48" rx="15" fill="url(#cfBg)"/><g transform="translate(18,18) scale(1.167)" stroke="rgba(255,255,255,0.92)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><path d="M4 20 12 6 20 10 8 16Z"/><path d="M12 6c1-1.2 2.6-1.8 4-1.4"/><circle cx="21" cy="3" r="0.9" fill="rgba(255,255,255,0.92)" stroke="none"/><circle cx="17" cy="1.5" r="0.9" fill="rgba(255,255,255,0.92)" stroke="none"/><circle cx="23" cy="7" r="0.9" fill="rgba(255,255,255,0.92)" stroke="none"/></g></svg>'
);

const FIREWORKS_ICON_DATA_URL = svgToBase64DataUrl(
'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none"><defs><linearGradient id="fwBg" x1="12" y1="10" x2="52" y2="54" gradientUnits="userSpaceOnUse"><stop stop-color="#fde047" stop-opacity="0.7"/><stop offset="1" stop-color="#a16207" stop-opacity="0.82"/></linearGradient></defs><rect x="8" y="8" width="48" height="48" rx="15" fill="url(#fwBg)"/><g transform="translate(18,18) scale(1.167)" stroke="rgba(255,255,255,0.92)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><line x1="12" y1="22" x2="12" y2="14"/><line x1="12" y1="2" x2="12" y2="6"/><line x1="5" y1="9" x2="8" y2="10.5"/><line x1="19" y1="9" x2="16" y2="10.5"/><line x1="7" y1="4" x2="9.5" y2="7"/><line x1="17" y1="4" x2="14.5" y2="7"/><circle cx="12" cy="10" r="1.1" fill="rgba(255,255,255,0.92)" stroke="none"/></g></svg>'
);

const SNOW_ICON_DATA_URL = svgToBase64DataUrl(
'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none"><defs><linearGradient id="snBg" x1="12" y1="10" x2="52" y2="54" gradientUnits="userSpaceOnUse"><stop stop-color="#a5f3fc" stop-opacity="0.7"/><stop offset="1" stop-color="#0e7490" stop-opacity="0.82"/></linearGradient></defs><rect x="8" y="8" width="48" height="48" rx="15" fill="url(#snBg)"/><g transform="translate(18,18) scale(1.167)" stroke="rgba(255,255,255,0.92)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="22"/><line x1="4.2" y1="7" x2="19.8" y2="17"/><line x1="19.8" y1="7" x2="4.2" y2="17"/></g></svg>'
);

const RAIN_ICON_DATA_URL = svgToBase64DataUrl(
'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none"><defs><linearGradient id="rnBg" x1="12" y1="10" x2="52" y2="54" gradientUnits="userSpaceOnUse"><stop stop-color="#a5b4fc" stop-opacity="0.7"/><stop offset="1" stop-color="#3730a3" stop-opacity="0.82"/></linearGradient></defs><rect x="8" y="8" width="48" height="48" rx="15" fill="url(#rnBg)"/><g transform="translate(18,18) scale(1.167)" stroke="rgba(255,255,255,0.92)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/><line x1="8" y1="19" x2="6.5" y2="22"/><line x1="13" y1="19" x2="11.5" y2="22"/></g></svg>'
);

export interface CommandInfo {
id: string;
title: string;
Expand Down Expand Up @@ -1308,6 +1324,38 @@ async function discoverAndBuildCommands(): Promise<CommandInfo[]> {
keywords: ['emoji', 'picker', 'trigger', 'smiley', 'emoticon'],
category: 'system',
},
{
id: 'system-confetti',
title: 'Confetti',
subtitle: 'Celebrate with a burst of confetti',
keywords: ['confetti', 'celebrate', 'party', 'fun', 'congrats', 'congratulations', 'celebration'],
iconDataUrl: CONFETTI_ICON_DATA_URL,
category: 'system',
},
{
id: 'system-fireworks',
title: 'Fireworks',
subtitle: 'Launch a fireworks show',
keywords: ['fireworks', 'rockets', 'celebrate', 'party', 'fun', 'show', 'pyrotechnics'],
iconDataUrl: FIREWORKS_ICON_DATA_URL,
category: 'system',
},
{
id: 'system-snow',
title: 'Snow',
subtitle: 'Let it snow on your screen',
keywords: ['snow', 'snowfall', 'winter', 'christmas', 'fun', 'weather'],
iconDataUrl: SNOW_ICON_DATA_URL,
category: 'system',
},
{
id: 'system-rain',
title: 'Rain',
subtitle: 'Make it rain on your screen',
keywords: ['rain', 'rainfall', 'storm', 'weather', 'fun'],
iconDataUrl: RAIN_ICON_DATA_URL,
category: 'system',
},
{
id: 'system-reset-launcher-position',
title: 'Reset Launcher Position',
Expand Down
Loading