Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another JWM project
#21
Hey guys I added Keybinding support and autostart support. Keep in mind, this is a quick and dirty implementation and may change in the future. Here's an example of how you add them to your config.
Code:
keybind h {
    key = "H"
    command = "up"
}

keybind refresh {
    mods = {"Control", "Alt"}
    key = "R"
    command = "restart"
}

keybind firefox {
    mods = {"Control", "Alt"}
    key = "W"
    command = "exec:firefox"
}
Code:
autostart cmst {
    sleep_time = 1
    fork_needed = true
    restart_kill = true
    program = "cmst"
    args = "-m"
}
How would you guys like the configuration to be located? My current thought is to have one jwms.conf in ~/.config/jwms and a default one in /etc/jwms. Or I can leave out the one in /etc entirely.
Reply
#22
(06-12-2024, 03:52 AM)Rev Wrote: Hey guys I added Keybinding support and autostart support. Keep in mind, this is a quick and dirty implementation and may change in the future. Here's an example of how you add them to your config.
Code:
keybind h {
    key = "H"
    command = "up"
}

keybind refresh {
    mods = {"Control", "Alt"}
    key = "R"
    command = "restart"
}

keybind firefox {
    mods = {"Control", "Alt"}
    key = "W"
    command = "exec:firefox"
}
Code:
autostart cmst {
    sleep_time = 1
    fork_needed = true
    restart_kill = true
    program = "cmst"
    args = "-m"
}
How would you guys like the configuration to be located? My current thought is to have one jwms.conf in ~/.config/jwms and a default one in /etc/jwms. Or I can leave out the one in /etc entirely.

Well, it would be nice to follow the XDG stuff, like xdg-config-home or whatever it's called. That way system managers can choose where that stuff goes instead of it being hard-coded. But as long as you follow the traditional guidelines -- system-wide config in /etc, user-specific stuff in ~/.config -- then I'm sure people will be happy Smile

Also this looks like a super cool project and I'm curious to give it a try. Do you have an installation guide?
Reply
#23
(10-23-2024, 08:08 AM)MrAureliusR Wrote: Well, it would be nice to follow the XDG stuff, like xdg-config-home or whatever it's called. That way system managers can choose where that stuff goes instead of it being hard-coded. But as long as you follow the traditional guidelines -- system-wide config in /etc, user-specific stuff in ~/.config -- then I'm sure people will be happy Smile

Also this looks like a super cool project and I'm curious to give it a try. Do you have an installation guide?

I've decided on $HOME/.config/jwms/ as the user config path and /etc/jwms/ as the system config path. I still don't have a way of normally installing the program into the system yet, Although I could whip up a bash script that installs the binary in /usr/local/bin and moves the provided cfg file to the system path.

EDIT: I just updated the project so you can install the program via "sudo make install" and removing the program via "sudo make uninstall". The dependencies that are needed to build the program are on the github.
Reply
#24
Early alpha is now out for testing. Please feel free to request any features and report any bugs.

https://github.com/purpasmart96/jwms/releases
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)