1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-20 11:54:23 +02:00
Commit graph

696 commits

Author SHA1 Message Date
80de5dd824
fix: some modules crashing due to recent gtk refactor
Fixes a crash introduced by commit bea442e where the `await_sync` function incorrectly tried to use the current tokio runtime, which it is often outside, instead of the singleton.

Fixes #382
2023-12-24 13:44:38 +00:00
29eeefbd24
Merge pull request #380 from JakeStanger/refactor/update-gtk
Update GTK-related crates, replace GLib channels with Tokio channels, refactor Tokio runtime code
2023-12-18 22:17:44 +00:00
e847a84c21
refactor: fix casting based clippy warnings 2023-12-18 22:09:21 +00:00
bea442ed96
refactor: update gtk/glib, remove glib channels
This is a major refactor which updates GTK, GLib and GTK Layer Shell to their latest versions.

GLib channels, previously used for receiving events on the GLib Main Context thread have been deprecated and a new method for running Futures on the main thread has been added instead. This commit also replaces all the deprecated code with this.

As part of the above, a bug was uncovered related to creating the GLib main context inside the Tokio runtime. Spawning of Tokio tasks has been refactored to fix this.
2023-12-18 22:09:21 +00:00
Dylan Premo
f2c4ddb914
docs(sys info): fix cpu temp examples
Use - instead of _ for [sensor], as in #129
2023-12-17 13:34:02 +00:00
a9e28e163f
chore: update lock file 2023-12-12 23:20:51 +00:00
2c2f1c1243
Merge pull request #377 from JakeStanger/refactor/update-wayland
refactor: update wayland crates to latest versions
2023-12-11 22:11:13 +00:00
ed5a16237d
refactor: update wayland crates to latest versions 2023-12-11 22:01:50 +00:00
9a7ee6babc
Merge pull request #372 from JakeStanger/feat/auto-hide
feat: bar auto-hide options
2023-12-11 21:37:55 +00:00
b784b7b0d2
Merge pull request #373 from JakeStanger/feat/top-level-default
feat: use top-level config as fallback when using monitor-based config
2023-12-11 21:36:47 +00:00
5653191604
Merge pull request #375 from JakeStanger/dependabot/cargo/tokio-1.35.0
build(deps): bump tokio from 1.34.0 to 1.35.0
2023-12-11 21:33:01 +00:00
85498feadc
Merge pull request #374 from JakeStanger/dependabot/cargo/clap-4.4.11
build(deps): bump clap from 4.4.10 to 4.4.11
2023-12-11 21:32:26 +00:00
dependabot[bot]
44733bd62d
build(deps): bump tokio from 1.34.0 to 1.35.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.34.0...tokio-1.35.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:00:40 +00:00
dependabot[bot]
bfe9c4ee2b
build(deps): bump clap from 4.4.10 to 4.4.11
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.10 to 4.4.11.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.10...v4.4.11)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:00:27 +00:00
659c93dd2a
feat: use top-level config as fallback when using monitor-based config
This allows you to configure a default bar to use, then override specific monitors.

Not setting anything at the top level will hide bars which are not explicitly configured.

This actually came about as a bug in the recent refactorings, but now it's a feature :)
2023-12-10 23:12:21 +00:00
ee04cd025a
feat: bar auto-hide options
Adds two new bar-level options:

- `start_hidden`, which stops a bar from showing when Ironbar starts. It can then be hidden via IPC or auto-hide.
- `autohide`, which takes a delay after which the bar will be hidden when the cursor leaves. Hovering at the screen edge where the bar is located reveals the bar again.

Resolves #167
2023-12-10 22:56:43 +00:00
56f423e408
Merge pull request #371 from JakeStanger/refactor/encapsulate
refactor: begin restructuring core code to better encapsulate
2023-12-09 21:37:08 +00:00
b2fa19ab6c
refactor: begin restructuring core code to better encapsulate
This is a first pass towards trying to structure things a bit better, with data generally encapsulated under a single hierarchical tree, rather than lots of globals all over the place. Lots of work is still required.

The plan is that with this and some more work, #291 should become a lot easier to sort.
2023-12-08 22:39:27 +00:00
7175cf2f5c
Merge pull request #370 from JakeStanger/dependabot/cargo/futures-lite-2.1.0
build(deps): bump futures-lite from 2.0.1 to 2.1.0
2023-12-04 17:24:45 +00:00
ed48e5c8c3
Merge pull request #369 from JakeStanger/dependabot/cargo/clap-4.4.10
build(deps): bump clap from 4.4.8 to 4.4.10
2023-12-04 17:23:41 +00:00
dependabot[bot]
5094129f55
build(deps): bump futures-lite from 2.0.1 to 2.1.0
Bumps [futures-lite](https://github.com/smol-rs/futures-lite) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/smol-rs/futures-lite/releases)
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/futures-lite/compare/v2.0.1...v2.1.0)

---
updated-dependencies:
- dependency-name: futures-lite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 14:53:07 +00:00
dependabot[bot]
d343b16341
build(deps): bump clap from 4.4.8 to 4.4.10
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.8 to 4.4.10.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.8...v4.4.10)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 14:52:56 +00:00
96615502a8
Merge pull request #360 from chmanie/fix/tray-icon-themes
Re-use existing IconTheme during icon retrieval
2023-12-03 11:49:42 +00:00
Chris Maniewski
5f82b6e9e0
fix(tray): existing icons rendering as text 2023-12-02 22:26:15 +01:00
4fe20865bf
Merge pull request #368 from JakeStanger/update_flake_lock_action
Update flake.lock
2023-12-02 15:45:19 +00:00
github-actions[bot]
5b47ebdeaf flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/b7db46f0f1751f7b1d1911f6be7daf568ad5bc65' (2023-10-24)
  → 'github:ipetkov/crane/8b9bad9b30bd7a9ed08782e64846b7485f9d0a38' (2023-11-30)
• Updated input 'naersk/nixpkgs':
    'github:NixOS/nixpkgs/90e85bc7c1a6fc0760a94ace129d3a1c61c3d035' (2023-10-29)
  → 'github:NixOS/nixpkgs/f5c27c6136db4d76c30e533c20517df6864c46ee' (2023-11-30)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29)
  → 'github:nixos/nixpkgs/8cfef6986adfb599ba379ae53c9f5631ecd2fd9c' (2023-11-27)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31)
  → 'github:oxalica/rust-overlay/6d3c6e185198b8bf7ad639f22404a75aa9a09bff' (2023-11-30)
2023-12-02 15:22:06 +00:00
f92845aecb
Merge pull request #366 from JakeStanger/dependabot/cargo/sysinfo-0.29.11
build(deps): bump sysinfo from 0.29.10 to 0.29.11
2023-11-27 22:51:32 +00:00
b443b8f868
Merge pull request #365 from JakeStanger/dependabot/cargo/serde-1.0.193
build(deps): bump serde from 1.0.192 to 1.0.193
2023-11-27 22:51:15 +00:00
dependabot[bot]
12d3d76a57
build(deps): bump sysinfo from 0.29.10 to 0.29.11
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.10 to 0.29.11.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 14:25:32 +00:00
dependabot[bot]
2289755991
build(deps): bump serde from 1.0.192 to 1.0.193
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.192 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 14:25:12 +00:00
2016a904c1
Merge pull request #362 from JakeStanger/dependabot/cargo/tracing-appender-0.2.3
build(deps): bump tracing-appender from 0.2.2 to 0.2.3
2023-11-20 19:42:32 +00:00
dependabot[bot]
ac44175b77
build(deps): bump tracing-appender from 0.2.2 to 0.2.3
Bumps [tracing-appender](https://github.com/tokio-rs/tracing) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-appender-0.2.2...tracing-appender-0.2.3)

---
updated-dependencies:
- dependency-name: tracing-appender
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-20 14:43:32 +00:00
ae75fcf2b2
Merge pull request #359 from delliottxyz/master
fix: Home Manager systemdIntegration warnings
2023-11-14 21:19:48 +00:00
Darragh Elliott
518c2ef023 fix: Home Manager systemdIntegration warnings
The option for wayland.windowManager.hyprland.systemdIntegration has been renamed to wayland.windowManager.hyprland.systemd.enable as of home-manager commit ed0770e96225f998ea128549ad446d9b1568cb2c.
The option for wayland.windowManager.sway.systemdIntegration has been renamed to wayland.windowManager.sway.systemd.enable as of home-manager commit 0144ac418ef633bfc9dbd89b8c199ad3a617c59f.
Using the systemdIntegration options will still work for as long as the corresponding mkRenamedModuleOption stays in the respective home-manager modules but using the old option triggers a warning about the the renamed options.
2023-11-14 16:43:49 +00:00
422edb3152
Merge pull request #356 from JakeStanger/dependabot/cargo/clap-4.4.8
build(deps): bump clap from 4.4.7 to 4.4.8
2023-11-13 19:24:49 +00:00
375860efb4
Merge pull request #355 from JakeStanger/dependabot/cargo/tokio-1.34.0
build(deps): bump tokio from 1.33.0 to 1.34.0
2023-11-13 19:24:03 +00:00
62229c7a3b
Merge pull request #354 from JakeStanger/dependabot/cargo/serde-1.0.192
build(deps): bump serde from 1.0.190 to 1.0.192
2023-11-13 19:22:50 +00:00
dependabot[bot]
ce43895394
build(deps): bump clap from 4.4.7 to 4.4.8
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.7 to 4.4.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.7...v4.4.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 14:26:35 +00:00
dependabot[bot]
9eb1f60351
build(deps): bump tokio from 1.33.0 to 1.34.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 14:26:23 +00:00
dependabot[bot]
fbbc667b36
build(deps): bump serde from 1.0.190 to 1.0.192
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.190 to 1.0.192.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.190...v1.0.192)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 14:26:11 +00:00
0d9e4545aa
Merge pull request #353 from JakeStanger/dependabot/cargo/serde_json-1.0.108
build(deps): bump serde_json from 1.0.107 to 1.0.108
2023-11-07 17:02:07 +00:00
5fff15d953
Merge pull request #352 from JakeStanger/dependabot/cargo/futures-lite-2.0.1
build(deps): bump futures-lite from 2.0.0 to 2.0.1
2023-11-07 17:01:34 +00:00
6707fb6f7e
Merge pull request #351 from JakeStanger/dependabot/cargo/indexmap-2.1.0
build(deps): bump indexmap from 2.0.2 to 2.1.0
2023-11-07 17:01:18 +00:00
dependabot[bot]
0d8029f89c
build(deps): bump serde_json from 1.0.107 to 1.0.108
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 14:27:51 +00:00
dependabot[bot]
9b34dc0d2d
build(deps): bump futures-lite from 2.0.0 to 2.0.1
Bumps [futures-lite](https://github.com/smol-rs/futures-lite) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/smol-rs/futures-lite/releases)
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/futures-lite/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: futures-lite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 14:27:19 +00:00
dependabot[bot]
897512720a
build(deps): bump indexmap from 2.0.2 to 2.1.0
Bumps [indexmap](https://github.com/bluss/indexmap) from 2.0.2 to 2.1.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/2.0.2...2.1.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 14:27:00 +00:00
ae70f1d432
Merge pull request #348 from JakeStanger/update_flake_lock_action
Update flake.lock
2023-11-01 08:22:13 +00:00
github-actions[bot]
7b5069a47e flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/3de322e06fc88ada5e3589dc8a375b73e749f512' (2023-09-23)
  → 'github:ipetkov/crane/b7db46f0f1751f7b1d1911f6be7daf568ad5bc65' (2023-10-24)
• Removed input 'crane/flake-compat'
• Removed input 'crane/flake-utils'
• Removed input 'crane/flake-utils/systems'
• Removed input 'crane/rust-overlay'
• Removed input 'crane/rust-overlay/flake-utils'
• Removed input 'crane/rust-overlay/nixpkgs'
• Updated input 'naersk':
    'github:nix-community/naersk/3f976d822b7b37fc6fb8e6f157c2dd05e7e94e89' (2023-09-07)
  → 'github:nix-community/naersk/aeb58d5e8faead8980a807c840232697982d47b9' (2023-10-27)
• Updated input 'naersk/nixpkgs':
    'github:NixOS/nixpkgs/bd9b686c0168041aea600222be0805a0de6e6ab8' (2023-09-29)
  → 'github:NixOS/nixpkgs/90e85bc7c1a6fc0760a94ace129d3a1c61c3d035' (2023-10-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2' (2023-09-27)
  → 'github:nixos/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a4c3c904ab29e04a20d3a6da6626d66030385773' (2023-09-30)
  → 'github:oxalica/rust-overlay/ec19bd20af08f3b004089cc12ab54c823ed899b7' (2023-10-31)
2023-11-01 00:52:52 +00:00
876504ec77
Merge pull request #347 from JakeStanger/dependabot/cargo/serde-1.0.190
build(deps): bump serde from 1.0.189 to 1.0.190
2023-10-30 22:11:07 +00:00
11f217ef54
Merge pull request #345 from JakeStanger/dependabot/cargo/futures-lite-2.0.0
build(deps): bump futures-lite from 1.13.0 to 2.0.0
2023-10-30 22:10:39 +00:00