From 8b62dbb677fb2bdf78a6db01f9f64e35a7d85288 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 29 Sep 2021 18:38:34 +0200 Subject: [PATCH] bin: add linkurl and calculator shortcut --- .local/bin/scripts/= | 7 +++++++ .local/bin/scripts/linkurl | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 .local/bin/scripts/= create mode 100755 .local/bin/scripts/linkurl diff --git a/.local/bin/scripts/= b/.local/bin/scripts/= new file mode 100755 index 0000000..713f38c --- /dev/null +++ b/.local/bin/scripts/= @@ -0,0 +1,7 @@ +#!/bin/sh +IFS=' ' +calc="${*//p/+}" +calc="${calc//./}" +calc="${calc//,/.}" +calc="${calc//x/*}" +bc -l <<<"scale=10;$calc" diff --git a/.local/bin/scripts/linkurl b/.local/bin/scripts/linkurl new file mode 100755 index 0000000..72059b9 --- /dev/null +++ b/.local/bin/scripts/linkurl @@ -0,0 +1,5 @@ +#!/bin/sh +echo "[Desktop Entry] +Icon=text-html +Type=Link +URL=$1">${2:-$1}.desktop