Revert and update README

This commit is contained in:
Nikopol 2024-01-18 19:04:02 +04:00
parent 6dea2839b5
commit 341c4d91f0
3 changed files with 7 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
jwmappbuilder

View File

@ -1,2 +1,6 @@
# KeizaDesktop # KeizaDesktop
This repository contains everything related to Keiza WM.
## JAB
- Install V.
- build
`v -prod jwmappbuilder.v`

View File

@ -1,14 +1,6 @@
import os import os
import khalyomede.i18n { Translations }
fn main() { fn main() {
textbundle := Translations{
default_lang: "en_US",
translations: {
"helptext": {
"en_US": "\nUsage:\n :cmd [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n<Dynamic label=\"Applications\" icon=\"view-list\">\n\texec: :cmd \n</Dynamic>\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0"
}}}
lang := detectlang()
mut args := []bool{len: 3} mut args := []bool{len: 3}
for mut arg in args { for mut arg in args {
arg = false arg = false
@ -19,7 +11,7 @@ fn main() {
"-t", "--tooltip" { args[1] = true } "-t", "--tooltip" { args[1] = true }
"-a", "--all" { args[2] = true } "-a", "--all" { args[2] = true }
"-h", "--help" { "-h", "--help" {
println(textbundle.get("helptext", { "cmd": os.args[0] })) println("\nUsage:\n ${os.args[0]} [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n<Dynamic label=\"Applications\" icon=\"view-list\">\n\texec: ${os.args[0]} \n</Dynamic>\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0")
exit(0) exit(0)
} else { } else {
if arg == os.args[0] {} else { if arg == os.args[0] {} else {