From c2cdc30da0674fbd7d11d4746f70ca49753b38a2 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 17 Mar 2022 09:31:01 -0300 Subject: [PATCH] Atajos para abrir cosas de Lunar --- .local/bin/abrir | 19 +++++++++++++++++++ .../applications/lunar-editor-backend.desktop | 7 +++++++ .../lunar-editor-frontend.desktop | 7 +++++++ .local/share/applications/lunar-ssh.desktop | 7 +++++++ ...unar-terminal-frontend-android-dev.desktop | 7 +++++++ .../lunar-terminal-frontend.desktop | 7 +++++++ 6 files changed, 54 insertions(+) create mode 100755 .local/bin/abrir create mode 100644 .local/share/applications/lunar-editor-backend.desktop create mode 100644 .local/share/applications/lunar-editor-frontend.desktop create mode 100644 .local/share/applications/lunar-ssh.desktop create mode 100644 .local/share/applications/lunar-terminal-frontend-android-dev.desktop create mode 100644 .local/share/applications/lunar-terminal-frontend.desktop diff --git a/.local/bin/abrir b/.local/bin/abrir new file mode 100755 index 0000000..f0feebf --- /dev/null +++ b/.local/bin/abrir @@ -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 diff --git a/.local/share/applications/lunar-editor-backend.desktop b/.local/share/applications/lunar-editor-backend.desktop new file mode 100644 index 0000000..a0419a0 --- /dev/null +++ b/.local/share/applications/lunar-editor-backend.desktop @@ -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 diff --git a/.local/share/applications/lunar-editor-frontend.desktop b/.local/share/applications/lunar-editor-frontend.desktop new file mode 100644 index 0000000..3745f78 --- /dev/null +++ b/.local/share/applications/lunar-editor-frontend.desktop @@ -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 diff --git a/.local/share/applications/lunar-ssh.desktop b/.local/share/applications/lunar-ssh.desktop new file mode 100644 index 0000000..4a9cea8 --- /dev/null +++ b/.local/share/applications/lunar-ssh.desktop @@ -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 diff --git a/.local/share/applications/lunar-terminal-frontend-android-dev.desktop b/.local/share/applications/lunar-terminal-frontend-android-dev.desktop new file mode 100644 index 0000000..51011e1 --- /dev/null +++ b/.local/share/applications/lunar-terminal-frontend-android-dev.desktop @@ -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 diff --git a/.local/share/applications/lunar-terminal-frontend.desktop b/.local/share/applications/lunar-terminal-frontend.desktop new file mode 100644 index 0000000..0e31c75 --- /dev/null +++ b/.local/share/applications/lunar-terminal-frontend.desktop @@ -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