1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Refactor pre-commit hooks to use prek (#976)

* ci: change to prek for pre-commit

* refactor: fix shellcheck warnings for the scripts

* chore: unify whitespace formatting

* nix: add prek to dev shell
This commit is contained in:
Marcus Ramberg
2025-12-11 15:11:12 +01:00
committed by GitHub
parent c8cfe0cb5a
commit 7c88865d67
147 changed files with 805 additions and 860 deletions

View File

@@ -77,7 +77,7 @@ There are example themes you can start from:
- [Cyberpunk Electric](theme_cyberpunk_electric.json) - Neon green and magenta cyberpunk aesthetic
- [Hotline Miami](theme_hotline_miami.json) - Retro 80s inspired hot pink and blue
- [Miami Vice](theme_miami_vice.json) - Classic teal and pink vice aesthetic
- [Miami Vice](theme_miami_vice.json) - Classic teal and pink vice aesthetic
- [Synthwave Electric](theme_synthwave_electric.json) - Electric purple and cyan synthwave vibes
### Color Definitions
@@ -87,7 +87,7 @@ There are example themes you can start from:
- `primaryText` - Text color that contrasts well with primary background
- `primaryContainer` - Darker/lighter variant of primary for containers
**Secondary Colors**
**Secondary Colors**
- `secondary` - Supporting accent color for variety and hierarchy
- `surfaceTint` - Tint color applied to surfaces, usually derived from primary
@@ -115,7 +115,7 @@ While the core colors above are required, you can also customize these optional
```json
{
"error": "#f44336",
"warning": "#ff9800",
"warning": "#ff9800",
"info": "#2196f3"
}
```
@@ -158,4 +158,4 @@ You can also edit `~/.config/DankMaterialShell/settings.json` manually
### Reactivity
Editing the custom theme file will auto-update the shell if it's the current theme.
Editing the custom theme file will auto-update the shell if it's the current theme.

View File

@@ -22,7 +22,7 @@ Audio system control and information.
- Returns: Confirmation message
**`decrement <step>`**
- Decrease output volume by step amount
- Decrease output volume by step amount
- Parameters: `step` - Volume decrease amount (default: 5)
- Returns: Confirmation message
@@ -72,7 +72,7 @@ Display brightness control for internal and external displays.
**`decrement <step> [device]`**
- Decrease brightness by step amount
- Parameters:
- `step` - Brightness decrease amount
- `step` - Brightness decrease amount
- `device` - Optional device name (empty string for default)
- Returns: Confirmation with new brightness level
@@ -105,7 +105,7 @@ Night mode (gamma/color temperature) control.
- Enable night mode
- Returns: Confirmation message
**`disable`**
**`disable`**
- Disable night mode
- Returns: Confirmation message
@@ -163,7 +163,7 @@ Media player control via MPRIS interface.
- Returns: Nothing
**`pause`**
- Pause playback on active player
- Pause playback on active player
- Returns: Nothing
**`playPause`**
@@ -272,7 +272,7 @@ Wallpaper management and retrieval with support for per-monitor configurations.
**`setFor <screenName> <path>`**
- Set wallpaper for specific monitor (automatically enables per-monitor mode)
- Parameters:
- Parameters:
- `screenName` - Monitor name (e.g., "DP-2", "eDP-1")
- `path` - Absolute or relative path to image file
- Returns: Success confirmation with monitor and path info
@@ -365,7 +365,7 @@ Theme mode control (light/dark mode switching).
- Returns: "light"
**`dark`**
- Switch to dark theme mode
- Switch to dark theme mode
- Returns: "dark"
**`getMode`**
@@ -445,7 +445,7 @@ Clipboard history modal control.
**Functions:**
- `open` - Show clipboard history
- `close` - Hide clipboard history
- `close` - Hide clipboard history
- `toggle` - Toggle clipboard history visibility
### Target: `notifications`
@@ -685,4 +685,4 @@ Most IPC functions return string messages indicating:
- Status information for query functions
- Empty/void return for simple action functions
Functions that return void (like media controls) execute the action but don't provide feedback. Check the application state through other means if needed.
Functions that return void (like media controls) execute the action but don't provide feedback. Check the application state through other means if needed.

View File

@@ -39,4 +39,4 @@
"warning": "#99CC00",
"info": "#00B899"
}
}
}

View File

@@ -39,4 +39,4 @@
"warning": "#B3B300",
"info": "#00B359"
}
}
}

View File

@@ -39,4 +39,4 @@
"warning": "#CC9900",
"info": "#0099CC"
}
}
}

View File

@@ -39,4 +39,4 @@
"warning": "#CC9900",
"info": "#0066CC"
}
}
}