Giter Site home page Giter Site logo

Comments (9)

azinsharaf avatar azinsharaf commented on June 28, 2024

whkd has its own config home environment variable. WHKD_CONFIG_HOME

from komorebi.

azinsharaf avatar azinsharaf commented on June 28, 2024

do you start komorebi and whkd like this?

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

from komorebi.

goyalyashpal avatar goyalyashpal commented on June 28, 2024

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 ?

from komorebi.

goyalyashpal avatar goyalyashpal commented on June 28, 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
}

from komorebi.

azinsharaf avatar azinsharaf commented on June 28, 2024

do you mind sharing your json file?

from komorebi.

goyalyashpal avatar goyalyashpal commented on June 28, 2024

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}

from komorebi.

azinsharaf avatar azinsharaf commented on June 28, 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%?

from komorebi.

goyalyashpal avatar goyalyashpal commented on June 28, 2024

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

from komorebi.

azinsharaf avatar azinsharaf commented on June 28, 2024

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

from komorebi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.