Damn Small Linux Forums
Another JWM project - Printable Version

+- Damn Small Linux Forums (https://damnsmalllinux.org/forums)
+-- Forum: Damn Small Linux Forum (https://damnsmalllinux.org/forums/forum-1.html)
+--- Forum: Other Topics (https://damnsmalllinux.org/forums/forum-5.html)
+--- Thread: Another JWM project (/thread-73.html)

Pages: 1 2 3


RE: Another JWM project - Rev - 06-12-2024

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.


RE: Another JWM project - MrAureliusR - 10-23-2024

(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?


RE: Another JWM project - Rev - 10-24-2024

(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.


RE: Another JWM project - Rev - 10-29-2024

Early alpha is now out for testing. Please feel free to request any features and report any bugs.

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