Atajos para abrir cosas de Lunar

This commit is contained in:
Cat /dev/Nulo 2022-03-17 09:31:01 -03:00
parent 8b3915eb77
commit c2cdc30da0
6 changed files with 54 additions and 0 deletions

19
.local/bin/abrir Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh -e
vm() {
doas rc-service libvirtd start
sleep 2
doas virsh -c qemu:///system start --domain alpine-sutty || true
sshfs nulo@sutty.vm: sutty
}
if test "$(ls ~/sutty | wc -l)" = 0; then
vm
fi
if test "$1" = editor; then
footclient --working-directory="$HOME/$2" vis
fi
if test "$1" = terminal; then
footclient env TERM=xterm-256color ssh -t nulo@sutty.vm "cd '$2'; $3; $SHELL -l"
fi

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Editor backend
Exec=abrir editor sutty/lunar-backend
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Editor frontend app
Exec=abrir editor sutty/lunar
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: SSH producción panel
Exec=footclient ssh root@panel.lunarcomunidad.com
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Terminal `make android-dev` frontend app
Exec=abrir terminal lunar 'make android-dev'
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Lunar: Terminal frontend app
Exec=abrir terminal lunar
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task