Fix menu/launcher to use installed apps; add pcmanfm, mousepad, arandr
Menu and launcher fallback pointed to alacritty/firefox/rigel/quill which are not in the live ISO. Switch to xterm (already installed), pcmanfm and mousepad (now added to packages). Also add arandr for display settings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
1fa8f212b1
commit
daf9cb4f96
3 files changed
+23
-25
No files matched your search
@@ -36,6 +36,9 @@ feh
|
||||
picom
|
||||
xterm
|
||||
libnotify
|
||||
pcmanfm
|
||||
mousepad
|
||||
arandr
|
||||
|
||||
# Audio
|
||||
alsa-utils
|
||||
|
||||
@@ -174,15 +174,11 @@ static void load_apps(void) {
|
||||
/* fallback if no .desktop files (dev environment, macOS, etc.) */
|
||||
if (NAPP == 0) {
|
||||
static const struct { const char *n, *c, *cat; } FB[] = {
|
||||
{ "Firefox", "firefox &", "Internet" },
|
||||
{ "Terminal", "alacritty &", "System" },
|
||||
{ "Files", "thunar &", "System" },
|
||||
{ "Text Editor", "mousepad &", "System" },
|
||||
{ "Media", "mpv --player-operation-mode=pseudo-gui &", "Media" },
|
||||
{ "Images", "viewnior &", "Media" },
|
||||
{ "PDF Viewer", "evince &", "Office" },
|
||||
{ "Display", "arandr &", "Settings" },
|
||||
{ "Audio", "pavucontrol &", "Settings" },
|
||||
{ "Terminal", "xterm &", "System" },
|
||||
{ "Files", "pcmanfm &", "System" },
|
||||
{ "Text Editor", "mousepad &", "System" },
|
||||
{ "System Mon", "xterm -e htop &", "System" },
|
||||
{ "Display", "arandr &", "Settings" },
|
||||
};
|
||||
for (int i = 0; i < (int)(sizeof(FB)/sizeof(FB[0])); i++) {
|
||||
snprintf(APPS[i].name, 64, "%s", FB[i].n);
|
||||
|
||||
+15
-16
@@ -6,22 +6,21 @@
|
||||
|
||||
static const MenuItem MENU_ITEMS[] = {
|
||||
{ "App Launcher", "orionlauncher &" },
|
||||
{ "Terminal", "alacritty &" },
|
||||
{ "File Manager", "rigel &" },
|
||||
{ "Text Editor", "quill &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Web Browser", "firefox &" },
|
||||
{ "System Monitor", "alacritty -T 'System Monitor' -e htop &" },
|
||||
{ "Volume Control", "pavucontrol &" },
|
||||
{ "System Settings", "nebula &" },
|
||||
{ "Software Updates", "orionpkg &" },
|
||||
{ "Display Settings", "arandr &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Change Wallpaper", "orionwallpaper --reset &" },
|
||||
{ "Install OrionOS", "alacritty -e bash -c 'sudo orioninstall-gui 2>/dev/null || sudo orioninstall; exec bash' &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Restart OrionWM", "pkill orionwm; sleep 0.2; orionwm &" },
|
||||
{ "Quit OrionOS", "pkill orionwm" },
|
||||
{ "Terminal", "xterm &" },
|
||||
{ "File Manager", "pcmanfm &" },
|
||||
{ "Text Editor", "mousepad &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Web Browser", "firefox &" },
|
||||
{ "System Monitor", "xterm -T 'System Monitor' -e htop &" },
|
||||
{ "Volume Control", "pavucontrol &" },
|
||||
{ "Software Updates", "orionpkg &" },
|
||||
{ "Display Settings", "arandr &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Change Wallpaper", "orionwallpaper --reset &" },
|
||||
{ "Install OrionOS", "xterm -e bash -c 'orioninstall; exec bash' &" },
|
||||
{ "──────────────────", NULL },
|
||||
{ "Restart OrionWM", "pkill orionwm; sleep 0.2; orionwm &" },
|
||||
{ "Quit OrionOS", "pkill orionwm" },
|
||||
};
|
||||
#define MENU_COUNT ((int)(sizeof(MENU_ITEMS) / sizeof(MENU_ITEMS[0])))
|
||||
|
||||
|
||||
Reference in new issue
Block a user