diff --git a/.local/share/scripts/arch-wiki.sh b/.local/share/scripts/arch-wiki.sh deleted file mode 100755 index 40aceb7..0000000 --- a/.local/share/scripts/arch-wiki.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env sh - -# required packages: -# - fzf -# - arch-wiki-docs - -set -e - -DOC_DIR="/usr/share/doc/arch-wiki/html/en/" - -cd "$DOC_DIR" -selected=$(find . -type f | cut -c3- | rev | cut -c6- | rev | tr _ ' ' | fzf -q "$1") -selected_file=$(echo "$selected" | tr ' ' _ | awk -v var="$DOC_DIR" '{print var $0 ".html"}') -xdg-open "$selected_file" - - -#if [[ $# -eq 0 ]]; then -# # No arguments supplied -# xdg-open "$DOC_DIR" -#else -# grep -rwc '/usr/share/doc/arch-wiki/html/en/' -e 'xorg' | grep -v ":0" | awk -F":" '{print $2,$1}' | sort -#fi - - diff --git a/.local/share/scripts/last-steam-screenshot.sh b/.local/share/scripts/last-steam-screenshot.sh deleted file mode 100755 index 1497d4e..0000000 --- a/.local/share/scripts/last-steam-screenshot.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh - -WEIRD_NUMBER="115748555" #steamID3 - -find "$HOME/.local/share/Steam/userdata/$WEIRD_NUMBER/760" -type f -name "*.jpg" -not -path "*/thumbnails/*" -printf "%T@ %p\n" | sort --reverse | cut -d' ' -f2 diff --git a/.local/share/scripts/pacman-browse-aur.sh b/.local/share/scripts/pacman-browse-aur.sh deleted file mode 100755 index e2d2c98..0000000 --- a/.local/share/scripts/pacman-browse-aur.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# requires: expac -pacman -Qqm | sort | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)' - diff --git a/.local/share/scripts/pacman-browse.sh b/.local/share/scripts/pacman-browse.sh deleted file mode 100755 index 254b1fe..0000000 --- a/.local/share/scripts/pacman-browse.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -# requires: expac -pacman -Qqe | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)' diff --git a/.local/share/scripts/pacman-install.sh b/.local/share/scripts/pacman-install.sh deleted file mode 100755 index bf2b9c9..0000000 --- a/.local/share/scripts/pacman-install.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env sh -PKG=$(pacman -Slq | fzf --preview 'pacman -Si {1}') -if [ -n "$PKG" ]; then - sudo pacman -S "$PKG" -fi - diff --git a/.local/share/scripts/reddit-wp.sh b/.local/share/scripts/reddit-wp.sh deleted file mode 100755 index 0d1c798..0000000 --- a/.local/share/scripts/reddit-wp.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env sh -# required packages: -# - wget -# - jq - -set -e - -# There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger. -SUB="${1:-wallpaper}" - -wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" -O - "http://www.reddit.com/r/$SUB/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url" - diff --git a/.local/share/scripts/set-reddit-bg.sh b/.local/share/scripts/set-reddit-bg.sh deleted file mode 100755 index 76b20b6..0000000 --- a/.local/share/scripts/set-reddit-bg.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env sh -SCRIPT=$(readlink -f "$0") -SCRIPTPATH=$(dirname "$SCRIPT") - -URL=$($SCRIPTPATH/reddit-wp.sh $1) -NAME=$(basename "$URL") -FILENAME=~/pictures/wallpapers/"$NAME" -wget "$URL" -nc -O "$FILENAME" -sleep 1 -$SCRIPTPATH/set-bg.sh $FILENAME - diff --git a/.local/share/scripts/take-selected-screenshot.sh b/.local/share/scripts/take-selected-screenshot.sh deleted file mode 100755 index 827b9d3..0000000 --- a/.local/share/scripts/take-selected-screenshot.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env sh -set -e - -SCRIPT=$(readlink -f "$0") -SCRIPTPATH=$(dirname "$SCRIPT") - -SCREENSHOT_DIR="$HOME/pictures/screenshots" - -screenshotFile=$($SCRIPTPATH/take-screenshot.sh) - -mkdir -p "$SCREENSHOT_DIR" - -mv "$screenshotFile" "$SCREENSHOT_DIR" -rm -rf "$(dirname $screenshotFile)" - -printf "%s\n" "$SCREENSHOT_DIR/$(basename $screenshotFile)" - diff --git a/.local/share/scripts/toggle-mute.sh b/.local/share/scripts/toggle-mute.sh deleted file mode 100755 index 072abd8..0000000 --- a/.local/share/scripts/toggle-mute.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env sh - -# index=$(pacmd list-sources | grep -oP '\* index: \d+' | awk '{ print $3 }') - -# TODO default source not hardcoded -# pactl set-source-mute $index toggle - - -# Use the alsa approach - -# amixer -q -D pulse set Capture toggle - -pactl set-source-mute alsa_input.pci-0000_28_00.3.analog-stereo toggle - diff --git a/.local/share/scripts/upload-last-steam-screenshot.sh b/.local/share/scripts/upload-last-steam-screenshot.sh deleted file mode 100755 index ad42be3..0000000 --- a/.local/share/scripts/upload-last-steam-screenshot.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env sh - -SCRIPT=$(readlink -f "$0") -SCRIPTPATH=$(dirname "$SCRIPT") - -$SCRIPTPATH/last-steam-screenshot.sh \ - | head -n1 \ - | $SCRIPTPATH/share-s3.sh \ - | xclip -i -selection "clipboard" - -notify-send -u low "Upload complete" -