mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
Move Ghostty Application Theming (#1047)
* Moved ghostty config First test. Seems to work but probably broke something. * Updated test
This commit is contained in:
@@ -265,7 +265,13 @@ func (cd *ConfigDeployer) deployGhosttyConfig() ([]DeploymentResult, error) {
|
|||||||
|
|
||||||
colorResult := DeploymentResult{
|
colorResult := DeploymentResult{
|
||||||
ConfigType: "Ghostty Colors",
|
ConfigType: "Ghostty Colors",
|
||||||
Path: filepath.Join(os.Getenv("HOME"), ".config", "ghostty", "config-dankcolors"),
|
Path: filepath.Join(os.Getenv("HOME"), ".config", "ghostty", "themes", "dankcolors"),
|
||||||
|
}
|
||||||
|
|
||||||
|
themesDir := filepath.Dir(colorResult.Path)
|
||||||
|
if err := os.MkdirAll(themesDir, 0755); err != nil {
|
||||||
|
mainResult.Error = fmt.Errorf("failed to create themes directory: %w", err)
|
||||||
|
return []DeploymentResult{mainResult}, mainResult.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := os.WriteFile(colorResult.Path, []byte(GhosttyColorConfig), 0644); err != nil {
|
if err := os.WriteFile(colorResult.Path, []byte(GhosttyColorConfig), 0644); err != nil {
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ func TestHyprlandConfigStructure(t *testing.T) {
|
|||||||
func TestGhosttyConfigStructure(t *testing.T) {
|
func TestGhosttyConfigStructure(t *testing.T) {
|
||||||
assert.Contains(t, GhosttyConfig, "window-decoration = false")
|
assert.Contains(t, GhosttyConfig, "window-decoration = false")
|
||||||
assert.Contains(t, GhosttyConfig, "background-opacity = 1.0")
|
assert.Contains(t, GhosttyConfig, "background-opacity = 1.0")
|
||||||
assert.Contains(t, GhosttyConfig, "config-file = ./config-dankcolors")
|
assert.Contains(t, GhosttyConfig, "theme = dankcolors")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGhosttyColorConfigStructure(t *testing.T) {
|
func TestGhosttyColorConfigStructure(t *testing.T) {
|
||||||
|
|||||||
@@ -48,4 +48,4 @@ keybind = shift+enter=text:\n
|
|||||||
gtk-single-instance = true
|
gtk-single-instance = true
|
||||||
|
|
||||||
# Dank color generation
|
# Dank color generation
|
||||||
config-file = ./config-dankcolors
|
theme = dankcolors
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[templates.dmsghostty]
|
[templates.dmsghostty]
|
||||||
input_path = 'SHELL_DIR/matugen/templates/ghostty.conf'
|
input_path = 'SHELL_DIR/matugen/templates/ghostty.conf'
|
||||||
output_path = '~/.config/ghostty/config-dankcolors'
|
output_path = '~/.config/ghostty/themes/dankcolors'
|
||||||
|
|||||||
Reference in New Issue
Block a user