add hm module
This commit is contained in:
@@ -89,41 +89,10 @@ PanelWindow {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Rectangle {
|
||||
|
||||
BarLeft {
|
||||
id: leftRect
|
||||
|
||||
implicitHeight: parent.height
|
||||
|
||||
|
||||
implicitWidth: 40
|
||||
|
||||
color: Pywal.special.background
|
||||
|
||||
|
||||
Launcher {
|
||||
id: launcher
|
||||
x: parent.width / 2 - implicitWidth / 2
|
||||
y: implicitWidth / 3
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
}
|
||||
|
||||
Workspaces {
|
||||
id: workspaces
|
||||
x: parent.width / 2 - implicitWidth / 2
|
||||
y: 20 + launcher.y + launcher.height
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
}
|
||||
|
||||
IdleInhibitor {
|
||||
id: idleInhibitor
|
||||
x: parent.width / 2 - implicitWidth / 2
|
||||
y: 20 + workspaces.y + workspaces.height
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: rightRect
|
||||
@@ -226,58 +195,12 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
VFlyout {
|
||||
BarTop {
|
||||
id: midFO
|
||||
x: root.screen.width / 2 - width / 2
|
||||
y: topRect.y + topRect.height - 1
|
||||
|
||||
color: Pywal.special.background
|
||||
|
||||
visible: set
|
||||
|
||||
property bool set: true
|
||||
|
||||
item: mid
|
||||
|
||||
RowLayout {
|
||||
id: mid
|
||||
|
||||
Notifications {
|
||||
id: notifications
|
||||
window: root
|
||||
radius: root.radius
|
||||
}
|
||||
|
||||
Battery {
|
||||
window: root
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Tray {
|
||||
window: root
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Clock {
|
||||
id: clock
|
||||
}
|
||||
|
||||
Bluetooth {
|
||||
window: root
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Volume {
|
||||
window: root
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Power {
|
||||
id: power
|
||||
window: root
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
}
|
||||
|
||||
radius: radius
|
||||
}
|
||||
}
|
||||
|
||||
38
config/aurora/modules/BarLeft.qml
Normal file
38
config/aurora/modules/BarLeft.qml
Normal file
@@ -0,0 +1,38 @@
|
||||
import Quickshell // for PanelWindow
|
||||
import QtQuick // for Text
|
||||
import QtQuick.Shapes
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Io
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
|
||||
Rectangle {
|
||||
|
||||
id: leftRect
|
||||
|
||||
implicitHeight: parent.height
|
||||
|
||||
implicitWidth: 40
|
||||
|
||||
color: Pywal.special.background
|
||||
|
||||
|
||||
Launcher {
|
||||
id: launcher
|
||||
x: parent.width / 2 - implicitWidth / 2
|
||||
y: implicitWidth / 3
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
}
|
||||
|
||||
Workspaces {
|
||||
id: workspaces
|
||||
x: parent.width / 2 - implicitWidth / 2
|
||||
y: 20 + launcher.y + launcher.height
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
70
config/aurora/modules/BarTop.qml
Normal file
70
config/aurora/modules/BarTop.qml
Normal file
@@ -0,0 +1,70 @@
|
||||
import Quickshell // for PanelWindow
|
||||
import QtQuick // for Text
|
||||
import QtQuick.Shapes
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Io
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
VFlyout {
|
||||
id: midFO
|
||||
|
||||
color: Pywal.special.background
|
||||
|
||||
visible: set
|
||||
|
||||
property bool set: true
|
||||
|
||||
property QsWindow window
|
||||
|
||||
property real radius
|
||||
|
||||
item: mid
|
||||
|
||||
RowLayout {
|
||||
id: mid
|
||||
|
||||
Notifications {
|
||||
id: notifications
|
||||
window: midFO.window
|
||||
}
|
||||
|
||||
Battery {
|
||||
window: midFO.window
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Tray {
|
||||
window: midFO.window
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Clock {
|
||||
id: clock
|
||||
}
|
||||
|
||||
IdleInhibitor {
|
||||
id: idleInhibitor
|
||||
}
|
||||
|
||||
Bluetooth {
|
||||
window: midFO.window
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Volume {
|
||||
window: midFO.window
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
|
||||
Power {
|
||||
id: power
|
||||
window: midFO.window
|
||||
popupOffset: x + midFO.x
|
||||
}
|
||||
}
|
||||
|
||||
radius: radius
|
||||
}
|
||||
@@ -4,6 +4,8 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
|
||||
import-tree.url = "github:vic/import-tree";
|
||||
|
||||
33
nix/homeManagerModule.nix
Normal file
33
nix/homeManagerModule.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ self', inputs, ... }: {
|
||||
|
||||
imports = [
|
||||
inputs.home-manager.flakeModules.home-manager
|
||||
];
|
||||
|
||||
flake.homeModules.default = { config, lib, pkgs, ... }: {
|
||||
|
||||
options.programs.aurora = with lib; {
|
||||
enable = mkEnableOption "aurora";
|
||||
|
||||
package = mkPackageOption self'.packages "aurora" {
|
||||
default = [ "aurora" ];
|
||||
|
||||
example = "aurora.packages.hybar";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.aurora.enable {
|
||||
|
||||
programs.quickshell = {
|
||||
enable = true;
|
||||
|
||||
package = config.programs.aurora.package;
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
target = "wayland-session@Hyprland.target";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user