Added menu entry for hyprland settings (uses hyprmod)

This commit is contained in:
pascalyazid committed 2026-04-13 20:09:06 +02:00
1 parent cdb91a3a04
commit 7788bc7cee
2 files changed
+25 -1

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ To use this shell, you need to install AGS and the required backend libraries. S
```bash ```bash
# Core AGS and Sass compiler for theming # Core AGS and Sass compiler for theming
yay -S ags dart-sass yay -S ags dart-sass hyprmod-git
# Desktop environment dependencies # Desktop environment dependencies
sudo pacman -S hyprpaper python-pywal16 sudo pacman -S hyprpaper python-pywal16
+24
View File
@@ -3,6 +3,7 @@ import AstalNetwork from "gi://AstalNetwork?version=0.1"
import AstalBluetooth from "gi://AstalBluetooth?version=0.1" import AstalBluetooth from "gi://AstalBluetooth?version=0.1"
import AstalWp from "gi://AstalWp?version=0.1" import AstalWp from "gi://AstalWp?version=0.1"
import { createBinding } from "ags" import { createBinding } from "ags"
import { execAsync, createSubprocess } from "ags/process"
function NetworkItem() { function NetworkItem() {
const network = AstalNetwork.Network.get_default() const network = AstalNetwork.Network.get_default()
@@ -127,6 +128,29 @@ export default function QuickSettings() {
<AudioSlider type="speaker" /> <AudioSlider type="speaker" />
<AudioSlider type="microphone" /> <AudioSlider type="microphone" />
</box> </box>
<box orientation={Gtk.Orientation.VERTICAL} spacing={8}>
<label
label="Tools"
cssClasses={["qs-title"]}
halign={Gtk.Align.START}
/>
<button
cssClasses={["qs-item"]}
onClicked={() => execAsync(["hyprmod"])}
>
<box spacing={12} valign={Gtk.Align.CENTER}>
<image
iconName="applications-system-symbolic"
cssClasses={["qs-icon"]}
/>
<label
label="Hyprland Settings"
halign={Gtk.Align.START}
hexpand
/>
</box>
</button>
</box>
</box> </box>
</popover> </popover>
</menubutton> </menubutton>