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 = , XF86PowerOff, exec, systemctl poweroff
|
||||||
bind = , XF86WakeUp, exec, systemctl suspend
|
bind = , XF86WakeUp, exec, systemctl suspend
|
||||||
bind = $mainMod, L, exec, loginctl lock-session
|
bind = $mainMod, L, exec, loginctl lock-session
|
||||||
# bind = $mainMod, X, exec, ~/.config/scripts/powermenu.sh
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Laptop lid settings
|
# Laptop lid settings
|
||||||
@@ -2654,13 +2653,31 @@ workspace = 10
|
|||||||
** =generated/.config/quickshell/powermenu/shell.qml=
|
** =generated/.config/quickshell/powermenu/shell.qml=
|
||||||
This sets up the zsh in the terminal
|
This sets up the zsh in the terminal
|
||||||
#+BEGIN_SRC qml :tangle generated/.config/quickshell/powermenu/shell.qml :noweb yes :mkdirp yes :eval never
|
#+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
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
ShellRoot {
|
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 {
|
FloatingWindow {
|
||||||
id: root
|
id: root
|
||||||
@@ -2670,7 +2687,6 @@ ShellRoot {
|
|||||||
height: contentLayout.implicitHeight + 32
|
height: contentLayout.implicitHeight + 32
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
// Close on Escape
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: "Escape"
|
sequence: "Escape"
|
||||||
onActivated: Qt.quit()
|
onActivated: Qt.quit()
|
||||||
@@ -2679,9 +2695,9 @@ ShellRoot {
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 16
|
radius: 16
|
||||||
color: Colors.baseAlpha
|
color: colors.baseAlpha
|
||||||
border.width: 2
|
border.width: 2
|
||||||
border.color: Colors.blue
|
border.color: colors.blue
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: contentLayout
|
id: contentLayout
|
||||||
@@ -2693,24 +2709,22 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
// Title
|
|
||||||
Text {
|
Text {
|
||||||
text: " Power Menu"
|
text: " Power Menu"
|
||||||
color: Colors.teal
|
color: colors.teal
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
font.bold: true
|
font.bold: true
|
||||||
Layout.bottomMargin: 8
|
Layout.bottomMargin: 8
|
||||||
}
|
}
|
||||||
|
|
||||||
// Menu items
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: [
|
model: [
|
||||||
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
||||||
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
||||||
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
||||||
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
||||||
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
||||||
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
||||||
]
|
]
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
@@ -2718,17 +2732,20 @@ ShellRoot {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 38
|
height: 38
|
||||||
radius: 8
|
radius: 8
|
||||||
color: hovered ? Colors.surface1 : "transparent"
|
color: hovered ? colors.surface1 : "transparent"
|
||||||
|
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
||||||
// Gradient border on hover
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: parent.radius
|
anchors.margins: -2
|
||||||
color: "transparent"
|
radius: parent.radius + 2
|
||||||
border.width: item.hovered ? 2 : 0
|
visible: item.hovered
|
||||||
border.color: Colors.blue
|
z: -1
|
||||||
|
gradient: Gradient {
|
||||||
|
orientation: Gradient.Horizontal
|
||||||
|
GradientStop { position: 0.0; color: colors.blue }
|
||||||
|
GradientStop { position: 1.0; color: colors.green }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@@ -2736,7 +2753,7 @@ ShellRoot {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
text: modelData.label
|
text: modelData.label
|
||||||
color: item.hovered ? Colors.text : Colors.subtext1
|
color: item.hovered ? colors.text : colors.subtext1
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2756,7 +2773,6 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bottom padding
|
|
||||||
Item { height: 4 }
|
Item { height: 4 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ bind = , XF86Sleep, exec, systemctl suspend
|
|||||||
bind = , XF86PowerOff, exec, systemctl poweroff
|
bind = , XF86PowerOff, exec, systemctl poweroff
|
||||||
bind = , XF86WakeUp, exec, systemctl suspend
|
bind = , XF86WakeUp, exec, systemctl suspend
|
||||||
bind = $mainMod, L, exec, loginctl lock-session
|
bind = $mainMod, L, exec, loginctl lock-session
|
||||||
# bind = $mainMod, X, exec, ~/.config/scripts/powermenu.sh
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Laptop lid settings
|
# Laptop lid settings
|
||||||
|
|||||||
@@ -1,11 +1,29 @@
|
|||||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
// --- 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
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
ShellRoot {
|
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 {
|
FloatingWindow {
|
||||||
id: root
|
id: root
|
||||||
@@ -15,7 +33,6 @@ ShellRoot {
|
|||||||
height: contentLayout.implicitHeight + 32
|
height: contentLayout.implicitHeight + 32
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
// Close on Escape
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: "Escape"
|
sequence: "Escape"
|
||||||
onActivated: Qt.quit()
|
onActivated: Qt.quit()
|
||||||
@@ -24,9 +41,9 @@ ShellRoot {
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 16
|
radius: 16
|
||||||
color: Colors.baseAlpha
|
color: colors.baseAlpha
|
||||||
border.width: 2
|
border.width: 2
|
||||||
border.color: Colors.blue
|
border.color: colors.blue
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: contentLayout
|
id: contentLayout
|
||||||
@@ -38,24 +55,22 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
// Title
|
|
||||||
Text {
|
Text {
|
||||||
text: " Power Menu"
|
text: " Power Menu"
|
||||||
color: Colors.teal
|
color: colors.teal
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
font.bold: true
|
font.bold: true
|
||||||
Layout.bottomMargin: 8
|
Layout.bottomMargin: 8
|
||||||
}
|
}
|
||||||
|
|
||||||
// Menu items
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: [
|
model: [
|
||||||
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
{ label: " Lock", cmd: ["loginctl", "lock-session"] },
|
||||||
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
{ label: " Shutdown", cmd: ["systemctl", "poweroff"] },
|
||||||
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
{ label: " Reboot", cmd: ["systemctl", "reboot"] },
|
||||||
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
{ label: " Logout", cmd: ["bash", "-c", "loginctl terminate-session $XDG_SESSION_ID"] },
|
||||||
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
{ label: " Hibernate", cmd: ["systemctl", "hibernate"] },
|
||||||
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
{ label: " Suspend", cmd: ["systemctl", "suspend"] },
|
||||||
]
|
]
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
@@ -63,17 +78,20 @@ ShellRoot {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 38
|
height: 38
|
||||||
radius: 8
|
radius: 8
|
||||||
color: hovered ? Colors.surface1 : "transparent"
|
color: hovered ? colors.surface1 : "transparent"
|
||||||
|
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
||||||
// Gradient border on hover
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: parent.radius
|
anchors.margins: -2
|
||||||
color: "transparent"
|
radius: parent.radius + 2
|
||||||
border.width: item.hovered ? 2 : 0
|
visible: item.hovered
|
||||||
border.color: Colors.blue
|
z: -1
|
||||||
|
gradient: Gradient {
|
||||||
|
orientation: Gradient.Horizontal
|
||||||
|
GradientStop { position: 0.0; color: colors.blue }
|
||||||
|
GradientStop { position: 1.0; color: colors.green }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
@@ -81,7 +99,7 @@ ShellRoot {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
text: modelData.label
|
text: modelData.label
|
||||||
color: item.hovered ? Colors.text : Colors.subtext1
|
color: item.hovered ? colors.text : colors.subtext1
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,7 +119,6 @@ ShellRoot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bottom padding
|
|
||||||
Item { height: 4 }
|
Item { height: 4 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user