From 14a892e627a375334a02381351f139d94ad7ecf3 Mon Sep 17 00:00:00 2001 From: ダカマ Date: Mon, 2 Jun 2025 13:08:46 +0200 Subject: First dump --- scriptlets/ct_file_handler.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scriptlets/ct_file_handler.sh (limited to 'scriptlets/ct_file_handler.sh') diff --git a/scriptlets/ct_file_handler.sh b/scriptlets/ct_file_handler.sh new file mode 100755 index 0000000..2e34b1c --- /dev/null +++ b/scriptlets/ct_file_handler.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $1 == *.sh ]] +then + chmod +x "$1" && xfce4-terminal --hold --geometry=80x24 -e "/bin/bash -c $1" && chmod -x "$1" + +elif [[ $1 == *.py ]] +then + xfce4-terminal --hold --geometry=80x24 -e "/bin/python3 $1" & +else + xdg-open "$1" & +fi \ No newline at end of file -- cgit v1.2.3