desktop: drop hyprpaper + speechd, quickshell draws wallpaper
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
b2ee737f97
commit
eb80358748
3 changed files with 29 additions and 6 deletions
|
|
@ -15,7 +15,7 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Wallpaper source — consumed by stylix's image option (set in
|
# Wallpaper source — consumed by stylix's image option (set in
|
||||||
# settings/stylix.nix) and by hyprpaper at session start.
|
# settings/stylix.nix) and by quickshell's wallpaper layer.
|
||||||
home.file.".local/share/backgrounds/wallpaper.png".source =
|
home.file.".local/share/backgrounds/wallpaper.png".source =
|
||||||
"${inputs.self}/walls/wallpaper.png";
|
"${inputs.self}/walls/wallpaper.png";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ in
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
|
# graphical-desktop.nix mkDefault-enables this; unused (no screen reader,
|
||||||
|
# no Discord TTS).
|
||||||
|
services.speechd.enable = false;
|
||||||
|
|
||||||
# Polkit GUI agent for GUI sudo prompts under Hyprland
|
# Polkit GUI agent for GUI sudo prompts under Hyprland
|
||||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
description = "polkit-gnome-authentication-agent-1";
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
|
|
@ -48,7 +52,6 @@ in
|
||||||
brightnessctl
|
brightnessctl
|
||||||
swayosd
|
swayosd
|
||||||
playerctl
|
playerctl
|
||||||
hyprpaper
|
|
||||||
hyprlock
|
hyprlock
|
||||||
hypridle
|
hypridle
|
||||||
hyprshot
|
hyprshot
|
||||||
|
|
@ -72,10 +75,9 @@ in
|
||||||
# into settings.config below.
|
# into settings.config below.
|
||||||
stylix.targets.hyprland.enable = false;
|
stylix.targets.hyprland.enable = false;
|
||||||
|
|
||||||
# The disabled Hyprland target would normally enable this; do it
|
# Wallpaper is drawn by quickshell (settings/quickshell.nix); no
|
||||||
# manually. Stylix's hyprpaper target (auto-enabled) still handles
|
# separate hyprpaper daemon.
|
||||||
# preload/wallpaper settings.
|
stylix.targets.hyprpaper.enable = false;
|
||||||
services.hyprpaper.enable = true;
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,7 @@ in
|
||||||
//@ pragma UseQApplication
|
//@ pragma UseQApplication
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
import Quickshell.Wayland
|
||||||
import Quickshell.Services.Notifications
|
import Quickshell.Services.Notifications
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
|
|
@ -262,6 +263,26 @@ in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wallpaper — replaces the hyprpaper daemon.
|
||||||
|
Variants {
|
||||||
|
model: Quickshell.screens
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
required property var modelData
|
||||||
|
screen: modelData
|
||||||
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
anchors { top: true; bottom: true; left: true; right: true }
|
||||||
|
color: "black"
|
||||||
|
|
||||||
|
Image {
|
||||||
|
anchors.fill: parent
|
||||||
|
source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png"
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Variants {
|
Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue