feat: update bar

This commit is contained in:
johannes committed 2026-09-21 16:16:35 +02:00
1 parent c238eb1929
commit 8735ea9fb3
3 files changed
+35 -13

No files matched your search

+25 -8
View File
@@ -3,8 +3,6 @@
require("hyprland-gui")
----------------
--- MONITORS ---
----------------
@@ -28,7 +26,6 @@ local menu = "quickshell ipc call commandPalette toggle"
local clipboard = "qs ipc call clipboardPicker open"
local lock = "qs ipc call lockScreen lock"
-----------------
--- 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"))
-- Brightness
hl.bind("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 })
hl.bind(
"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
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("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(
"XF86AudioRaiseVolume",
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("XF86AudioPlay", 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 {
spacing: Theme.geometry.spacing
Repeater {
model: Hyprland.workspaces.values
model: Hyprland.workspaces.values.filter(ws => ws.monitor && ws.monitor.name === barWindow.screen.name)
delegate: Rectangle {
width: 24
+9 -4
View File
@@ -90,10 +90,15 @@ ShellRoot {
id: trayTooltip
}
Bar {
id: bar
rootState: root
trayTooltip: trayTooltip
Variants {
model: Quickshell.screens
Bar {
required property var modelData
screen: modelData
rootState: root
trayTooltip: trayTooltip
}
}
CommandPalette {