diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-06 20:58:18 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-06 20:58:47 +0100 |
commit | db7321af115a79b63267cb18889cbd334e8ca6e2 (patch) | |
tree | ec388295051ebc1f3d79bd3baf79b7f12f076cda /.local/bin/mc-pass | |
parent | f2fde1570a04a654e2ed0c165d56feb29ddb25bf (diff) |
scripts: Move many a script from sh to andy
Diffstat (limited to '.local/bin/mc-pass')
-rwxr-xr-x | .local/bin/mc-pass | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/.local/bin/mc-pass b/.local/bin/mc-pass index 168e62e..83b701b 100755 --- a/.local/bin/mc-pass +++ b/.local/bin/mc-pass @@ -1,14 +1,18 @@ -#!/bin/sh +#!/usr/local/bin/andy -export NOTIFY_LONG='mc pass' -export NOTIFY_SHORT="${0##*/}" +set -e NOTIFY_LONG 'mc pass' +set -e NOTIFY_SHORT `basename $args[0] -trap ' - wl-copy </dev/null - notify "Password Cleared" "The password was cleared from the clipboard." -' INT EXIT TERM +for sig in int exit term { + func sig$sig { + wl-copy <_ + notify 'Password Cleared' 'The password was cleared from the clipboard.' + } +} vlt raw Email thomasvoss@live.com | wl-copy -notify 'Password Copied' \ +notify ( + 'Password Copied' 'The password will be cleared from the clipboard in 10 seconds.' +) sleep 10 |