removed unused scripts
This commit is contained in:
parent
20569ee0a7
commit
45e1045a90
@ -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
|
|
||||||
|
|
||||||
|
|
@ -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
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# requires: expac
|
|
||||||
pacman -Qqm | sort | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# requires: expac
|
|
||||||
pacman -Qqe | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
|
|
@ -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
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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)"
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user