Skip to content
Merged
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
28 changes: 28 additions & 0 deletions BarWidget.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import QtQuick
import qs.Ui

BarWidget {
id: root
moduleName: "koustav.omnicast"

implicitWidth: button.implicitWidth
implicitHeight: button.implicitHeight

WidgetButton {
id: button
anchors.fill: parent
bar: root.bar
text: "\uf002"
tooltipText: "Omnicast (Alt+Space)"
horizontalMargin: 8.5
onPressed: function(btn) {
if (!root.bar) return
// Right click opens terminal, Left click / middle click toggles Omnicast
if (btn === Qt.RightButton) {
root.bar.run("xdg-terminal-exec")
} else {
root.bar.run("omnicast toggle")
}
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Run: curl -fsSL https://omnicast.best/install | bash
curl -fsSL https://omnicast.best/install | bash
```

*Or via GitHub raw:*
*Or install as an Omarchy Shell Plugin into your bar:*
```bash
curl -fsSL https://raw.githubusercontent.com/KOUSTAV2409/omnicast/main/install.sh | bash
omarchy plugin add https://github.com/KOUSTAV2409/omnicast.git --enable
```

The installer automatically:
Expand Down
8 changes: 7 additions & 1 deletion bin/omnicast
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
# IPC form mirrors omarchy-shell: `qs ipc call -- <target> <method>`
# The `--` is required so methods like `show` are not eaten as qs subcommands.

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
ROOT="$(cd -P "$(dirname "$SOURCE")/.." && pwd)"
export OMNICAST_ROOT="$ROOT"
CONFIG_PATH="$ROOT/src"

Expand Down
34 changes: 34 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"schemaVersion": 1,
"id": "koustav.omnicast",
"name": "Omnicast",
"version": "0.2.0",
"author": "Koustav",
"license": "GPL-3.0",
"description": "Alt+Space umbrella launcher for Omarchy: instant file search, live code preview, quicklinks, and script commands.",
"homepage": "https://omnicast.best",
"repository": "https://github.com/KOUSTAV2409/omnicast",
"keywords": [
"launcher",
"raycast",
"spotlight",
"omarchy",
"omarchy-plugin",
"quickshell",
"search",
"wayland"
],
"kinds": [
"bar-widget"
],
"entryPoints": {
"barWidget": "BarWidget.qml"
},
"barWidget": {
"displayName": "Omnicast",
"description": "Search apps, files, quicklinks, and Omarchy commands (Alt+Space)",
"category": "Apps",
"allowMultiple": false,
"defaultSection": "left"
}
}
10 changes: 10 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,16 @@ <h2>Install on Omarchy</h2>
<span class="p">$</span> <span class="cmd">curl</span> -fsSL https://omnicast.best/install | <span class="cmd">bash</span></code></pre>
</div>

<div class="term" data-copy="omarchy plugin add https://github.com/KOUSTAV2409/omnicast.git --enable" style="margin-top: 1rem;">
<div class="term-bar">
<div class="term-dots" aria-hidden="true"><span></span><span></span><span></span></div>
<span class="term-title">terminal · omarchy shell plugin</span>
<button type="button" class="term-copy" aria-label="Copy omarchy plugin command">Copy</button>
</div>
<pre><code><span class="c"># install into your Omarchy status bar</span>
<span class="p">$</span> <span class="cmd">omarchy plugin add</span> https://github.com/KOUSTAV2409/omnicast.git --enable</code></pre>
</div>

<p class="bind-hint">
Automatically installs to <code>~/.local/share/omnicast</code>, symlinks <code>omnicast</code> to your PATH,
and binds <code>Alt+Space</code> in <code>~/.config/hypr/bindings.lua</code>.
Expand Down
Loading