Make the bar clock open AGS quick settings again
Claude-Session: https://claude.ai/code/session_014ADhvRXuiTvrXSbConxUey
This commit is contained in:
+8
-4
@@ -12,7 +12,7 @@ Ported from the old `waybar/config.jsonc`, section for section:
|
|||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `custom/omarchy` | `omarchy.menu` |
|
| `custom/omarchy` | `omarchy.menu` |
|
||||||
| `hyprland/workspaces` | `omarchy.workspaces` |
|
| `hyprland/workspaces` | `omarchy.workspaces` |
|
||||||
| `clock` | `omarchy.clock` |
|
| `clock` | `blob.clock` (custom module) |
|
||||||
| `custom/update` | `omarchy.system-update` |
|
| `custom/update` | `omarchy.system-update` |
|
||||||
| `custom/voxtype` | `omarchy.indicators` -> `Dictation` |
|
| `custom/voxtype` | `omarchy.indicators` -> `Dictation` |
|
||||||
| `custom/screenrecording-indicator` | `omarchy.indicators` -> `ScreenRecording` |
|
| `custom/screenrecording-indicator` | `omarchy.indicators` -> `ScreenRecording` |
|
||||||
@@ -39,6 +39,10 @@ AGS entry points survive the move off waybar:
|
|||||||
system monitor
|
system monitor
|
||||||
- `blob.notifications` - left toggles the AGS notification center, right
|
- `blob.notifications` - left toggles the AGS notification center, right
|
||||||
toggles notification silencing
|
toggles notification silencing
|
||||||
|
- `blob.clock` - left toggles AGS quick settings, middle opens the shell's own
|
||||||
|
calendar panel, right opens the timezone selector. `omarchy.clock` hardcodes
|
||||||
|
its click actions, so matching the old waybar behavior needs a command module
|
||||||
|
and `centerAnchor` pointed at it.
|
||||||
|
|
||||||
A command module with no `exec` key is a static icon; add `exec` and
|
A command module with no `exec` key is a static icon; add `exec` and
|
||||||
`interval` for one that refreshes its own text.
|
`interval` for one that refreshes its own text.
|
||||||
@@ -58,6 +62,6 @@ Run `./install.sh --check` to see whether the two have drifted.
|
|||||||
## Not portable from waybar
|
## Not portable from waybar
|
||||||
|
|
||||||
- Bar height: fixed by the shell's style (26px horizontal, 28px vertical).
|
- Bar height: fixed by the shell's style (26px horizontal, 28px vertical).
|
||||||
- Per-widget click actions on first-party widgets: `omarchy.clock`,
|
- Per-widget click actions on first-party widgets: `omarchy.network` and
|
||||||
`omarchy.network`, and `omarchy.bluetooth` own their popups, so the old
|
`omarchy.bluetooth` own their popups, so the old right-click-into-AGS
|
||||||
right-click-into-AGS bindings only exist on the custom modules above.
|
bindings only exist on the custom modules above.
|
||||||
|
|||||||
+8
-5
@@ -7,7 +7,7 @@
|
|||||||
"bar": {
|
"bar": {
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"transparent": false,
|
"transparent": false,
|
||||||
"centerAnchor": "omarchy.clock",
|
"centerAnchor": "blob.clock",
|
||||||
"layout": {
|
"layout": {
|
||||||
"left": [
|
"left": [
|
||||||
{
|
{
|
||||||
@@ -19,10 +19,13 @@
|
|||||||
],
|
],
|
||||||
"center": [
|
"center": [
|
||||||
{
|
{
|
||||||
"id": "omarchy.clock",
|
"id": "blob.clock",
|
||||||
"format": "dddd d MMMM HH:mm",
|
"type": "command",
|
||||||
"formatAlt": "d MMMM 'W'ww yyyy",
|
"exec": "date '+%A %d %B %H:%M'",
|
||||||
"verticalFormat": "HH\n—\nmm"
|
"interval": 15,
|
||||||
|
"onClick": "ags toggle quick-settings",
|
||||||
|
"onMiddleClick": "omarchy-shell shell toggle omarchy.clock",
|
||||||
|
"onRightClick": "omarchy-menu-timezone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "omarchy.system-update"
|
"id": "omarchy.system-update"
|
||||||
|
|||||||
Reference in New Issue
Block a user