Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No komorebi configuration found #625

Closed
goyalyashpal opened this issue Jan 6, 2024 · 10 comments
Closed

No komorebi configuration found #625

goyalyashpal opened this issue Jan 6, 2024 · 10 comments

Comments

@goyalyashpal
Copy link

goyalyashpal commented Jan 6, 2024

hey @ LGUG2Z ! i am also a new user to komorebi coming here after failed try with dwm-win32 port.
i have been looking for almost 100 minutes, and still couldn't find how to enable hotkeys.

on looking further with komorebic check (thannks a lot for check subcommand 😃), i found that it says "no config found" which is confusing as i have done the equivalent of all the steps given in the readme.

i have done:

  • downloaded both komorebi & whkd
  • added both those to PATH, and added the KOMOREBI_CONFIG_HOME env variable
  • added all the 3 applications.yaml komorebi.json whkdrc files to that directory configured above
$ komorebic check
KOMOREBI_CONFIG_HOME detected: D:\UserFiles\komorebi_config_home

Looking for configuration files in D:\UserFiles\komorebi_config_home

No komorebi configuration found in D:\UserFiles\komorebi_config_home

If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration   


$ cd $KOMOREBI_CONFIG_HOME/

$ ls -A
applications.yaml  komorebi.json  whkdrc

i am using msys2, not wsl or anything like that. so, the issue is not related to it.

i.e. equivalent of as mentioned at:

(click me)

komorebi/README.md

Lines 237 to 240 in f9c69e5

### GitHub Releases
Prebuilt binaries are available on the [releases page](https://github.com/LGUG2Z/komorebi/releases) in a `zip` archive.
Once downloaded, you will need to move the `komorebi.exe` and `komorebic.exe` binaries to a directory in your `Path` (

komorebi/README.md

Lines 277 to 280 in f9c69e5

### Configuring
If you followed the quickstart, `komorebi.json` will be the single place where you declaratively configure the behaviour
of the window manager. There is a [complete JSON Schema for this configuration file](schema.json) available to provide

### Quickstart

komorebi/README.md

Lines 191 to 201 in f9c69e5

# save the example configuration to ~/komorebi.json
iwr https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.19/komorebi.example.json -OutFile "$Env:USERPROFILE\komorebi.json"
# save the latest generated app-specific config tweaks and fixes
komorebic fetch-app-specific-configuration
# ensure the ~/.config folder exists
mkdir "$Env:USERPROFILE\.config" -ea 0
# save the sample whkdrc file with key bindings to ~/.config/whkdrc
iwr https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.19/whkdrc.sample -OutFile "$Env:USERPROFILE\.config\whkdrc"

komorebi/README.md

Lines 357 to 360 in f9c69e5

#### Setting a Custom KOMOREBI_CONFIG_HOME Directory
If you do not want to keep _komorebi_-related files in your `$Env:USERPROFILE` directory, you can specify a custom directory
by setting the `$Env:KOMOREBI_CONFIG_HOME` environment variable.

Versions and environment:

$ komorebi --version
komorebi 0.1.19

$ whkd --version
whkd 0.2.0

$ systeminfo | grep -iA1 "os name"
OS Name:                   Microsoft Windows 10 Home Single Language
OS Version:                10.0.19045 N/A Build 19045
@azinsharaf
Copy link
Sponsor

whkd has its own config home environment variable. WHKD_CONFIG_HOME

@azinsharaf
Copy link
Sponsor

do you start komorebi and whkd like this?

komorebic start -c "<komorebi.json file path goes here>" --whkd

@goyalyashpal
Copy link
Author

do you start komorebi and whkd like this?

hi! no.

  • i started like: komorebic start as supplying the path options works only for current session, and
  • the problem of komorebic check failing would still prevail, i.e.
  • it would still require passing it every time which is tedious and those options should be took care by the config

whkd has its own config home environment variable. WHKD_CONFIG_HOME

so, i need to set that up and point it to same as KOMOREBI_CONFIG_HOME ?

@goyalyashpal
Copy link
Author

goyalyashpal commented Jan 6, 2024

komorebic start -c "<komorebi.json file path goes here>" --whkd

so,

  • i tried that just now; and
  • it seems that specifying the -c option makes 'komorebi.exe' unable to start.
  • whereas without that, i.e. with no options or even with --whkd, it starts okay.
  • it makes me wonder if there's some issue parsing that json file or if it is even valid
$ komorebic start -c $KOMOREBI_CONFIG_HOME/komorebi.json --whkd
Start-Process 'komorebi.exe' -ArgumentList '--config="D:\UserFiles\komorebi_config_home\komorebi.json"' -WindowStyle hidden
Waiting for komorebi.exe to start...komorebi.exe did not start... Trying again
Start-Process 'komorebi.exe' -ArgumentList '--config="D:\UserFiles\komorebi_config_home\komorebi.json"' -WindowStyle hidden

$ komorebic start --whkd
Start-Process 'komorebi.exe' -WindowStyle hidden
Waiting for komorebi.exe to start...Started!

if (!(Get-Process whkd -ErrorAction SilentlyContinue))
{
  Start-Process whkd -WindowStyle hidden
}

@azinsharaf
Copy link
Sponsor

do you mind sharing your json file?

@goyalyashpal
Copy link
Author

sharing your json file

hi! yeah, i have attached it below.

komorebi/README.md

Lines 200 to 201 in f9c69e5

# save the sample whkdrc file with key bindings to ~/.config/whkdrc
iwr https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.19/whkdrc.sample -OutFile "$Env:USERPROFILE\.config\whkdrc"

but rerading the above example , i actually think u were right before regaring this:

whkd has its own config home environment variable. WHKD_CONFIG_HOME

in the sense that, maybe (edit: yes) the default place where whkd looks for its config is ~/.config/whkdrc and so above works out.

edit2: even after setting up the WHKD_CONFIG_HOME to %KOMOREBI_CONFIG_HOME% (as the whkdrc is located in same dir) it didn't work; and lack of whkd check didn't help


File: komorebi.json

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json",
  // "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "alt_focus_hack": true,
  "default_workspace_padding": 20,
  "default_container_padding": 20,
  "active_window_border": false,
  "active_window_border_colours": {
    "single": { "r": 66, "g": 165, "b": 245 },
    "stack": { "r": 256, "g": 165, "b": 66 },
    "monocle": { "r": 255, "g": 51, "b": 153 }
  },
  "monitors": [
    {
      "workspaces": [
        { "name": "I", "layout": "BSP" },
        { "name": "II", "layout": "VerticalStack" },
        { "name": "III", "layout": "HorizontalStack" },
        { "name": "IV", "layout": "UltrawideVerticalStack" },
        { "name": "V", "layout": "Rows" }
      ]
    }
  ]
}

it basically came as follows:

curl --no-clobber --create-dirs --output-dir komorebi -o komorebi.json -o whkdrc \
https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.19/{komorebi.example.json,whkdrc.sample}

@azinsharaf
Copy link
Sponsor

azinsharaf commented Jan 7, 2024

can you remove the commented out line in json file and try it again? If i am right json can't include lines commented out. not sure 100%.
just for testing can you hardcode the full path in WHKD_CONFIG_HOME instead of %KOMOREBI_CONFIG_HOME%?

@goyalyashpal
Copy link
Author

hi! i have got exams. so, wont be able to attach ay things for a month. however sharing my foundings from 2 days ago:

it seems that evon on starting with komorebic start the hotkeys are working... its just that it was placing current active window on left, and i was trying with A-S-h which was not doing anything.

I was doing that as i was used to expecting it to cycle back as it does in dwm-win32 port. i found that this was erronoeus when i started it as komorebi and perssing that showed the error entry on stdout/err...

other than that, i tried changing the configs in whkdrc i.e. alt h to shift focus up.. but i guess even that didn't work... (but to be reconfirmed more firmly)

and ofc i tried removing that commented out line, and it still showed no config found on komorebic check

@azinsharaf
Copy link
Sponsor

'komorebic check' command shows me 'no config found' as well but it has picked it up correctly. could be a wrong message.

@goyalyashpal goyalyashpal closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants