feat: update bar

This commit is contained in:
johannes committed 2026-09-17 19:56:15 +02:00
1 parent aacd799004
commit d85ed26311
3 files changed
+35 -13

No files matched your search

+25 -8
View File
@@ -3,8 +3,6 @@
require("hyprland-gui") require("hyprland-gui")
---------------- ----------------
--- MONITORS --- --- MONITORS ---
---------------- ----------------
@@ -28,7 +26,6 @@ local menu = "quickshell ipc call commandPalette toggle"
local clipboard = "qs ipc call clipboardPicker open" local clipboard = "qs ipc call clipboardPicker open"
local lock = "qs ipc call lockScreen lock" local lock = "qs ipc call lockScreen lock"
----------------- -----------------
--- AUTOSTART --- --- AUTOSTART ---
----------------- -----------------
@@ -197,13 +194,33 @@ hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("qs ipc call wallpaperSwitcher open")
hl.bind(mainMod .. " + SHIFT + W", hl.dsp.exec_cmd("qs ipc call wallpaperSwitcher random")) hl.bind(mainMod .. " + SHIFT + W", hl.dsp.exec_cmd("qs ipc call wallpaperSwitcher random"))
-- Brightness -- Brightness
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl set 10%+ && quickshell ipc call osd showBrightness"), { locked = true }) hl.bind(
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl set 10%- && quickshell ipc call osd showBrightness"), { locked = true }) "XF86MonBrightnessUp",
hl.dsp.exec_cmd("brightnessctl set 10%+ && quickshell ipc call osd showBrightness"),
{ locked = true }
)
hl.bind(
"XF86MonBrightnessDown",
hl.dsp.exec_cmd("brightnessctl set 10%- && quickshell ipc call osd showBrightness"),
{ locked = true }
)
-- Media -- Media
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && quickshell ipc call osd showVolume"), { locked = true }) hl.bind(
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- && quickshell ipc call osd showVolume"), { locked = true }) "XF86AudioRaiseVolume",
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && quickshell ipc call osd showVolume"), { locked = true }) hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && quickshell ipc call osd showVolume"),
{ locked = true }
)
hl.bind(
"XF86AudioLowerVolume",
hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- && quickshell ipc call osd showVolume"),
{ locked = true }
)
hl.bind(
"XF86AudioMute",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && quickshell ipc call osd showVolume"),
{ locked = true }
)
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true }) hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true })
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
@@ -56,7 +56,7 @@ PanelWindow {
Row { Row {
spacing: Theme.geometry.spacing spacing: Theme.geometry.spacing
Repeater { Repeater {
model: Hyprland.workspaces.values model: Hyprland.workspaces.values.filter(ws => ws.monitor && ws.monitor.name === barWindow.screen.name)
delegate: Rectangle { delegate: Rectangle {
width: 24 width: 24
+9 -4
View File
@@ -90,10 +90,15 @@ ShellRoot {
id: trayTooltip id: trayTooltip
} }
Bar { Variants {
id: bar model: Quickshell.screens
rootState: root
trayTooltip: trayTooltip Bar {
required property var modelData
screen: modelData
rootState: root
trayTooltip: trayTooltip
}
} }
CommandPalette { CommandPalette {