1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 16:52:10 -04:00

support multi-brightness devices

This commit is contained in:
bbedward
2025-08-12 19:10:57 -04:00
parent 1e23c6b12c
commit 2f6390cea2
3 changed files with 393 additions and 370 deletions

View File

@@ -164,11 +164,11 @@ make && sudo make install
```bash
# Arch Linux
pacman -S cava wl-clipboard cliphist ddcutil brightnessctl
pacman -S cava wl-clipboard cliphist brightnessctl
paru -S matugen dgop-git
# Fedora
sudo dnf install cava wl-clipboard ddcutil brightnessctl
sudo dnf install cava wl-clipboard brightnessctl
sudo dnf copr enable wef/cliphist && sudo dnf install cliphist
sudo dnf copr enable heus-sueh/packages && sudo dnf install matugen
```
@@ -177,8 +177,7 @@ sudo dnf copr enable heus-sueh/packages && sudo dnf install matugen
- `dgop-git`: Ability to have system resource widgets, process list modal, and temperature monitoring.
- `matugen`: Wallpaper-based dynamic theming
- `ddcutil`: External monitor brightness control
- `brightnessctl`: Laptop display brightness
- `brightnessctl`: Backlight and LED brightness control
- `wl-clipboard`: Required for copying various elements to clipboard.
- `cava`: Audio visualizer
- `cliphist`: Clipboard history
@@ -239,10 +238,11 @@ binds {
spawn "qs" "-c" "DankMaterialShell" "ipc" "call" "audio" "micmute";
}
XF86MonBrightnessUp allow-when-locked=true {
spawn "qs" "-c" "DankMaterialShell" "ipc" "call" "brightness" "increment" "5";
spawn "qs" "-c" "DankMaterialShell" "ipc" "call" "brightness" "increment" "5" "";
}
// You can override the default device for e.g. keyboards by adding the device name to the last param
XF86MonBrightnessDown allow-when-locked=true {
spawn "qs" "-c" "DankMaterialShell" "ipc" "call" "brightness" "decrement" "5";
spawn "qs" "-c" "DankMaterialShell" "ipc" "call" "brightness" "decrement" "5" "";
}
}
```