1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 22:31:03 +02:00

Merge pull request #855 from Rodrigodd/feat/module-bindmode

feat: rename sway_mode to bindmode and add Hyprland support
This commit is contained in:
Jake Stanger 2025-04-22 23:40:47 +01:00 committed by GitHub
commit a9508e6541
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 209 additions and 82 deletions

View file

@ -29,6 +29,7 @@ A full list of feature flags can be found [here](Compiling#features).
| Module | Status | Notes |
|-----------------|--------|------------------------------------------------------------------------------------------------------------------------------------------|
| Bindmode | ❌ | |
| Cairo | ✅ | |
| Clipboard | ✅ | |
| Clock | ✅ | |
@ -41,7 +42,6 @@ A full list of feature flags can be found [here](Compiling#features).
| Network Manager | ❌ | |
| Notifications | ✅ | |
| Script | ✅ | |
| Sway Mode | ❌ | |
| SysInfo | ✅ | |
| Tray | ❌ | GTK4 removes widgets required to move the tray. No `libdbusmenu-gtk4` either. will need to manually re-create menus with custom widgets. |
| UPower | ❌ | |

View file

@ -25,6 +25,7 @@
# Modules
- [Bindmode](bindmode)
- [Cairo](cairo)
- [Clipboard](clipboard)
- [Clock](clock)
@ -37,7 +38,6 @@
- [Network Manager](network-manager)
- [Notifications](notifications)
- [Script](script)
- [Sway-mode](sway-mode)
- [Sys_Info](sys-info)
- [Tray](tray)
- [Upower](upower)

View file

@ -1,12 +1,12 @@
Displays the current sway mode in a label. If the current sway mode is
"default", nothing is displayed.
> [!IMPORTANT]
> This module is currently only available on Sway and Hyprland.
> [!NOTE]
> This module only works under the [Sway](https://swaywm.org/) compositor.
Displays Sway's current binding mode or [Hyprland's current submap](https://wiki.hyprland.org/Configuring/Binds/#submaps)
in a label. Nothing is displayed if no binding mode is active.
## Configuration
> Type: `sway-mode`
> Type: `bindmode`
| Name | Type | Default | Description |
| --------------------- | ------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
@ -22,7 +22,7 @@ Displays the current sway mode in a label. If the current sway mode is
{
"end": [
{
"type": "sway-mode",
"type": "bindmode",
"truncate": "start"
}
]
@ -36,7 +36,7 @@ Displays the current sway mode in a label. If the current sway mode is
```toml
[[end]]
type = "sway-mode"
type = "bindmode"
truncate = "start"
```
@ -47,7 +47,7 @@ truncate = "start"
```yaml
end:
- type: "sway-mode"
- type: "bindmode"
truncate: "start"
```
@ -60,7 +60,7 @@ end:
{
end = [
{
type = "sway-mode"
type = "bindmode"
truncate = "start"
}
]
@ -71,8 +71,8 @@ end:
## Styling
| Selector | Description |
| ------------ | ---------------------- |
| `.sway_mode` | Sway mode label widget |
| Selector | Description |
| ----------- | ---------------------- |
| `.bindmode` | Bind mode label widget |
For more information on styling, please see the [styling guide](styling-guide).