Skip to content

Commit

Permalink
Fix table generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgord9518 committed Jul 1, 2024
1 parent 490ab39 commit 5b529f4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ a.out
zig-*
*.bak
test
cmd/tablegen/tablegen
10 changes: 9 additions & 1 deletion cmd/tablegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ func main() {
profile := profiles.Profiles()[profileKeys[i]]

// Name
fmt.Printf("|%s", profile.Names[0])
fmt.Printf("|")

for i, name := range profile.Names {
fmt.Printf("%s", name)

if i < len(profile.Names) - 1 {
fmt.Printf(", ")
}
}

// Level
fmt.Printf("|%d", profile.Level)
Expand Down
3 changes: 3 additions & 0 deletions cmd/tablegen/unique_table.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./tablegen | gawk '!a[$0]++'
29 changes: 8 additions & 21 deletions profiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ the version, there is also a list of aliases that link to the original profile
|apk editor studio|1|dri|x11|xdg-templates:rw, xdg-download:rw|
|appimage pool|2|dri|wayland, x11, network|~/Applications:rw|
|appimageupdate|2|dri|x11, network|~/Applications:rw|
|aranym|3|dri, input|x11, audio, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|aranym|3|dri, input|x11, audio, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|aranym|3|dri, input|x11, audio, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|aranym, aranym jit, aranym mmu|3|dri, input|x11, audio, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|armagetron advanced|3|dri, input|x11, audio, network||
|badlion client|2|dri|x11, audio, network||
|balenaetcher|0||||
Expand All @@ -29,8 +27,7 @@ the version, there is also a list of aliases that link to the original profile
|conky|1|dri|x11, pid||
|cool retro term|2|dri|x11, network|~/.config/nvim:ro, ~/.profile:ro, ~/.bashrc:ro, ~/.zshrc:ro, ~/.viminfo:ro|
|cro-mag rally|3|dri|x11, alsa||
|deadbeef|2|dri|x11, audio, network|xdg-music:rw|
|deadbeef|2|dri|x11, audio, network|xdg-music:rw|
|deadbeef, deadbeef nightly|2|dri|x11, audio, network|xdg-music:rw|
|deemix-gui|2|dri|x11, audio, network|xdg-music:rw|
|densify|2|dri|x11|xdg-documents:rw|
|desmume|2|dri, input|x11, alsa|xdg-download:rw, ~/Games:rw, ~/Roms:rw|
Expand All @@ -43,14 +40,10 @@ the version, there is also a list of aliases that link to the original profile
|endless sky|2|dri|x11, alsa|xdg-templates:rw, xdg-documents:rw|
|eternal lands (appimage)|1|dri|x11, audio, network||
|fireboy and watergirl: in the forest temple|1|dri|x11, pulseaudio||
|firefox|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|firefox|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|firefox|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|firefox, firefox beta, firefox nightly|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|fontforge|2|dri|x11|xdg-documents:rw, ~/.fonts:rw|
|fractale|2|dri|x11||
|freecad|1|dri|x11|xdg-documents:rw, xdg-templates:rw|
|freecad|1|dri|x11|xdg-documents:rw, xdg-templates:rw|
|freecad|1|dri|x11|xdg-documents:rw, xdg-templates:rw|
|freecad, freecad conda, freecad weekly|1|dri|x11|xdg-documents:rw, xdg-templates:rw|
|gambatte_qt|2|dri, input|x11, alsa|xdg-download:rw, ~/Games:rw, ~/Roms:rw|
|geometrize|2|dri|x11|xdg-pictures:rw|
|gnu image manipulation program|1|dri|x11|xdg-pictures:rw|
Expand Down Expand Up @@ -94,9 +87,7 @@ the version, there is also a list of aliases that link to the original profile
|pokete|3||alsa, network||
|potato presenter|2|dri|x11|xdg-documents:rw|
|ppsspp|2|dri|x11, audio|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|python|3||||
|python|3||||
|python|3||||
|python, python2, python3|3||||
|runelite|1|dri|x11, audio, network||
|ryujinx|2|dri, input|x11, alsa, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|sengi|1|dri|x11, audio, network||
Expand All @@ -112,21 +103,17 @@ the version, there is also a list of aliases that link to the original profile
|stellarium|1|dri|x11||
|stunt car remake|3|dri|x11, alsa||
|subsurface|1|dri|x11|xdg-documents:ro|
|yuzu|2|dri, input|x11, alsa, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|yuzu, suyu, sudachi|2|dri, input|x11, alsa, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|supertux 2|3|dri, input|x11, audio, network||
|supertuxkart|3|dri, input|x11, audio, network||
|yuzu|2|dri, input|x11, alsa, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|
|synthein|3|dri|x11, alsa||
|tapecalc|2|dri|x11||
|texstudio|1|dri|x11|xdg-documents:rw, xdg-templates:rw|
|the powder toy|3|dri|x11, network||
|thorium browser|2|dri|x11, pulseaudio, network|xdg-download:rw|
|tiled|2|dri|x11|xdg-documents:rw, xdg-pictures:rw, xdg-templates:rw|
|upscayl|1|dri|x11|xdg-pictures:rw|
|visual studio code|2|dri|x11, network|xdg-documents:rw|
|visual studio code|2|dri|x11, network|xdg-documents:rw|
|waterfox|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|waterfox|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|visual studio code, vscode|2|dri|x11, network|xdg-documents:rw|
|waterfox, waterfox classic|2|dri|x11, pulseaudio, network, dbus|xdg-download:rw|
|xonotic|3|dri|x11, alsa, network||
|yabg|3|dri, input|x11, pulseaudio||
|yuzu|2|dri, input|x11, alsa, network|xdg-download:ro, ~/Games:ro, ~/Roms:ro|

0 comments on commit 5b529f4

Please sign in to comment.