1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -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

@@ -14,4 +14,4 @@ output_path = '~/.local/share/color-schemes/DankMatugenLight.colors'
[templates.dmsdarkkcolorscheme]
input_path = 'SHELL_DIR/matugen/templates/dark-kcolorscheme.colors'
output_path = '~/.local/share/color-schemes/DankMatugenDark.colors'
output_path = '~/.local/share/color-schemes/DankMatugenDark.colors'

View File

@@ -1,3 +1,3 @@
[templates.dmsdgop]
input_path = 'SHELL_DIR/matugen/templates/dgop.json'
output_path = '~/.config/dgop/colors.json'
output_path = '~/.config/dgop/colors.json'

View File

@@ -1,3 +1,3 @@
[templates.dmsfirefox]
input_path = 'SHELL_DIR/matugen/templates/firefox-userchrome.css'
output_path = '~/.config/DankMaterialShell/firefox.css'
output_path = '~/.config/DankMaterialShell/firefox.css'

View File

@@ -1,3 +1,3 @@
[templates.dmsghostty]
input_path = 'SHELL_DIR/matugen/templates/ghostty.conf'
output_path = '~/.config/ghostty/config-dankcolors'
output_path = '~/.config/ghostty/config-dankcolors'

View File

@@ -4,4 +4,4 @@ output_path = '~/.config/kitty/dank-theme.conf'
[templates.dmskittytabs]
input_path = 'SHELL_DIR/matugen/templates/kitty-tabs.conf'
output_path = '~/.config/kitty/dank-tabs.conf'
output_path = '~/.config/kitty/dank-tabs.conf'

View File

@@ -1,3 +1,3 @@
[templates.dmsniri]
input_path = 'SHELL_DIR/matugen/templates/niri-colors.kdl'
output_path = '~/.config/niri/dms/colors.kdl'
output_path = '~/.config/niri/dms/colors.kdl'

View File

@@ -1,3 +1,3 @@
[templates.dmsqt5ct]
input_path = 'SHELL_DIR/matugen/templates/qtct-colors.conf'
output_path = '~/.config/qt5ct/colors/matugen.conf'
output_path = '~/.config/qt5ct/colors/matugen.conf'

View File

@@ -1,3 +1,3 @@
[templates.dmsqt6ct]
input_path = 'SHELL_DIR/matugen/templates/qtct-colors.conf'
output_path = '~/.config/qt6ct/colors/matugen.conf'
output_path = '~/.config/qt6ct/colors/matugen.conf'

View File

@@ -1,3 +1,3 @@
[templates.dmsvesktop]
input_path = 'SHELL_DIR/matugen/templates/vesktop.css'
output_path = '~/.config/vesktop/themes/dank-discord.css'
output_path = '~/.config/vesktop/themes/dank-discord.css'

View File

@@ -143,4 +143,4 @@ activeBlend={{colors.on_surface.default.red}},{{colors.on_surface.default.green}
activeForeground={{colors.on_surface.default.red}},{{colors.on_surface.default.green}},{{colors.on_surface.default.blue}}
inactiveBackground={{colors.background.default.red}},{{colors.background.default.green}},{{colors.background.default.blue}}
inactiveBlend={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}

View File

@@ -46,4 +46,4 @@
"error": "{{colors.error.default.hex}}",
"info": "{{colors.primary.default.hex}}"
}
}
}

View File

@@ -129,4 +129,4 @@
/* idk if this even works, but the suggestion in the material updated readme bricks symbols no matter how many fallbacks I add */
:root {
font-family: system-ui, "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}
}

View File

@@ -35,4 +35,4 @@ a color between surface and surface container so I think just giving this surfac
@define-color popover_bg_color {{colors.surface_container_lowest.default.hex}};
@define-color popover_fg_color {{colors.on_surface.default.hex}};
@define-color dialog_bg_color {{colors.surface_container_lowest.default.hex}};
@define-color dialog_fg_color {{colors.on_surface.default.hex}};
@define-color dialog_fg_color {{colors.on_surface.default.hex}};

View File

@@ -143,4 +143,4 @@ activeBlend={{colors.on_surface.default.red}},{{colors.on_surface.default.green}
activeForeground={{colors.on_surface.default.red}},{{colors.on_surface.default.green}},{{colors.on_surface.default.blue}}
inactiveBackground={{colors.background.default.red}},{{colors.background.default.green}},{{colors.background.default.blue}}
inactiveBlend={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}

View File

@@ -21,4 +21,4 @@ tab_activity_symbol " ● "
tab_numbers_style 1
tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:30]}{title[30:] and '…'} [{index}]"
active_tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:30]}{title[30:] and '…'} [{index}]"
active_tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title[:30]}{title[30:] and '…'} [{index}]"

View File

@@ -143,4 +143,4 @@ activeBlend={{colors.on_surface.default.red}},{{colors.on_surface.default.green}
activeForeground={{colors.on_surface.default.red}},{{colors.on_surface.default.green}},{{colors.on_surface.default.blue}}
inactiveBackground={{colors.background.default.red}},{{colors.background.default.green}},{{colors.background.default.blue}}
inactiveBlend={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}

View File

@@ -33,4 +33,4 @@ recent-windows {
active-color "{{colors.primary_container.dark.hex}}"
urgent-color "{{colors.error.default.hex}}"
}
}
}

View File

@@ -19,4 +19,4 @@
"color14": "",
"color15": "{{colors.on_surface.default.hex}}"
}
}
}

View File

@@ -141,4 +141,4 @@ activeBlend={{colors.on_surface.default.red}},{{colors.on_surface.default.green}
activeForeground={{colors.on_surface.default.red}},{{colors.on_surface.default.green}},{{colors.on_surface.default.blue}}
inactiveBackground={{colors.background.default.red}},{{colors.background.default.green}},{{colors.background.default.blue}}
inactiveBlend={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}
inactiveForeground={{colors.on_surface_variant.default.red}},{{colors.on_surface_variant.default.green}},{{colors.on_surface_variant.default.blue}}

View File

@@ -239,4 +239,4 @@ a[href*="/channels/"][class*="mention"] {
[class*="channel"][class*="muted"] [class*="link"] {
color: {{colors.on_surface_variant.default.hex}} !important;
opacity: 0.6 !important;
}
}

View File

@@ -96,4 +96,4 @@
.selected_f6f816 .link_d8bfb3 * {
color: var(--text-0) !important;
fill: var(--text-0) !important;
}
}

View File

@@ -296,4 +296,4 @@
"foreground": "{{dank16.color8.dark.hex}}"
}
}
}
}

View File

@@ -415,4 +415,4 @@
"foreground": "{{colors.on_surface.light.hex}}"
}
}
}
}