mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 10:15:20 +01:00
[PR #530] [MERGED] feat: Add orientation support for clock, button, label, and sys_info #2189
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#2189
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/530
Author: @ClaireNeveu
Created: 4/4/2024
Status: ✅ Merged
Merged: 4/6/2024
Merged by: @JakeStanger
Base:
master← Head:master📝 Commits (5)
702b0a6feat: Add orientation support for clock70b2c59feat: Add orientation support for custom label and button44be585feat: Add orientation and direction support for sys infodcb5036chore: add test config filef50a65efix: upower module should display correctly for vertical bars📊 Changes
15 files changed (+272 additions, -40 deletions)
View changed files
📝
docs/modules/Clock.md(+1 -0)📝
docs/modules/Custom.md(+2 -0)📝
docs/modules/Sys-Info.md(+2 -0)📝
src/config/common.rs(+28 -0)📝
src/config/mod.rs(+1 -1)📝
src/modules/clock.rs(+6 -2)📝
src/modules/custom/box.rs(+4 -6)📝
src/modules/custom/button.rs(+6 -0)📝
src/modules/custom/label.rs(+5 -0)📝
src/modules/custom/mod.rs(+1 -12)📝
src/modules/custom/progress.rs(+5 -7)📝
src/modules/custom/slider.rs(+5 -7)📝
src/modules/sysinfo.rs(+14 -4)📝
src/modules/upower.rs(+0 -1)➕
test-configs/orientation.corn(+192 -0)📄 Description
After making the switch to hyprland ironbar is by far the best dock solution I've found. Most wayland dockbars that aren't built into a big DE have very poor support for vertical docks or lack a proper program list/launcher. The one big issue I've run into is that the clock is incorrectly rotated when using a vertical bar. In this discussion you mentioned you wanted to keep the current behavior as an option.
I went ahead and added orientation support for clock as well as label and button which some people were asking for. I also created an enum for orientation and moved deserialization into serde and out of an ad-hoc function.
I also added a test config where you can see that all variations (default, horizontal, and vertical along with shorthand) are functioning properly.
Please let me know if there's anything you need on my end to get this merged, I didn't see any contribution guidelines or standards in the repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.