quickshell lets gooo
This commit is contained in:
84
dots/quickshell/config/Appearance.qml
Normal file
84
dots/quickshell/config/Appearance.qml
Normal file
@@ -0,0 +1,84 @@
|
||||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
readonly property Rounding rounding: Rounding {}
|
||||
readonly property Spacing spacing: Spacing {}
|
||||
readonly property Padding padding: Padding {}
|
||||
readonly property Font font: Font {}
|
||||
readonly property Anim anim: Anim {}
|
||||
|
||||
component Rounding: QtObject {
|
||||
readonly property int small: 12
|
||||
readonly property int normal: 17
|
||||
readonly property int large: 25
|
||||
readonly property int full: 1000
|
||||
}
|
||||
|
||||
component Spacing: QtObject {
|
||||
readonly property int small: 7
|
||||
readonly property int smaller: 10
|
||||
readonly property int normal: 12
|
||||
readonly property int larger: 15
|
||||
readonly property int large: 20
|
||||
}
|
||||
|
||||
component Padding: QtObject {
|
||||
readonly property int small: 5
|
||||
readonly property int smaller: 7
|
||||
readonly property int normal: 10
|
||||
readonly property int larger: 12
|
||||
readonly property int large: 15
|
||||
}
|
||||
|
||||
component FontFamily: QtObject {
|
||||
readonly property string sans: "IBM Plex Sans"
|
||||
readonly property string mono: "JetBrains Mono NF"
|
||||
readonly property string material: "Material Symbols Rounded"
|
||||
}
|
||||
|
||||
component FontSize: QtObject {
|
||||
readonly property int small: 11
|
||||
readonly property int smaller: 12
|
||||
readonly property int normal: 13
|
||||
readonly property int larger: 15
|
||||
readonly property int large: 18
|
||||
readonly property int extraLarge: 28
|
||||
}
|
||||
|
||||
component Font: QtObject {
|
||||
readonly property FontFamily family: FontFamily {}
|
||||
readonly property FontSize size: FontSize {}
|
||||
}
|
||||
|
||||
component AnimCurves: QtObject {
|
||||
readonly property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
|
||||
readonly property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
|
||||
readonly property list<real> standard: [0.2, 0, 0, 1, 1, 1]
|
||||
readonly property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
|
||||
readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
|
||||
readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.9, 1, 1]
|
||||
readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1, 1, 1]
|
||||
readonly property list<real> expressiveEffects: [0.34, 0.8, 0.34, 1, 1, 1]
|
||||
}
|
||||
|
||||
component AnimDurations: QtObject {
|
||||
readonly property int small: 200
|
||||
readonly property int normal: 400
|
||||
readonly property int large: 600
|
||||
readonly property int extraLarge: 1000
|
||||
readonly property int expressiveFastSpatial: 350
|
||||
readonly property int expressiveDefaultSpatial: 500
|
||||
readonly property int expressiveEffects: 200
|
||||
}
|
||||
|
||||
component Anim: QtObject {
|
||||
readonly property AnimCurves curves: AnimCurves {}
|
||||
readonly property AnimDurations durations: AnimDurations {}
|
||||
}
|
||||
}
|
||||
22
dots/quickshell/config/BarConfig.qml
Normal file
22
dots/quickshell/config/BarConfig.qml
Normal file
@@ -0,0 +1,22 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property JsonObject sizes: JsonObject {
|
||||
property int innerHeight: 30
|
||||
property int windowPreviewSize: 400
|
||||
property int trayMenuWidth: 300
|
||||
property int batteryWidth: 250
|
||||
}
|
||||
|
||||
property JsonObject workspaces: JsonObject {
|
||||
property int shown: 5
|
||||
property bool rounded: true
|
||||
property bool activeIndicator: true
|
||||
property bool occupiedBg: false
|
||||
property bool showWindows: true
|
||||
property bool activeTrail: false
|
||||
property string label: " "
|
||||
property string occupiedLabel: " "
|
||||
property string activeLabel: " "
|
||||
}
|
||||
}
|
||||
9
dots/quickshell/config/BorderConfig.qml
Normal file
9
dots/quickshell/config/BorderConfig.qml
Normal file
@@ -0,0 +1,9 @@
|
||||
import "root:/services"
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
JsonObject {
|
||||
property color colour: Colours.palette.m3surface
|
||||
property int thickness: Appearance.padding.normal
|
||||
property int rounding: Appearance.rounding.large
|
||||
}
|
||||
36
dots/quickshell/config/Config.qml
Normal file
36
dots/quickshell/config/Config.qml
Normal file
@@ -0,0 +1,36 @@
|
||||
pragma Singleton
|
||||
|
||||
import "root:/utils"
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property alias bar: adapter.bar
|
||||
property alias border: adapter.border
|
||||
property alias dashboard: adapter.dashboard
|
||||
property alias launcher: adapter.launcher
|
||||
property alias notifs: adapter.notifs
|
||||
property alias osd: adapter.osd
|
||||
property alias session: adapter.session
|
||||
|
||||
FileView {
|
||||
path: `${Paths.config}/shell.json`
|
||||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
|
||||
JsonAdapter {
|
||||
id: adapter
|
||||
|
||||
property JsonObject bar: BarConfig {}
|
||||
property JsonObject border: BorderConfig {}
|
||||
property JsonObject dashboard: DashboardConfig {}
|
||||
property JsonObject launcher: LauncherConfig {}
|
||||
property JsonObject notifs: NotifsConfig {}
|
||||
property JsonObject osd: OsdConfig {}
|
||||
property JsonObject session: SessionConfig {}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
dots/quickshell/config/DashboardConfig.qml
Normal file
23
dots/quickshell/config/DashboardConfig.qml
Normal file
@@ -0,0 +1,23 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int mediaUpdateInterval: 500
|
||||
property int visualiserBars: 45
|
||||
property string weatherLocation: "" // A lat,long pair, e.g. "37.8267,-122.4233"
|
||||
|
||||
property JsonObject sizes: JsonObject {
|
||||
readonly property int tabIndicatorHeight: 3
|
||||
readonly property int tabIndicatorSpacing: 5
|
||||
readonly property int infoWidth: 200
|
||||
readonly property int infoIconSize: 25
|
||||
readonly property int dateTimeWidth: 110
|
||||
readonly property int mediaWidth: 200
|
||||
readonly property int mediaProgressSweep: 180
|
||||
readonly property int mediaProgressThickness: 8
|
||||
readonly property int resourceProgessThickness: 10
|
||||
readonly property int weatherWidth: 250
|
||||
readonly property int mediaCoverArtSize: 150
|
||||
readonly property int mediaVisualiserSize: 80
|
||||
readonly property int resourceSize: 200
|
||||
}
|
||||
}
|
||||
15
dots/quickshell/config/LauncherConfig.qml
Normal file
15
dots/quickshell/config/LauncherConfig.qml
Normal file
@@ -0,0 +1,15 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int maxShown: 8
|
||||
property int maxWallpapers: 9 // Warning: even numbers look bad
|
||||
property string actionPrefix: ">"
|
||||
property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout
|
||||
|
||||
property JsonObject sizes: JsonObject {
|
||||
property int itemWidth: 600
|
||||
property int itemHeight: 57
|
||||
property int wallpaperWidth: 280
|
||||
property int wallpaperHeight: 200
|
||||
}
|
||||
}
|
||||
15
dots/quickshell/config/NotifsConfig.qml
Normal file
15
dots/quickshell/config/NotifsConfig.qml
Normal file
@@ -0,0 +1,15 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property bool expire: true
|
||||
property int defaultExpireTimeout: 3000
|
||||
property real clearThreshold: 0.3
|
||||
property int expandThreshold: 20
|
||||
property bool actionOnClick: false
|
||||
|
||||
property JsonObject sizes: JsonObject {
|
||||
property int width: 400
|
||||
property int image: 41
|
||||
property int badge: 20
|
||||
}
|
||||
}
|
||||
10
dots/quickshell/config/OsdConfig.qml
Normal file
10
dots/quickshell/config/OsdConfig.qml
Normal file
@@ -0,0 +1,10 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int hideDelay: 2000
|
||||
|
||||
property JsonObject sizes: JsonObject {
|
||||
property int sliderWidth: 30
|
||||
property int sliderHeight: 150
|
||||
}
|
||||
}
|
||||
9
dots/quickshell/config/SessionConfig.qml
Normal file
9
dots/quickshell/config/SessionConfig.qml
Normal file
@@ -0,0 +1,9 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property int dragThreshold: 30
|
||||
|
||||
property JsonObject sizes: JsonObject {
|
||||
property int button: 80
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user