186 lines
7.3 KiB
QML
186 lines
7.3 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
|
|
Singleton {
|
|
readonly property list<string> terminalCommand: ["alacritty", "-e"]
|
|
|
|
readonly property QtObject anim: QtObject {
|
|
readonly property QtObject durations: 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
|
|
}
|
|
|
|
readonly property QtObject curves: 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]
|
|
}
|
|
}
|
|
|
|
readonly property QtObject colors: QtObject {
|
|
// Base colors
|
|
readonly property color red: "#f7768e"
|
|
readonly property color orange: "#ff9e64"
|
|
readonly property color yellow: "#e0af68"
|
|
readonly property color turqoise: "#73daca"
|
|
readonly property color green: "#9ece6a"
|
|
readonly property color cyan: "#b4f9f8"
|
|
readonly property color blue: "#7aa2f7"
|
|
readonly property color purple: "#bb9af7"
|
|
readonly property color magenta: "#d291ea"
|
|
readonly property color violet: "#9a94ce"
|
|
readonly property color brown: "#cfc9c2"
|
|
readonly property color pink: "#f6a8cf"
|
|
|
|
// Background
|
|
readonly property color bg: "#161621"
|
|
readonly property color container: "#202330"
|
|
readonly property color containerDash: "#1e202e"
|
|
readonly property color containerAlt: "#262a3b"
|
|
readonly property color overlay: "#030305"
|
|
|
|
// Foreground
|
|
readonly property color primary: "#a9b1d6"
|
|
readonly property color secondary: "#c0caf5"
|
|
readonly property color tertiary: "#787c99"
|
|
readonly property color inactive: "#42465d"
|
|
readonly property color primaryDark: "#343b58"
|
|
|
|
// Highlight
|
|
readonly property color highlight: "#c4feff"
|
|
readonly property color error: red
|
|
readonly property color errorBg: "#3f2536"
|
|
|
|
// By section
|
|
readonly property color dashboard: magenta
|
|
readonly property color mixer: cyan
|
|
readonly property color media: blue
|
|
readonly property color performance: orange
|
|
readonly property color workspaces: pink
|
|
readonly property color workspaceMove: red
|
|
readonly property color launcherApps: pink
|
|
readonly property color launcherActions: power
|
|
readonly property color activeWindow: pink
|
|
readonly property color calendar: turqoise
|
|
readonly property color network: purple
|
|
readonly property color idle: orange
|
|
readonly property color battery: green
|
|
readonly property color batteryWarning: error
|
|
readonly property color power: red
|
|
readonly property color osd: violet
|
|
readonly property color volume: cyan
|
|
readonly property color mic: blue
|
|
readonly property color brightness: yellow
|
|
readonly property color notification: magenta
|
|
|
|
readonly property color nixos: "#7dcfff"
|
|
}
|
|
|
|
readonly property QtObject font: QtObject {
|
|
readonly property QtObject family: QtObject {
|
|
readonly property string sans: "Rubik"
|
|
readonly property string mono: "JetBrains Mono Nerd Font"
|
|
readonly property string material: "Material Symbols Rounded"
|
|
}
|
|
|
|
readonly property QtObject size: QtObject {
|
|
readonly property int small: 8
|
|
readonly property int smaller: 10
|
|
readonly property int normal: 12
|
|
readonly property int larger: 15
|
|
readonly property int large: 20
|
|
readonly property int largest: 28
|
|
}
|
|
}
|
|
|
|
readonly property QtObject border: QtObject {
|
|
readonly property int thickness: 6
|
|
readonly property int rounding: 12
|
|
}
|
|
|
|
readonly property QtObject bar: QtObject {
|
|
readonly property int height: 40
|
|
readonly property int containerHeight: 30
|
|
readonly property int workspaceMargin: 2
|
|
}
|
|
|
|
readonly property QtObject osd: QtObject {
|
|
readonly property real volumeIncrement: 0.04
|
|
readonly property real micIncrement: 0.04
|
|
readonly property real brightnessIncrement: 0.05
|
|
readonly property int hideDelay: 1500
|
|
|
|
readonly property int sliderLength: 200
|
|
readonly property int sliderWidth: 30
|
|
}
|
|
|
|
readonly property QtObject notifs: QtObject {
|
|
readonly property bool expire: true
|
|
readonly property int defaultExpireTimeout: 5000
|
|
readonly property real clearThreshold: 0.3
|
|
|
|
readonly property int width: 350
|
|
readonly property int imageSize: 36
|
|
readonly property int badgeSize: 24
|
|
}
|
|
|
|
readonly property QtObject dashboard: QtObject {
|
|
readonly property int timeWidth: 240
|
|
readonly property int timeHeight: 100
|
|
readonly property int weatherWidth: 280
|
|
|
|
readonly property real mixerWidth: 360
|
|
readonly property real mixerHeight: 480
|
|
|
|
readonly property real mediaCoverArtWidth: 240
|
|
readonly property real mediaCoverArtHeight: 180
|
|
readonly property int mediaUpdateInterval: 500
|
|
|
|
readonly property real workspaceWidth: 280
|
|
}
|
|
|
|
readonly property QtObject launcher: QtObject {
|
|
readonly property int dragThreshold: 32
|
|
readonly property string actionPrefix: ">"
|
|
readonly property string specialPrefix: "@"
|
|
readonly property int itemWidth: 600
|
|
readonly property int itemHeight: 50
|
|
readonly property int maxItemCount: 8
|
|
}
|
|
|
|
readonly property QtObject services: QtObject {
|
|
readonly property string weatherLocation: ""
|
|
readonly property bool useFahrenheit: [Locale.ImperialUSSystem, Locale.ImperialSystem].includes(Qt.locale().measurementSystem)
|
|
|
|
readonly property string defaultPlayer: "Spotify"
|
|
|
|
readonly property string sunsetFrom: "21:00"
|
|
readonly property string sunsetTo: "9:00"
|
|
readonly property int sunsetTemperature: 4500
|
|
}
|
|
|
|
readonly property QtObject session: QtObject {
|
|
readonly property real buttonSize: 64
|
|
|
|
property list<string> logout: ["hyprctl", "dispatch", "exit"]
|
|
property list<string> lock: ["hyprlock", "--immediate"]
|
|
property list<string> suspend: ["systemctl", "suspend"]
|
|
property list<string> hibernate: ["systemctl", "suspend-then-hibernate"]
|
|
property list<string> sleep: suspend
|
|
property list<string> reboot: ["systemctl", "reboot"]
|
|
property list<string> shutdown: ["systemctl", "poweroff"]
|
|
}
|
|
}
|