Regenerated
This commit is contained in:
+367
-351
File diff suppressed because it is too large
Load Diff
+39
-23
@@ -2369,7 +2369,6 @@ bind = , XF86Sleep, exec, systemctl suspend
|
||||
bind = , XF86PowerOff, exec, systemctl poweroff
|
||||
bind = , XF86WakeUp, exec, systemctl suspend
|
||||
bind = $mainMod, L, exec, loginctl lock-session
|
||||
# bind = $mainMod, X, exec, ~/.config/scripts/powermenu.sh
|
||||
|
||||
#########################
|
||||
# Laptop lid settings
|
||||
@@ -2654,13 +2653,31 @@ workspace = 10
|
||||
** =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
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ShellRoot {
|
||||
QtObject {
|
||||
id: colors
|
||||
readonly property color baseAlpha: Qt.rgba(30/255, 30/255, 46/255, 0.9)
|
||||
readonly property color base: "#1e1e2e"
|
||||
readonly property color surface0: "#313244"
|
||||
readonly property color surface1: "#45475a"
|
||||
readonly property color surface2: "#585b70"
|
||||
readonly property color text: "#cdd6f4"
|
||||
readonly property color subtext0: "#a6adc8"
|
||||
readonly property color subtext1: "#bac2de"
|
||||
readonly property color blue: "#89b4fa"
|
||||
readonly property color green: "#a6e3a1"
|
||||
readonly property color teal: "#94e2d5"
|
||||
readonly property color red: "#f38ba8"
|
||||
readonly property color mauve: "#cba6f7"
|
||||
readonly property color peach: "#fab387"
|
||||
readonly property color lavender: "#b4befe"
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
id: root
|
||||
@@ -2670,7 +2687,6 @@ ShellRoot {
|
||||
height: contentLayout.implicitHeight + 32
|
||||
color: "transparent"
|
||||
|
||||
// Close on Escape
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
onActivated: Qt.quit()
|
||||
@@ -2679,9 +2695,9 @@ ShellRoot {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 16
|
||||
color: Colors.baseAlpha
|
||||
color: colors.baseAlpha
|
||||
border.width: 2
|
||||
border.color: Colors.blue
|
||||
border.color: colors.blue
|
||||
|
||||
ColumnLayout {
|
||||
id: contentLayout
|
||||
@@ -2693,24 +2709,22 @@ ShellRoot {
|
||||
}
|
||||
spacing: 4
|
||||
|
||||
// Title
|
||||
Text {
|
||||
text: " Power Menu"
|
||||
color: Colors.teal
|
||||
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"] },
|
||||
{ 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 {
|
||||
@@ -2718,17 +2732,20 @@ ShellRoot {
|
||||
Layout.fillWidth: true
|
||||
height: 38
|
||||
radius: 8
|
||||
color: hovered ? Colors.surface1 : "transparent"
|
||||
|
||||
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
|
||||
anchors.margins: -2
|
||||
radius: parent.radius + 2
|
||||
visible: item.hovered
|
||||
z: -1
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop { position: 0.0; color: colors.blue }
|
||||
GradientStop { position: 1.0; color: colors.green }
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -2736,7 +2753,7 @@ ShellRoot {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 12
|
||||
text: modelData.label
|
||||
color: item.hovered ? Colors.text : Colors.subtext1
|
||||
color: item.hovered ? colors.text : colors.subtext1
|
||||
font.pixelSize: 13
|
||||
}
|
||||
|
||||
@@ -2756,7 +2773,6 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
|
||||
// Bottom padding
|
||||
Item { height: 4 }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +129,6 @@ bind = , XF86Sleep, exec, systemctl suspend
|
||||
bind = , XF86PowerOff, exec, systemctl poweroff
|
||||
bind = , XF86WakeUp, exec, systemctl suspend
|
||||
bind = $mainMod, L, exec, loginctl lock-session
|
||||
# bind = $mainMod, X, exec, ~/.config/scripts/powermenu.sh
|
||||
|
||||
#########################
|
||||
# Laptop lid settings
|
||||
|
||||
@@ -1,11 +1,29 @@
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
// PowerMenu.qml
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ShellRoot {
|
||||
QtObject {
|
||||
id: colors
|
||||
readonly property color baseAlpha: Qt.rgba(30/255, 30/255, 46/255, 0.9)
|
||||
readonly property color base: "#1e1e2e"
|
||||
readonly property color surface0: "#313244"
|
||||
readonly property color surface1: "#45475a"
|
||||
readonly property color surface2: "#585b70"
|
||||
readonly property color text: "#cdd6f4"
|
||||
readonly property color subtext0: "#a6adc8"
|
||||
readonly property color subtext1: "#bac2de"
|
||||
readonly property color blue: "#89b4fa"
|
||||
readonly property color green: "#a6e3a1"
|
||||
readonly property color teal: "#94e2d5"
|
||||
readonly property color red: "#f38ba8"
|
||||
readonly property color mauve: "#cba6f7"
|
||||
readonly property color peach: "#fab387"
|
||||
readonly property color lavender: "#b4befe"
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
id: root
|
||||
@@ -15,7 +33,6 @@ ShellRoot {
|
||||
height: contentLayout.implicitHeight + 32
|
||||
color: "transparent"
|
||||
|
||||
// Close on Escape
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
onActivated: Qt.quit()
|
||||
@@ -24,9 +41,9 @@ ShellRoot {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 16
|
||||
color: Colors.baseAlpha
|
||||
color: colors.baseAlpha
|
||||
border.width: 2
|
||||
border.color: Colors.blue
|
||||
border.color: colors.blue
|
||||
|
||||
ColumnLayout {
|
||||
id: contentLayout
|
||||
@@ -38,24 +55,22 @@ ShellRoot {
|
||||
}
|
||||
spacing: 4
|
||||
|
||||
// Title
|
||||
Text {
|
||||
text: " Power Menu"
|
||||
color: Colors.teal
|
||||
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"] },
|
||||
{ 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 {
|
||||
@@ -63,17 +78,20 @@ ShellRoot {
|
||||
Layout.fillWidth: true
|
||||
height: 38
|
||||
radius: 8
|
||||
color: hovered ? Colors.surface1 : "transparent"
|
||||
|
||||
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
|
||||
anchors.margins: -2
|
||||
radius: parent.radius + 2
|
||||
visible: item.hovered
|
||||
z: -1
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop { position: 0.0; color: colors.blue }
|
||||
GradientStop { position: 1.0; color: colors.green }
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -81,7 +99,7 @@ ShellRoot {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 12
|
||||
text: modelData.label
|
||||
color: item.hovered ? Colors.text : Colors.subtext1
|
||||
color: item.hovered ? colors.text : colors.subtext1
|
||||
font.pixelSize: 13
|
||||
}
|
||||
|
||||
@@ -101,7 +119,6 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
|
||||
// Bottom padding
|
||||
Item { height: 4 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user