diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-10-12 17:15:08 +0000 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-10-12 17:15:08 +0000 |
| commit | f26c55d5bea46e0b4c0bed3ef3a1258b1b9e82dc (patch) | |
| tree | 4a0f2284ae05771568efe2dbc323233c10f444bd /mut/bin | |
| parent | 7134976e1bd1ab8f6f0a85e9efe23b85f0d54250 (diff) | |
update
Diffstat (limited to 'mut/bin')
| -rwxr-xr-x | mut/bin/oath | 2 | ||||
| -rwxr-xr-x | mut/bin/pioctl | 8 | ||||
| -rwxr-xr-x | mut/bin/recordwin | 9 |
3 files changed, 11 insertions, 8 deletions
diff --git a/mut/bin/oath b/mut/bin/oath new file mode 100755 index 0000000..0173a2d --- /dev/null +++ b/mut/bin/oath @@ -0,0 +1,2 @@ +#!/bin/sh +nix-shell -p yubikey-manager --run 'ykman oath accounts code --single Pionative:mike@pionative.com' | xclip -f | xclip -sel c -f diff --git a/mut/bin/pioctl b/mut/bin/pioctl deleted file mode 100755 index 8bb9798..0000000 --- a/mut/bin/pioctl +++ /dev/null @@ -1,8 +0,0 @@ -#!/home/ivi/Programming/Pionative/quickstart/venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from pioctl import cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(cli()) diff --git a/mut/bin/recordwin b/mut/bin/recordwin new file mode 100755 index 0000000..bb48104 --- /dev/null +++ b/mut/bin/recordwin @@ -0,0 +1,9 @@ +#!/bin/sh +if pidof ffmpeg; then + notify-send ffmpeg "killing current recording" + pkill --signal=TERM ffmpeg +else + notify-send ffmpeg "Start recording" + ffmpeg -f x11grab $(xdotool getwindowfocus getwindowgeometry | tr '\n' ' ' | gawk '{print "-video_size " $8 " -i +"$4 }') -y ~/recording.webm + notify-send ffmpeg "saved recording to ~/recording.webm" +fi |
