Regenerated

This commit is contained in:
2026-04-22 14:25:01 +02:00
parent 473ed9149c
commit 3f5f9b9cb7
4 changed files with 808 additions and 462 deletions
+526 -422
View File
File diff suppressed because it is too large Load Diff
+143 -39
View File
@@ -2710,7 +2710,7 @@ bind = $mainMod, S, togglegroup
# Cycle tabs in the group # Cycle tabs in the group
bind = $mainMod, bracketright, changegroupactive, f bind = $mainMod, bracketright, changegroupactive, f
bind = $mainMod, bracketleft, changegroupactive, b bind = $mainMod, bracketleft, changegroupactive, b
bind = $mainMod, T, exec, ~/.config/scripts/layout-selector.sh bind = $mainMod, T, exec, quickshell -p ~/.config/quickshell/layoutswitcher
# Focus movement # Focus movement
bind = $mainMod, H, movefocus, l bind = $mainMod, H, movefocus, l
@@ -3608,6 +3608,148 @@ ShellRoot {
} }
#+END_SRC #+END_SRC
** =generated/.config/quickshell/switchlayout/shell.qml=
Provides a layout menu
#+BEGIN_SRC qml :tangle generated/.config/quickshell/switchlayout/shell.qml :noweb yes :mkdirp yes :eval never
// --- 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
title: "quickshell-layoutswitcher"
visible: true
width: 220
height: contentLayout.implicitHeight + 32
color: colors.base
Shortcut {
sequence: "Escape"
onActivated: Qt.quit()
}
Rectangle {
anchors.fill: parent
anchors.margins: -2
radius: 18
z: -1
opacity: Qt.application.active ? 0 : 1
Behavior on opacity {
NumberAnimation { duration: 150 }
}
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop { position: 0.0; color: colors.blue }
GradientStop { position: 1.0; color: colors.green }
}
}
Rectangle {
anchors.fill: parent
radius: 16
color: colors.base
ColumnLayout {
id: contentLayout
anchors {
top: parent.top
left: parent.left
right: parent.right
margins: 16
}
spacing: 4
Text {
text: "󰕰 Layout"
color: colors.text
font.pixelSize: 13
font.bold: true
Layout.bottomMargin: 8
}
Repeater {
model: [
{ label: " Dwindle", layout: "dwindle" },
{ label: "󰡎 Master", layout: "master" },
{ label: "󰾲 Scrolling", layout: "scrolling" },
{ label: "󱒉 Monocle", layout: "monocle" },
]
delegate: Rectangle {
id: item
Layout.fillWidth: true
height: 38
radius: 8
color: hovered ? colors.surface1 : colors.base
property bool hovered: false
Rectangle {
anchors.fill: parent
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 {
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: ["hyprctl", "keyword", "general:layout", modelData.layout]
onExited: Qt.quit()
}
}
}
Item { height: 4 }
}
}
}
}
#+END_SRC
** =generated/.config/scripts/batterywarn.sh= ** =generated/.config/scripts/batterywarn.sh=
Providing an media Providing an media
#+BEGIN_SRC sh :tangle generated/.config/scripts/batterywarn.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never #+BEGIN_SRC sh :tangle generated/.config/scripts/batterywarn.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
@@ -3717,44 +3859,6 @@ jq -c -n \
#+END_SRC #+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
# layout-selector.sh
# Select a workspace layout using Wofi, shows description, applies with layoutmsg
# Define layouts and descriptions
declare -A LAYOUTS=(
[dwindle]="舘 Dwindle: Auto-tiling, windows shrink progressively"
[master]=" Master: One main window, others stacked"
[scrolling]=" Scrolling: Vertical list, scroll through windows"
[monocle]=" Monocle: One window fills the screen"
[floating]=" Floating: Free move & resize"
)
ORDER=(dwindle master scrolling monocle floating)
# Prepare Wofi menu: show "layoutname: description"
MENU_ITEMS=()
for key in "${ORDER[@]}"; do
MENU_ITEMS+=("$key: ${LAYOUTS[$key]}")
done
# Show selection menu via Wofi
CHOICE=$(printf '%s\n' "${MENU_ITEMS[@]}" | wofi --dmenu --prompt "Select Layout")
# Exit if cancelled
[ -z "$CHOICE" ] && exit 0
# Extract layout name from selection (before colon)
LAYOUT_NAME="${CHOICE%%:*}"
# Apply layout via layoutmsg
hyprctl dispatch layoutmsg setlayout "$LAYOUT_NAME"
# Show OSD feedback
hyprctl dispatch oSD "Layout: $LAYOUT_NAME" 2000
#+END_SRC
** =generated/.config/scripts/power.sh= ** =generated/.config/scripts/power.sh=
Enables a terminal power menu Enables a terminal power menu
#+BEGIN_SRC sh :tangle generated/.config/scripts/power.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never #+BEGIN_SRC sh :tangle generated/.config/scripts/power.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never
@@ -48,7 +48,7 @@ bind = $mainMod, S, togglegroup
# Cycle tabs in the group # Cycle tabs in the group
bind = $mainMod, bracketright, changegroupactive, f bind = $mainMod, bracketright, changegroupactive, f
bind = $mainMod, bracketleft, changegroupactive, b bind = $mainMod, bracketleft, changegroupactive, b
bind = $mainMod, T, exec, ~/.config/scripts/layout-selector.sh bind = $mainMod, T, exec, quickshell -p ~/.config/quickshell/layoutswitcher
# Focus movement # Focus movement
bind = $mainMod, H, movefocus, l bind = $mainMod, H, movefocus, l
@@ -0,0 +1,138 @@
// --- 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. ---
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
title: "quickshell-layoutswitcher"
visible: true
width: 220
height: contentLayout.implicitHeight + 32
color: colors.base
Shortcut {
sequence: "Escape"
onActivated: Qt.quit()
}
Rectangle {
anchors.fill: parent
anchors.margins: -2
radius: 18
z: -1
opacity: Qt.application.active ? 0 : 1
Behavior on opacity {
NumberAnimation { duration: 150 }
}
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop { position: 0.0; color: colors.blue }
GradientStop { position: 1.0; color: colors.green }
}
}
Rectangle {
anchors.fill: parent
radius: 16
color: colors.base
ColumnLayout {
id: contentLayout
anchors {
top: parent.top
left: parent.left
right: parent.right
margins: 16
}
spacing: 4
Text {
text: "󰕰 Layout"
color: colors.text
font.pixelSize: 13
font.bold: true
Layout.bottomMargin: 8
}
Repeater {
model: [
{ label: " Dwindle", layout: "dwindle" },
{ label: "󰡎 Master", layout: "master" },
{ label: "󰾲 Scrolling", layout: "scrolling" },
{ label: "󱒉 Monocle", layout: "monocle" },
]
delegate: Rectangle {
id: item
Layout.fillWidth: true
height: 38
radius: 8
color: hovered ? colors.surface1 : colors.base
property bool hovered: false
Rectangle {
anchors.fill: parent
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 {
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: ["hyprctl", "keyword", "general:layout", modelData.layout]
onExited: Qt.quit()
}
}
}
Item { height: 4 }
}
}
}
}