From a9c5fd211aeb3831f7464ef54da2c1170f43991a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 21 Oct 2023 16:41:20 +0200 Subject: [PATCH] Remove obsolete stuff --- bin/sway | 13 ------------- bin/vid2twitter | 22 ---------------------- bin/xplorer | 11 ----------- 3 files changed, 46 deletions(-) delete mode 100755 bin/sway delete mode 100755 bin/vid2twitter delete mode 100755 bin/xplorer diff --git a/bin/sway b/bin/sway deleted file mode 100755 index 891262c..0000000 --- a/bin/sway +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail -IFS=$'\n\t' - -COMPOSE_KEY_FILE="$HOME/.compose_key" - -if [ -f "$COMPOSE_KEY_FILE" ]; then - COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE") - export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY" -fi - -/usr/bin/sway "$@" diff --git a/bin/vid2twitter b/bin/vid2twitter deleted file mode 100755 index 0a001bb..0000000 --- a/bin/vid2twitter +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -INPUT="$1" -OUTPUT="${INPUT%.*}.mp4" - -if [ $# -ne 1 ]; then - echo "Usage: vid2twitter [source_video_file]" >&2 - exit 1 -fi - -if [ -f "$OUTPUT" ]; then - echo -n "$OUTPUT: file exists, overwrite? (y|N) " - read -r overwrite - case "${overwrite,,}" in - "y" | "yes") ;; - *) - exit 0 - ;; - esac -fi - -ffmpeg -i "$INPUT" -vcodec libx264 -pix_fmt yuv420p -strict -2 -acodec aac "$OUTPUT" diff --git a/bin/xplorer b/bin/xplorer deleted file mode 100755 index 8ed2920..0000000 --- a/bin/xplorer +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail -IFS=$'\n\t' - -for name in 'pcmanfm' 'thunar'; do - if hash "$name" 2>/dev/null; then - "$name" - break - fi -done