diff options
Diffstat (limited to 'scripts/dot-local/bin')
| -rwxr-xr-x | scripts/dot-local/bin/mail_html_view | 5 | ||||
| -rwxr-xr-x | scripts/dot-local/bin/mailsync | 9 | ||||
| -rwxr-xr-x | scripts/dot-local/bin/safe_extract | 1 | ||||
| -rwxr-xr-x | scripts/dot-local/bin/shortcuts | 4 |
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/ / /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" |
