base layout for new shell

This commit is contained in:
lucy 2026-01-14 23:18:18 +01:00
commit 093be827d4
10 changed files with 130 additions and 0 deletions

1
.qmlls.ini Symbolic link
View File

@ -0,0 +1 @@
/run/user/1000/quickshell/vfs/1b52f593d70d8ccef6fc467cf768a2ef/.qmlls.ini

29
Colors.qml Normal file
View File

@ -0,0 +1,29 @@
pragma Singleton
import QtQuick
import Quickshell
Singleton {
id: customColors
// Core Backgrounds
readonly property color background: "#1E1E2E"
readonly property color foreground: "#CDD6F4"
readonly property color cursor: "#CDD6F4"
// The 16 Colors of the Apocalypse
readonly property color color0: "#45475A"
readonly property color color1: "#F38BA8"
readonly property color color2: "#A6E3A1"
readonly property color color3: "#F9E2AF"
readonly property color color4: "#89B4FA"
readonly property color color5: "#F5C2E7"
readonly property color color6: "#94E2D5"
readonly property color color7: "#BAC2DE"
readonly property color color8: "#585B70"
readonly property color color9: "#F38BA8"
readonly property color color10: "#A6E3A1"
readonly property color color11: "#F9E2AF"
readonly property color color12: "#89B4FA"
readonly property color color13: "#F5C2E7"
readonly property color color14: "#94E2D5"
readonly property color color15: "#A6ADC8"
}

42
modules/Bar/Bar.qml Normal file
View File

@ -0,0 +1,42 @@
import Quickshell
import QtQuick
import "../../settings/"
import "../../"
import "../../reusables/"
import QtQuick.Layouts
PanelWindow {
id: root
color: Colors.background
anchors {
top: true
left: true
right: true
}
implicitHeight: Settings.config.barHeight
Row {
id: leftStuff
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
CustomText {
text: "workspaces here"
}
}
Row {
id: centerStuff
anchors.centerIn: parent
CustomText {
text: "windowtitle here"
}
}
Row {
id: rightStuff
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
CustomText {
text: "status shit goes here"
}
}
}

View File

1
qmldir Normal file
View File

@ -0,0 +1 @@
singleton Colors 1.0 Colors.qml

9
reusables/CustomText.qml Normal file
View File

@ -0,0 +1,9 @@
import QtQuick
import "../settings/"
import "../"
Text {
color: Colors.foreground
font.family: Settings.config.font
font.pixelSize: Settings.config.fontSize
}

31
settings/Settings.qml Normal file
View File

@ -0,0 +1,31 @@
pragma Singleton
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
Singleton {
id: settings
property alias config: settingsAdapter
onConfigChanged: {
settingsView.writeAdapter();
}
FileView {
id: settingsView
path: "/home/lucy/.config/quickshell/settings/config.json"
watchChanges: true
Component.onCompleted: {
settingsView.writeAdapter();
}
adapter: JsonAdapter {
id: settingsAdapter
property var barHeight: 28
property var font: "JetBrainsMono Nerd Font"
property var fontSize: 14
property var rounding: 10
property var wallDir: "/home/lucy/.walls"
}
}
}

7
settings/config.json Normal file
View File

@ -0,0 +1,7 @@
{
"barHeight": 28,
"font": "JetBrainsMono Nerd Font",
"fontSize": 14,
"rounding": 10,
"wallDir": "/home/lucy/.walls"
}

1
settings/qmldir Normal file
View File

@ -0,0 +1 @@
singleton Settings 1.0 Settings.qml

9
shell.qml Normal file
View File

@ -0,0 +1,9 @@
import Quickshell
import QtQuick
import "./settings/"
import "./modules/Bar/"
ShellRoot {
id: root
Bar {}
}