From a0f3d841e1652fd74fd2ab0672c8fc629a9eb973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Fri, 23 Jun 2023 09:27:11 +0200 Subject: [PATCH] add mimeapps --- bin/executable_handle_vscode | 21 +++++++++++++++++++ dot_local/share/applications/man.desktop | 7 +++++++ .../applications/vscode-url-handler.desktop | 7 +++++++ 3 files changed, 35 insertions(+) create mode 100644 bin/executable_handle_vscode create mode 100644 dot_local/share/applications/man.desktop create mode 100644 dot_local/share/applications/vscode-url-handler.desktop diff --git a/bin/executable_handle_vscode b/bin/executable_handle_vscode new file mode 100644 index 0000000..d5ffea2 --- /dev/null +++ b/bin/executable_handle_vscode @@ -0,0 +1,21 @@ +#!/bin/php +[^/]*)\.git$|', $remote, $res); + +$repo = $res['repo']; + +chdir('/home/vladimir/jopixel/'); +exec("git clone '$remote'"); +chdir('/home/vladimir/jopixel/'.$repo); +pcntl_exec('/bin/zsh'); diff --git a/dot_local/share/applications/man.desktop b/dot_local/share/applications/man.desktop new file mode 100644 index 0000000..bb00ca2 --- /dev/null +++ b/dot_local/share/applications/man.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Man +Comment=Manual pages reader +Terminal=true +Exec=/home/vladimir/bin/manurlhandler %u diff --git a/dot_local/share/applications/vscode-url-handler.desktop b/dot_local/share/applications/vscode-url-handler.desktop new file mode 100644 index 0000000..bb1270d --- /dev/null +++ b/dot_local/share/applications/vscode-url-handler.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Vscode +Comment=open vscode urls +Terminal=true +Exec=/home/vladimir/bin/handle_vscode %u