Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
269a336f50 | ||
|
|
c7e8c1a9f5 |
9 changed files with 217 additions and 2 deletions
|
|
@ -139,10 +139,13 @@
|
||||||
treefmt-config = {
|
treefmt-config = {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
programs = {
|
programs = {
|
||||||
nixfmt.enable = true;
|
# keep-sorted start
|
||||||
jsonfmt.enable = true;
|
jsonfmt.enable = true;
|
||||||
prettier.enable = true;
|
|
||||||
keep-sorted.enable = true;
|
keep-sorted.enable = true;
|
||||||
|
nixfmt.enable = true;
|
||||||
|
prettier.enable = true;
|
||||||
|
qmlformat.enable = true;
|
||||||
|
# keep-sorted end
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
forAllSystems =
|
forAllSystems =
|
||||||
|
|
|
||||||
77
homeConfigurations/muede/.config/quickshell/Bar.qml
Normal file
77
homeConfigurations/muede/.config/quickshell/Bar.qml
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
anchors {
|
||||||
|
top: true
|
||||||
|
left: true
|
||||||
|
right: true
|
||||||
|
}
|
||||||
|
|
||||||
|
//implicitHeight: 24
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors {
|
||||||
|
leftMargin: 8
|
||||||
|
rightMargin: 8
|
||||||
|
fill: parent
|
||||||
|
}
|
||||||
|
|
||||||
|
// left
|
||||||
|
Pill {
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: "TODO: Niri Workspaces"
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: "TODO: System Tray"
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: "TODO: Niri Active Window"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// center
|
||||||
|
Pill {
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
pillAccentColor: Theme.colors.accent0
|
||||||
|
|
||||||
|
Clock {
|
||||||
|
time: Time.currentTime
|
||||||
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: "swaync"
|
||||||
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: "Privacy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// right
|
||||||
|
Pill {
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: "TODO: MPRIS"
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: "TODO: Vol/BT/Net"
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: "TODO: Hardware/Bat"
|
||||||
|
}
|
||||||
|
|
||||||
|
RoundButton {
|
||||||
|
text: ""
|
||||||
|
// textColor: "red"
|
||||||
|
|
||||||
|
onClicked: console.log("TODO: Execute wlogout")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
homeConfigurations/muede/.config/quickshell/Clock.qml
Normal file
7
homeConfigurations/muede/.config/quickshell/Clock.qml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import QtQuick.Controls
|
||||||
|
|
||||||
|
Label {
|
||||||
|
required property string time
|
||||||
|
|
||||||
|
text: time
|
||||||
|
}
|
||||||
30
homeConfigurations/muede/.config/quickshell/Pill.qml
Normal file
30
homeConfigurations/muede/.config/quickshell/Pill.qml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
import Quickshell
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
default property alias content: container.data
|
||||||
|
|
||||||
|
property color pillAccentColor: Theme.colors.foreground
|
||||||
|
property color backgroundColor: Theme.colors.background
|
||||||
|
|
||||||
|
palette {
|
||||||
|
text: pillAccentColor
|
||||||
|
windowText: pillAccentColor
|
||||||
|
}
|
||||||
|
|
||||||
|
color: backgroundColor
|
||||||
|
border.color: pillAccentColor
|
||||||
|
|
||||||
|
border.width: 2
|
||||||
|
radius: 15
|
||||||
|
|
||||||
|
implicitHeight: container.implicitHeight
|
||||||
|
implicitWidth: container.implicitWidth + 16
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: container
|
||||||
|
anchors.centerIn: parent
|
||||||
|
spacing: 8
|
||||||
|
}
|
||||||
|
}
|
||||||
50
homeConfigurations/muede/.config/quickshell/Theme.qml
Normal file
50
homeConfigurations/muede/.config/quickshell/Theme.qml
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
pragma Singleton
|
||||||
|
import QtQuick
|
||||||
|
|
||||||
|
QtObject {
|
||||||
|
// TODO: get those from stylix
|
||||||
|
property QtObject colors: QtObject {
|
||||||
|
id: colors // for recursive reference
|
||||||
|
property color base00: "#1e1e2e"
|
||||||
|
property color base01: "#181825"
|
||||||
|
property color base02: "#313244"
|
||||||
|
property color base03: "#45475a"
|
||||||
|
property color base04: "#585b70"
|
||||||
|
property color base05: "#cdd6f4"
|
||||||
|
property color base06: "#f5e0dc"
|
||||||
|
property color base07: "#b4befe"
|
||||||
|
property color base08: "#f38ba8"
|
||||||
|
property color base09: "#6f9dff"
|
||||||
|
property color base0A: "#d162a4"
|
||||||
|
property color base0B: "#a8c9ff"
|
||||||
|
property color base0C: "#a30262"
|
||||||
|
property color base0D: "#89b4fa"
|
||||||
|
property color base0E: "#cba6f7"
|
||||||
|
property color base0F: "#f2cdcd"
|
||||||
|
property color base10: "#1e1e2e"
|
||||||
|
property color base11: "#1e1e2e"
|
||||||
|
property color base12: "#f38ba8"
|
||||||
|
property color base13: "#f9e2af"
|
||||||
|
property color base14: "#a6e3a1"
|
||||||
|
property color base15: "#94e2d5"
|
||||||
|
property color base16: "#89b4fa"
|
||||||
|
property color base17: "#cba6f7"
|
||||||
|
|
||||||
|
property alias background: colors.base00
|
||||||
|
property alias backgroundLight: colors.base01
|
||||||
|
property alias backgroundSelection: colors.base02
|
||||||
|
property alias comments: colors.base03
|
||||||
|
property alias foregroundDark: colors.base04
|
||||||
|
property alias foreground: colors.base05
|
||||||
|
property alias foregroundLight1: colors.base06
|
||||||
|
property alias foregroundLight2: colors.base07
|
||||||
|
property alias accent0: colors.base08
|
||||||
|
property alias accent1: colors.base09
|
||||||
|
property alias accent2: colors.base0A
|
||||||
|
property alias accent3: colors.base0B
|
||||||
|
property alias accent4: colors.base0C
|
||||||
|
property alias accent5: colors.base0D
|
||||||
|
property alias accent6: colors.base0E
|
||||||
|
property alias accent7: colors.base0F
|
||||||
|
}
|
||||||
|
}
|
||||||
13
homeConfigurations/muede/.config/quickshell/Time.qml
Normal file
13
homeConfigurations/muede/.config/quickshell/Time.qml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
pragma Singleton
|
||||||
|
import Quickshell
|
||||||
|
import QtQuick
|
||||||
|
|
||||||
|
Singleton {
|
||||||
|
property string currentTime: {
|
||||||
|
Qt.formatDateTime(clock.date, "ddd, dd. MMM hh:mm:ss");
|
||||||
|
}
|
||||||
|
SystemClock {
|
||||||
|
id: clock
|
||||||
|
precision: SystemClock.Seconds
|
||||||
|
}
|
||||||
|
}
|
||||||
17
homeConfigurations/muede/.config/quickshell/shell.qml
Normal file
17
homeConfigurations/muede/.config/quickshell/shell.qml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
Scope {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
|
Bar {
|
||||||
|
required property var modelData
|
||||||
|
screen: modelData
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -48,6 +48,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
chromium.enable = true;
|
chromium.enable = true;
|
||||||
|
|
||||||
|
quickshell = {
|
||||||
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
#activeConfig = "~/.config/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -85,6 +91,17 @@
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
|
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
|
||||||
|
".config/quickshell" = {
|
||||||
|
source = ./.config/quickshell;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
redhat.vscode-yaml
|
redhat.vscode-yaml
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
tamasfe.even-better-toml
|
tamasfe.even-better-toml
|
||||||
|
theqtcompany.qt-qml
|
||||||
yzhang.markdown-all-in-one
|
yzhang.markdown-all-in-one
|
||||||
# keep-sorted end
|
# keep-sorted end
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue