aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
commit8d416aa3cc6a562cb4d676eafb92d52b1ef3d334 (patch)
tree05db378117b6b67d3350b56b8702d6faac1fa545 /scripts/dot-local/bin
parentab7303e1d893f33e09dbc8493f9a9179a7a40a4a (diff)
updates
Diffstat (limited to 'scripts/dot-local/bin')
-rwxr-xr-xscripts/dot-local/bin/mail_html_view5
-rwxr-xr-xscripts/dot-local/bin/mailsync9
-rwxr-xr-xscripts/dot-local/bin/safe_extract1
-rwxr-xr-xscripts/dot-local/bin/shortcuts4
4 files changed, 15 insertions, 4 deletions
diff --git a/scripts/dot-local/bin/mail_html_view b/scripts/dot-local/bin/mail_html_view
new file mode 100755
index 0000000..9792b79
--- /dev/null
+++ b/scripts/dot-local/bin/mail_html_view
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+sed -i 's/&nbsp;/ /g' "$2"
+
+w3m -I "$1" -O utf-8 -dump -T text/html -cols 100 -s -graph -o fold_textarea=true -o fold_line=true -o decode_url=true -o display_link=true -o display_borders=true -o disable_center=true -o no_cache=true -o use_cookie=false "$2"
diff --git a/scripts/dot-local/bin/mailsync b/scripts/dot-local/bin/mailsync
index be2f93d..4b0df46 100755
--- a/scripts/dot-local/bin/mailsync
+++ b/scripts/dot-local/bin/mailsync
@@ -23,7 +23,12 @@ fi
notify()
{
- notify-send --app-name="Mail" -- "$1" "$2"
+ notify-send --app-name="Mail" --app-icon=/home/moreka/Pictures/read.png -- "$1" "$2"
+ # if [ $# -ge 3 ]; then
+ # dms notify "$1" "$2" --file "$3" --app "Mail" --icon /home/moreka/Pictures/read.png
+ # else
+ # dms notify "$1" "$2" --app "Mail" --icon /home/moreka/Pictures/read.png
+ # fi
}
MAILDIR="$XDG_DATA_HOME/mail"
@@ -75,7 +80,7 @@ sync_and_notify()
from="${from% *}"
from="${from%\"}"
from="${from#\"}"
- notify "$from:" "$subject"
+ notify "$from:" "$subject" "$file"
done
;;
*) echo "No new mail for $1." ;;
diff --git a/scripts/dot-local/bin/safe_extract b/scripts/dot-local/bin/safe_extract
index 0574816..3b7b88c 100755
--- a/scripts/dot-local/bin/safe_extract
+++ b/scripts/dot-local/bin/safe_extract
@@ -17,5 +17,6 @@ set -euo pipefail
--unshare-all \
--new-session \
--seccomp 10 \
+ 10< /home/moreka/probe/bwrap/seccomp_default_filter.bpf \
/usr/bin/ouch decompress "$@"
)
diff --git a/scripts/dot-local/bin/shortcuts b/scripts/dot-local/bin/shortcuts
index d5644c0..e2d59f6 100755
--- a/scripts/dot-local/bin/shortcuts
+++ b/scripts/dot-local/bin/shortcuts
@@ -7,8 +7,8 @@ bmfiles="$confdir/bm-files"
# Output locations. Unactivated progs should go to /dev/null.
shell_shortcuts="$confdir/shortcutrc"
-shell_env_shortcuts="/dev/null"
-zsh_named_dirs="/dev/null"
+shell_env_shortcuts="$confdir/shortcutenvrc"
+zsh_named_dirs="$confdir/zshnameddirs"
lf_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcutrc"
vim_shortcuts="/dev/null"
qute_shortcuts="/dev/null"