1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 22:42:50 -05:00

feat: add scroll compositor support (#959)

* added scroll support

* import QuickShell.i3

* update scroll provider registration logic

* improve scroll support for workspace switcher

* update title for scroll keybinds

* add scroll to dms-greeter

* fix: formatting & sway keybind provider

* readme update

---------

Co-authored-by: bbedward <bbedward@gmail.com>
This commit is contained in:
Varshit
2025-12-09 21:57:46 +01:00
committed by GitHub
parent aeacf109eb
commit f94011cf05
18 changed files with 298 additions and 169 deletions

View File

@@ -10,6 +10,7 @@ Item {
property bool isHyprland: CompositorService.isHyprland
property bool isNiri: CompositorService.isNiri
property bool isSway: CompositorService.isSway
property bool isScroll: CompositorService.isScroll
property bool isDwl: CompositorService.isDwl
property bool isLabwc: CompositorService.isLabwc
@@ -18,6 +19,8 @@ Item {
return "hyprland";
if (isSway)
return "sway";
if (isScroll)
return "scroll";
if (isDwl)
return "mangowc";
if (isLabwc)
@@ -30,6 +33,8 @@ Item {
return "/assets/hyprland.svg";
if (isSway)
return "/assets/sway.svg";
if (isScroll)
return "/assets/sway.svg";
if (isDwl)
return "/assets/mango.png";
if (isLabwc)
@@ -42,6 +47,8 @@ Item {
return "https://hypr.land";
if (isSway)
return "https://swaywm.org";
if (isScroll)
return "https://github.com/dawsers/scroll";
if (isDwl)
return "https://github.com/DreamMaoMao/mangowc";
if (isLabwc)
@@ -54,6 +61,8 @@ Item {
return "Hyprland Website";
if (isSway)
return "Sway Website";
if (isScroll)
return "Scroll Github";
if (isDwl)
return "mangowc GitHub";
if (isLabwc)
@@ -86,9 +95,9 @@ Item {
property string ircUrl: "https://web.libera.chat/gamja/?channels=#labwc"
property string ircTooltip: "LabWC IRC Channel"
property bool showMatrix: isNiri && !isHyprland && !isSway && !isDwl && !isLabwc
property bool showMatrix: isNiri && !isHyprland && !isSway && !isScroll && !isDwl && !isLabwc
property bool showCompositorDiscord: isHyprland || isDwl
property bool showReddit: isNiri && !isHyprland && !isSway && !isDwl && !isLabwc
property bool showReddit: isNiri && !isHyprland && !isSway && !isScroll && !isDwl && !isLabwc
property bool showIrc: isLabwc
DankFlickable {

View File

@@ -63,6 +63,8 @@ Item {
modes.push("mango");
} else if (CompositorService.isSway) {
modes.push("Sway");
} else if (CompositorService.isScroll) {
modes.push("Scroll");
} else {
modes.push(I18n.tr("Compositor"));
}