no niri
This commit is contained in:
parent
ed9fd239ea
commit
14814ce06a
3 changed files with 4 additions and 32 deletions
|
|
@ -37,7 +37,7 @@ PanelWindow {
|
|||
Layout.alignment: Qt.AlignLeft
|
||||
spacing: 8
|
||||
|
||||
M.Workspaces {}
|
||||
// M.Workspaces {}
|
||||
M.Tray { bar: bar }
|
||||
M.WindowTitle { Layout.maximumWidth: 400 }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +1,7 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Services.Niri
|
||||
import "." as M
|
||||
|
||||
// Niri workspace support disabled — Quickshell.Services.Niri not available
|
||||
RowLayout {
|
||||
spacing: 4
|
||||
|
||||
Repeater {
|
||||
model: Niri.workspaces
|
||||
|
||||
delegate: Rectangle {
|
||||
required property var modelData
|
||||
|
||||
implicitWidth: 24
|
||||
implicitHeight: 20
|
||||
radius: 4
|
||||
color: modelData.isFocused
|
||||
? M.Theme.base0D
|
||||
: (modelData.isActive ? M.Theme.base03 : M.Theme.base02)
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: modelData.idx ?? modelData.id
|
||||
color: modelData.isFocused ? M.Theme.base00 : M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: Niri.dispatch(["action", "focus-workspace", String(modelData.id)])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,8 @@ in
|
|||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."nova-shell/theme.json".source =
|
||||
(pkgs.formats.json { }).generate "nova-shell-theme.json" cfg.theme;
|
||||
(pkgs.formats.json { }).generate "nova-shell-theme.json"
|
||||
cfg.theme;
|
||||
|
||||
systemd.user.services.nova-shell = lib.mkIf cfg.systemd.enable {
|
||||
Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue