Skip to content

Commit

Permalink
Replace GlazeWM with komorebi
Browse files Browse the repository at this point in the history
* Install komorebi insteadof glazewm

* Save example configurations as a first step

`komorebic quickstart` generates them

* Update instructions

* `dprint fmt`

* `yamlfmt .`
  • Loading branch information
kachick authored Jun 13, 2024
1 parent 3cea764 commit aa8c54b
Show file tree
Hide file tree
Showing 7 changed files with 1,591 additions and 7 deletions.
14 changes: 8 additions & 6 deletions cmd/winit-conf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ func provisioners() []provisioner {
// As I understand it, unix like permission masks will work even in windows...
const dirPerm = 0750

// GlazeWM does not support .config directory
err = os.MkdirAll(filepath.Join(homePath, ".glaze-wm"), dirPerm)
if err != nil {
log.Fatalf("Failed to create GlazeWM dotfiles directory: %+v", err)
}
err = os.MkdirAll(filepath.Join(homePath, ".config", "wezterm"), dirPerm)
if err != nil {
log.Fatalf("Failed to create wezterm dotfiles directory: %+v", err)
Expand All @@ -89,6 +84,10 @@ func provisioners() []provisioner {
if err != nil {
log.Fatalf("Failed to create path that will have alacritty.toml: %+v", err)
}
err = os.MkdirAll(filepath.Join(homePath, ".config", "whkd"), dirPerm)
if err != nil {
log.Fatalf("Failed to create GlazeWM dotfiles directory: %+v", err)
}

return []provisioner{
newProvisioner([]string{"config", "starship", "starship.toml"}, []string{homePath, ".config", "starship.toml"}),
Expand All @@ -106,7 +105,10 @@ func provisioners() []provisioner {
newProvisioner([]string{"windows", "winget", "winget-pkgs-entertainment.json"}, []string{tmpdirPath, "winget-pkgs-entertainment.json"}),
newProvisioner([]string{"windows", "winget", "winget-pkgs-storage.json"}, []string{tmpdirPath, "winget-pkgs-storage.json"}),

newProvisioner([]string{"windows", "glazewm", "config.yaml"}, []string{homePath, ".glaze-wm", "config.yaml"}),
// Can I move it to komorebi~ path? application.yaml in root looks like too wide
newProvisioner([]string{"windows", "komorebi", "applications.yaml"}, []string{homePath, "applications.yaml"}),
newProvisioner([]string{"windows", "komorebi", "komorebi.json"}, []string{homePath, "komorebi.json"}),
newProvisioner([]string{"windows", "whkd", "whkdrc"}, []string{homePath, ".config", "whkd", "whkdrc"}),
}
}

Expand Down
4 changes: 4 additions & 0 deletions windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Basically following codes will be done in PowerShell
See https://zmzlz.blogspot.com/2014/10/windows-dropbox.html for detail
1. Enable Bitlocker and backup the restore key

## Workflow

1. `komorebic start --whkd`

## I forgot to backup Bitlocker restore key 😋

https://account.microsoft.com/devices/recoverykey may help
Expand Down
2 changes: 2 additions & 0 deletions windows/glazewm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This config maybe too old since I using komorebi instead.
Just keeping settings for now, feel free to remove it.
Loading

0 comments on commit aa8c54b

Please sign in to comment.