From d26f58c2212e80cea5ff9f89ed60eff7c33002b5 Mon Sep 17 00:00:00 2001 From: pim-wtf Date: Tue, 31 May 2022 08:59:51 +0200 Subject: [PATCH] add scripts --- cover_to_flac | 3 +++ m4a_to_flac | 5 +++++ picom_toggle | 6 ++++++ setkb | 1 + 4 files changed, 15 insertions(+) create mode 100755 cover_to_flac create mode 100755 m4a_to_flac create mode 100755 picom_toggle create mode 100755 setkb diff --git a/cover_to_flac b/cover_to_flac new file mode 100755 index 0000000..07eed11 --- /dev/null +++ b/cover_to_flac @@ -0,0 +1,3 @@ +#!/bin/bash + +metaflac --import-picture-from front.jpg *.flac diff --git a/m4a_to_flac b/m4a_to_flac new file mode 100755 index 0000000..73583e6 --- /dev/null +++ b/m4a_to_flac @@ -0,0 +1,5 @@ +#!/bin/bash + +for file in *.m4a ; do + ffmpeg -i "$file" -f flac "$( basename "$file" .m4a ).flac" +done diff --git a/picom_toggle b/picom_toggle new file mode 100755 index 0000000..e59c3c8 --- /dev/null +++ b/picom_toggle @@ -0,0 +1,6 @@ +if pgrep -x "picom" > /dev/null +then + pkill picom +else + picom -b +fi diff --git a/setkb b/setkb new file mode 100755 index 0000000..6ae4d45 --- /dev/null +++ b/setkb @@ -0,0 +1 @@ +setxkbmap -layout us -variant altgr-intl -option nodeadkeys