Regenerated
This commit is contained in:
+451
-329
File diff suppressed because it is too large
Load Diff
+117
-1
@@ -6,6 +6,7 @@
|
||||
#+PROPERTY: header-args:bash :prologue "# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
#+PROPERTY: header-args:css :prologue "/* --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- */"
|
||||
#+PROPERTY: header-args:conf :prologue "# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
#+PROPERTY: header-args:qml :prologue "// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
#+PROPERTY: header-args:json :prologue "// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
#+PROPERTY: header-args:el :prologue ";; --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
#+PROPERTY: header-args:toml :prologue "# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---"
|
||||
@@ -2623,6 +2624,121 @@ workspace = 9
|
||||
workspace = 10
|
||||
#+END_SRC
|
||||
|
||||
** =generated/.config/quickshell/powermenu/shell.qml=
|
||||
This sets up the zsh in the terminal
|
||||
#+BEGIN_SRC qml :tangle generated/.config/quickshell/powermenu/shell.qml :noweb yes :mkdirp yes :eval never
|
||||
// PowerMenu.qml
|
||||
import "root:/"
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ShellRoot {
|
||||
// Load colors from shared Colors.qml
|
||||
Colors { id: colors }
|
||||
|
||||
FloatingWindow {
|
||||
id: root
|
||||
visible: true
|
||||
width: 220
|
||||
height: contentLayout.implicitHeight + 32
|
||||
color: "transparent"
|
||||
|
||||
// Close on Escape
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
onActivated: Qt.quit()
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 16
|
||||
color: colors.base
|
||||
border.width: 2
|
||||
border.color: colors.blue
|
||||
|
||||
ColumnLayout {
|
||||
id: contentLayout
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
margins: 16
|
||||
}
|
||||
spacing: 4
|
||||
|
||||
// Title
|
||||
Text {
|
||||
text: " Power Menu"
|
||||
color: colors.teal
|
||||
font.pixelSize: 13
|
||||
font.bold: true
|
||||
Layout.bottomMargin: 8
|
||||
}
|
||||
|
||||
// Menu items
|
||||
Repeater {
|
||||
model: [
|
||||
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
||||
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
||||
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
||||
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
||||
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
||||
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
||||
]
|
||||
|
||||
delegate: Rectangle {
|
||||
id: item
|
||||
Layout.fillWidth: true
|
||||
height: 38
|
||||
radius: 8
|
||||
color: hovered ? colors.surface1 : "transparent"
|
||||
|
||||
property bool hovered: false
|
||||
|
||||
// Gradient border on hover
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
color: "transparent"
|
||||
border.width: item.hovered ? 2 : 0
|
||||
border.color: colors.blue
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 12
|
||||
text: modelData.label
|
||||
color: item.hovered ? colors.text : colors.subtext1
|
||||
font.pixelSize: 13
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: item.hovered = true
|
||||
onExited: item.hovered = false
|
||||
onClicked: proc.running = true
|
||||
}
|
||||
|
||||
Process {
|
||||
id: proc
|
||||
command: modelData.cmd
|
||||
onExited: Qt.quit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Bottom padding
|
||||
Item { height: 4 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/.config/scripts/layout-selector.sh=
|
||||
Choose your layout
|
||||
#+BEGIN_SRC bash :tangle generated/.config/scripts/layout-selector.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
|
||||
@@ -3381,7 +3497,7 @@ These are config files for waybar
|
||||
// "max-length":
|
||||
// "align":
|
||||
// "justify":
|
||||
"on-click": "kitty -e ~/.config/scripts/power.sh",
|
||||
"on-click": "qs -c powermenu",
|
||||
// "on-click-middle":
|
||||
// "on-click-right":
|
||||
// "on-update":
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
// PowerMenu.qml
|
||||
import "root:/"
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ShellRoot {
|
||||
// Load colors from shared Colors.qml
|
||||
Colors { id: colors }
|
||||
|
||||
FloatingWindow {
|
||||
id: root
|
||||
visible: true
|
||||
width: 220
|
||||
height: contentLayout.implicitHeight + 32
|
||||
color: "transparent"
|
||||
|
||||
// Close on Escape
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
onActivated: Qt.quit()
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 16
|
||||
color: colors.base
|
||||
border.width: 2
|
||||
border.color: colors.blue
|
||||
|
||||
ColumnLayout {
|
||||
id: contentLayout
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
margins: 16
|
||||
}
|
||||
spacing: 4
|
||||
|
||||
// Title
|
||||
Text {
|
||||
text: " Power Menu"
|
||||
color: colors.teal
|
||||
font.pixelSize: 13
|
||||
font.bold: true
|
||||
Layout.bottomMargin: 8
|
||||
}
|
||||
|
||||
// Menu items
|
||||
Repeater {
|
||||
model: [
|
||||
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
||||
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
||||
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
||||
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
||||
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
||||
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
||||
]
|
||||
|
||||
delegate: Rectangle {
|
||||
id: item
|
||||
Layout.fillWidth: true
|
||||
height: 38
|
||||
radius: 8
|
||||
color: hovered ? colors.surface1 : "transparent"
|
||||
|
||||
property bool hovered: false
|
||||
|
||||
// Gradient border on hover
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: parent.radius
|
||||
color: "transparent"
|
||||
border.width: item.hovered ? 2 : 0
|
||||
border.color: colors.blue
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 12
|
||||
text: modelData.label
|
||||
color: item.hovered ? colors.text : colors.subtext1
|
||||
font.pixelSize: 13
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: item.hovered = true
|
||||
onExited: item.hovered = false
|
||||
onClicked: proc.running = true
|
||||
}
|
||||
|
||||
Process {
|
||||
id: proc
|
||||
command: modelData.cmd
|
||||
onExited: Qt.quit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Bottom padding
|
||||
Item { height: 4 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,7 @@
|
||||
// "max-length":
|
||||
// "align":
|
||||
// "justify":
|
||||
"on-click": "kitty -e ~/.config/scripts/power.sh",
|
||||
"on-click": "qs -c powermenu",
|
||||
// "on-click-middle":
|
||||
// "on-click-right":
|
||||
// "on-update":
|
||||
|
||||
Reference in New Issue
Block a user