[Launcher] Improve type definitions

This commit is contained in:
Admin 2025-04-14 16:17:21 +02:00
parent d9fdf1ee6d
commit ed17459e2a
8 changed files with 59 additions and 9 deletions

View File

@ -57,7 +57,9 @@ const build = ( wallpaper, lockpaper, theme ) => {
// recursively index files from config directory -> Maybe add a file to each
// directory to indicate whether or not to index files in it?
const fileList = util.treeWalker( path.join( __dirname, '/../config/' ), '*', [ 'node_modules', '@girs', '.gitignore', '.git' ] );
const fileList = util.treeWalker( path.join( __dirname, '/../config/' ), '*', [ 'node_modules', '@girs', '.gitignore', '.git', 'flavours' ] );
// TODO: Copy missing files over directly
console.log( fileList );
for (let index = 0; index < fileList.length; index++) {
try {

View File

@ -19,17 +19,30 @@ export interface App extends ResultElement {
// TODO: Finish
export interface DictionaryEntry extends ResultElement {
/**
* Execute no command
*/
action: null;
/**
* The dictionary definition
*/
definition: string;
}
// TODO: Finish
export interface CMDOutput extends ResultElement {
/**
* Stdout from the command that was run
*/
result: string;
}
// TODO: Finish
export interface Calculation extends ResultElement {
/**
* THe calculation result
*/
result: string;
}

View File

@ -57,4 +57,4 @@ export interface ResultElement {
fontSize: number | undefined;
}
type Action = '';
type Action = '' | null;

View File

@ -8,3 +8,5 @@
*/
import { readFileAsync, writeFileAsync, monitorFile } from "astal";

28
install
View File

@ -7,3 +7,31 @@ read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform
# Install yazi plugins using ya pack -a ndtoan96/ouch and ya pack -a boydaihungst/restore
#
# TODO: get configs from current setup
# Hyprland
yay -S hyprland hypridle hyprfreeze hyprlock plymouth aylurs-gtk-shell-git brightnessctl pulsemixer xdg-desktop-portal-hyprland
# Audio, drivers, tools
yay -S pipewire pipewire-alsa pipewire-pulse pipewire-jack mesa fish thunar yazi wireplumber grimblast wl-clipboard wget vimiv zoxide trash-cli fzf ouch zathura
# Set up yazi
ya pack -a ndtoan96/ouch
ya pack -a boydaihungst/restore
# Fonts
yay -S adobe-source-code-pro-fonts gnome-font-viewer gnome-characters gnome-tweaks lxappearance kvantum gnome-keyring smartmontools ffmpeg polkit-gnome swaybg network-manager-applet polkit-kde-agent cpupower-gui ttf-fantasque-nerd ttf-jetbrains-mono-nerd ttf-fluentui-system-icons ttf-comfortaa
# Programming
yay -S meld docker vscodium kitty fish docker terminator ghex nodejs npm python-pip git-credential-manager-core-bin wine kate rustup cargo filezilla typescript-language-server php jdk vscode-css-languageserver vscode-html-languageserver bash-language-server lazygit
sudo npm i -g @vue/typescript-plugin
# nvim
yay -S neovim lua lua-language-server tree-sitter texlab stylua luarocks jdtls perl julia autojump pyright
# Internet
yay -S librewolf-bin webcord-bin thunderbird rustdesk brave-bin
# Utilities
yay -S okular vlc nextcloud-client p7zip zip unzip gnome-keyring noto-fonts thunderbird pamixer pavucontrol light neofetch bashtop hugo sddm uxplay upower
# LaTeX
yay -S texlive biber

View File

@ -57,3 +57,8 @@
- [ ] Installer for configs
- [ ] Vivado cleanup (run after vivado and hope vivado is blocking (or simply execute vivado in /tmp))
- [ ] migrate to zoxide from autojump
Using astal (https://aylur.github.io/astal, which is gjs based), write a component that takes as argument a UIComponent array (pre-defined interface) and depending on what subclass of that interface it is renders a different component for each element.
I have the type definitions of UIComponent below. The possible subclasses are LargeUIComponent, MediumUIComponent, ListUIComponent and CalculationUIComponent.
Design-wise, I would like to have something similar to GNOME's layout.