Files
dotfiles/dot_config/quickshell/bar/WeatherPill.qml
s0wlz (Matthias Puchstein) c5f7162ebb quickshell: add initial bar config with per-monitor workspaces
- Vertical bar on DP-2 with rounded-square pills throughout
- Per-monitor workspace groups sorted by screen x position, with
  Nerd Font icons for named workspaces and apex-neon red active indicator
- Bar layout: datetime+weather top, workspaces centered, gamemode+media+notif+system bottom
- Popouts anchor to triggering icon (top-right for datetime/weather, bottom-right for media/notif/system)
- Lock command switched from hyprlock to swaylock
- Hyprland blur/ignore_alpha layerrules for quickshell namespace

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 20:00:54 +02:00

34 lines
1.2 KiB
QML

import Quickshell
import QtQuick
import QtQuick.Layouts
import "../shared" as Shared
BarPill {
groupName: "weather"
accentColor: Shared.Weather.status === "error" ? Shared.Theme.overlay0 : Shared.Theme.peach
content: [
Text {
Layout.alignment: Qt.AlignHCenter
text: Shared.Weather.status === "error" ? "\u{f0599}" : Shared.Weather.icon
color: Shared.Weather.status === "error" ? Shared.Theme.overlay0
: Shared.Weather.status === "stale" ? Shared.Theme.warning
: Shared.Theme.peach
font.pixelSize: Shared.Theme.fontLarge
font.family: Shared.Theme.iconFont
},
Text {
Layout.alignment: Qt.AlignHCenter
text: Shared.Weather.status === "error" ? "N/A"
: Shared.Weather.status === "loading" ? "…"
: Shared.Weather.temp
color: Shared.Weather.status === "error" ? Shared.Theme.overlay0
: Shared.Weather.status === "stale" ? Shared.Theme.warning
: Shared.Theme.peach
font.pixelSize: Shared.Theme.fontSmall
font.family: Shared.Theme.fontFamily
font.bold: true
}
]
}