summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/dbshare16
-rwxr-xr-x.local/bin/displaymenu73
-rwxr-xr-x.local/bin/displayselect72
-rwxr-xr-x.local/bin/dna46
-rwxr-xr-x.local/bin/emoji-copy15
-rwxr-xr-x.local/bin/fixaudio8
-rwxr-xr-x.local/bin/podentr5
-rwxr-xr-x.local/bin/printermenu3
-rwxr-xr-x.local/bin/queueandnotify15
-rwxr-xr-x.local/bin/rain100
-rwxr-xr-x.local/bin/recordmenu105
-rwxr-xr-x.local/bin/rssadd9
-rwxr-xr-x.local/bin/screenstatus4
-rwxr-xr-x.local/bin/sysact22
-rwxr-xr-x.local/bin/tdout9
-rwxr-xr-x.local/bin/tmux-vlc2
-rwxr-xr-x.local/bin/transadd9
-rwxr-xr-x.local/bin/vifmrun16
-rwxr-xr-x.local/bin/wifi10
19 files changed, 0 insertions, 539 deletions
diff --git a/.local/bin/dbshare b/.local/bin/dbshare
deleted file mode 100755
index fdb9be2..0000000
--- a/.local/bin/dbshare
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-output="$(dropbox-cli sharelink $1)"
-
-
-case "$output" in
- https*)
- echo "$output" | xsel -b
- notify-send -a " Dropbox" "Your file $1 can now be shared. It's url is:
-$output
-It has been copied to your clipboard." ;;
- *)
- notify-send -a " Dropbox" "ERROR:
-Your file could not be shared.
-$output" ;;
-esac
diff --git a/.local/bin/displaymenu b/.local/bin/displaymenu
deleted file mode 100755
index 38b2d9b..0000000
--- a/.local/bin/displaymenu
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-
-# A UI for detecting and selecting all displays.
-# Probes xrandr for connected displays and lets user select one to use.
-# User may also select "manual selection" which opens arandr.
-# I plan on adding a routine from multi-monitor setups later.
-
-twoscreen() { # If multi-monitor is selected and there are two screens.
-
- mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?")
- # Mirror displays using native resolution of external display and a scaled
- # version for the internal display
- if [ "$mirror" = "yes" ]; then
- external=$(echo "$screens" | dmenu -i -p "Optimize resolution for")
- internal=$(echo "$screens" | grep -v "$external")
-
- res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
- tail -n 1 | awk '{print $1}')
- res_internal=$(xrandr --query | sed -n "/^$internal/,/\+/p" | \
- tail -n 1 | awk '{print $1}')
-
- res_ext_x=$(echo $res_external | sed 's/x.*//')
- res_ext_y=$(echo $res_external | sed 's/.*x//')
- res_int_x=$(echo $res_internal | sed 's/x.*//')
- res_int_y=$(echo $res_internal | sed 's/.*x//')
-
- scale_x=$(echo "$res_ext_x / $res_int_x" | bc -l)
- scale_y=$(echo "$res_ext_y / $res_int_y" | bc -l)
-
- xrandr --output "$external" --auto --scale 1.0x1.0 \
- --output "$internal" --auto --same-as "$external" \
- --scale "$scale_x"x"$scale_y"
- else
-
- primary=$(echo "$screens" | dmenu -i -p "Select primary display")
- secondary=$(echo "$screens" | grep -v "$primary")
- direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
- xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
- fi
- }
-
-morescreen() { # If multi-monitor is selected and there are more than two screens.
- primary=$(echo "$screens" | dmenu -i -p "Select primary display")
- secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display")
- direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
- tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display")
- xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
- }
-
-multimon() { # Multi-monitor handler.
- case "$(echo "$screens" | wc -l)" in
- 1) xrandr $(echo "$allposs" | grep -v "$screens" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
- 2) twoscreen ;;
- *) morescreen ;;
- esac ;}
-
-# Get all possible displays
-allposs=$(xrandr -q | grep "connected")
-
-# Get all connected screens.
-screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
-
-# Get user choice including multi-monitor and manual selection:
-chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement") &&
-case "$chosen" in
- "manual selection") arandr ; exit ;;
- "multi-monitor") multimon ;;
- *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
-esac
-
-# setbg # Fix background if screen size/arangement has changed.
-remaps # Re-remap keys if keyboard added (for laptop bases)
-pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
diff --git a/.local/bin/displayselect b/.local/bin/displayselect
deleted file mode 100755
index c0e3479..0000000
--- a/.local/bin/displayselect
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# A UI for detecting and selecting all displays. Probes xrandr for connected
-# displays and lets user select one to use. User may also select "manual
-# selection" which opens arandr.
-
-twoscreen() { # If multi-monitor is selected and there are two screens.
-
- mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?")
- # Mirror displays using native resolution of external display and a scaled
- # version for the internal display
- if [ "$mirror" = "yes" ]; then
- external=$(echo "$screens" | dmenu -i -p "Optimize resolution for:")
- internal=$(echo "$screens" | grep -v "$external")
-
- res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
- tail -n 1 | awk '{print $1}')
- res_internal=$(xrandr --query | sed -n "/^$internal/,/\+/p" | \
- tail -n 1 | awk '{print $1}')
-
- res_ext_x=$(echo $res_external | sed 's/x.*//')
- res_ext_y=$(echo $res_external | sed 's/.*x//')
- res_int_x=$(echo $res_internal | sed 's/x.*//')
- res_int_y=$(echo $res_internal | sed 's/.*x//')
-
- scale_x=$(echo "$res_ext_x / $res_int_x" | bc -l)
- scale_y=$(echo "$res_ext_y / $res_int_y" | bc -l)
-
- xrandr --output "$external" --auto --scale 1.0x1.0 \
- --output "$internal" --auto --same-as "$external" \
- --scale "$scale_x"x"$scale_y"
- else
-
- primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
- secondary=$(echo "$screens" | grep -v "$primary")
- direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
- xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
- fi
- }
-
-morescreen() { # If multi-monitor is selected and there are more than two screens.
- primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
- secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
- direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
- tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
- xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
- }
-
-multimon() { # Multi-monitor handler.
- case "$(echo "$screens" | wc -l)" in
- 1) xrandr $(echo "$allposs" | grep -v "$screens" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
- 2) twoscreen ;;
- *) morescreen ;;
- esac ;}
-
-# Get all possible displays
-allposs=$(xrandr -q | grep "connected")
-
-# Get all connected screens.
-screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
-
-# Get user choice including multi-monitor and manual selection:
-chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&
-case "$chosen" in
- "manual selection") arandr ; exit ;;
- "multi-monitor") multimon ;;
- *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
-esac
-
-setbg # Fix background if screen size/arangement has changed.
-remaps # Re-remap keys if keyboard added (for laptop bases)
-pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
diff --git a/.local/bin/dna b/.local/bin/dna
deleted file mode 100755
index a049e0b..0000000
--- a/.local/bin/dna
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-#
-# ANSI color scheme script by pfh
-#
-# Initializing mod by lolilolicon from Archlinux
-#
-
-f=3 b=4
-for j in f b; do
- for i in {0..7}; do
- printf -v $j$i %b "\e[${!j}${i}m"
- done
-done
-bld=$'\e[1m'
-rst=$'\e[0m'
-inv=$'\e[7m'
-
-cat << EOF
-
- ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst}
- ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst}
- ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst}
- ${f1} █${rst} ${f2} █${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst}
- ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst}
- ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst}
- ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst}
- ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst}
- ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst}
- ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld}█${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst}
- ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst}
- ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst}
- ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst}
- ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst}
- ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst}
- ${f1} █${rst} ${f2}█${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst}
- ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst}
- ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst}
- ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst}
- ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst}
- ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst}
- ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld} █${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst}
- ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst}
- ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst}
- ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst}
-
-EOF \ No newline at end of file
diff --git a/.local/bin/emoji-copy b/.local/bin/emoji-copy
deleted file mode 100755
index 9ddc05d..0000000
--- a/.local/bin/emoji-copy
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# Runs a prompt to choose an emoji to copy
-# to the clipboard. Some font-awesome icons are
-# also supported.
-
-choice=$( cat ~/.local/share/emoji | dmenu -i -p "Font Awesome & Emojis: ")
-
-icon=$(echo $choice | sed "s/^\(.\).*$/\1/")
-
-printf "$icon" | xsel -b
-
-
-[ -z "$icon" ] && notify-send -a "Clipboard:" "Operation Cancelled"
-[ -z "$icon" ] || notify-send -a "Clipboard:" "$icon has been copied!"
diff --git a/.local/bin/fixaudio b/.local/bin/fixaudio
deleted file mode 100755
index 699218a..0000000
--- a/.local/bin/fixaudio
+++ /dev/null
@@ -1,8 +0,0 @@
-#!bin/sh
-
-base=$(basename "$1")
-ext="${base##*.}"
-base="${base%.*}"
-# ffmpeg -i "$1" -itsoffset 0.350 -i "$1" -c:v h264 -c:a aac -map 0:0 -map 1:1 "$base"_synced."ext" && \
-ffmpeg -i "$1" -itsoffset 0.250 -i "$1" -map 0:v -map 1:a -c copy "$base"_synced."$ext" && \
-notify-send -i "/home/master/.fonts/svg/headphones.svg" "Audio synced"
diff --git a/.local/bin/podentr b/.local/bin/podentr
deleted file mode 100755
index a0997ba..0000000
--- a/.local/bin/podentr
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-# entr command to run `queueandnotify` when newsboat queue is changed
-
-# [ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit
-echo /home/master/.local/share/newsboat/queue | entr -p $SCRIPTS/handling/pod-dl 2>/dev/null &
diff --git a/.local/bin/printermenu b/.local/bin/printermenu
deleted file mode 100755
index 4487eae..0000000
--- a/.local/bin/printermenu
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-lpstat -p -d | sed 's/^printer\ //; s/\ .*$//; s/no//; /^$/d' | dmenu -p "Select printer"
diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify
deleted file mode 100755
index 958b1be..0000000
--- a/.local/bin/queueandnotify
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# Podboat sucks. This script replaces it.
-# It reads the newsboat queue, queuing downloads with taskspooler.
-# It also removes the junk from extentions.
-queuefile="$HOME/.local/share/newsboat/queue"
-
-while read -r line; do
- [ -z "$line" ] && continue
- url="$(echo "$line" | awk '{print $1}')"
- qndl "$url" "curl -LO"
-done < "$queuefile"
-
-echo > "$queuefile"
-
-
diff --git a/.local/bin/rain b/.local/bin/rain
deleted file mode 100755
index 8a8d8f6..0000000
--- a/.local/bin/rain
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/bash
-RAINS=("|" "│" "┃" "┆" "┇" "┊" "┋" "╽" "╿")
-COLORS=("\e[37m" "\e[37;1m")
-# More from 256 color mode
-for i in {244..255}; do
- COLORS=("${COLORS[@]}" "\e[38;5;${i}m")
-done
-NRAINS=${#RAINS[@]}
-NCOLORS=${#COLORS[@]}
-NUM_RAIN_METADATA=5
-
-
-sigwinch() {
- TERM_WIDTH=$(tput cols)
- TERM_HEIGHT=$(tput lines)
- STEP_DURATION=0.025
- ((MAX_RAINS = TERM_WIDTH * TERM_HEIGHT / 4))
- ((MAX_RAIN_LENGTH = TERM_HEIGHT < 10 ? 1 : TERM_HEIGHT / 10))
- # In percentage
- ((NEW_RAIN_ODD = TERM_HEIGHT > 50 ? 100 : TERM_HEIGHT * 2))
- ((NEW_RAIN_ODD = NEW_RAIN_ODD * 75 / 100))
- ((FALLING_ODD = TERM_HEIGHT > 25 ? 100 : TERM_HEIGHT * 4))
- ((FALLING_ODD = FALLING_ODD * 90 / 100))
- }
-
-do_exit() {
- echo -ne "\e[${TERM_HEIGHT};1H\e[0K"
-
- # Show cursor and echo stdin
- echo -ne "\e[?25h"
- stty echo
- exit 0
- }
-
-do_render() {
- # Clean screen first
- for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do
- X=${rains[idx]}
- Y=${rains[idx + 1]}
- LENGTH=${rains[idx + 4]}
- for ((y = Y; y < Y + LENGTH; y++)); do
- (( y < 1 || y > TERM_HEIGHT )) && continue
- echo -ne "\e[${y};${X}H "
- done
- done
-
- for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do
- if ((100 * RANDOM / 32768 < FALLING_ODD)); then
- # Falling
- if ((++rains[idx + 1] > TERM_HEIGHT)); then
- # Out of screen, bye sweet <3
- rains=("${rains[@]:0:idx}"
- "${rains[@]:idx+NUM_RAIN_METADATA:num_rains*NUM_RAIN_METADATA}")
- ((num_rains--))
- continue
- fi
- fi
- X=${rains[idx]}
- Y=${rains[idx + 1]}
- RAIN=${rains[idx + 2]}
- COLOR=${rains[idx + 3]}
- LENGTH=${rains[idx + 4]}
- for ((y = Y; y < Y + LENGTH; y++)); do
- (( y < 1 || y > TERM_HEIGHT )) && continue
- echo -ne "\e[${y};${X}H${COLOR}${RAIN}"
- done
- done
- }
-
-trap do_exit TERM INT
-trap sigwinch WINCH
-# No echo stdin and hide the cursor
-stty -echo
-echo -ne "\e[?25l"
-
-echo -ne "\e[2J"
-rains=()
-sigwinch
-while :; do
- read -n 1 -t $STEP_DURATION ch
- case "$ch" in
- q|Q)
- do_exit
- ;;
- esac
-
- if ((num_rains < MAX_RAINS)) && ((100 * RANDOM / 32768 < NEW_RAIN_ODD)); then
- # Need new |, 1-based
- RAIN="${RAINS[NRAINS * RANDOM / 32768]}"
- COLOR="${COLORS[NCOLORS * RANDOM / 32768]}"
- LENGTH=$((MAX_RAIN_LENGTH * RANDOM / 32768 + 1))
- X=$((TERM_WIDTH * RANDOM / 32768 + 1))
- Y=$((1 - LENGTH))
- rains=("${rains[@]}" "$X" "$Y" "$RAIN" "$COLOR" "$LENGTH")
- ((num_rains++))
- fi
-
- # Let rain fall!
- do_render
-done \ No newline at end of file
diff --git a/.local/bin/recordmenu b/.local/bin/recordmenu
deleted file mode 100755
index 32b0a34..0000000
--- a/.local/bin/recordmenu
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-# Usage:
-# `record`: Ask for recording type via dmenu
-# `record screencast`: Record both audio and screen
-# `record video`: Record only screen
-# `record audio`: Record only audio
-# `record kill`: Kill existing recording
-#
-# If there is already a running instance, user will be prompted to end it.
-
-updateicon() { \
- echo "$1" > /tmp/recordingicon
- pkill -RTMIN+9 i3blocks
- }
-
-killrecording() {
- recpid="$(cat /tmp/recordingpid)"
- # kill with SIGTERM, allowing finishing touches.
- kill -15 "$recpid"
- rm -f /tmp/recordingpid
- updateicon ""
- pkill -RTMIN+9 i3blocks
- # even after SIGTERM, ffmpeg may still run, so SIGKILL it.
- sleep 3
- kill -9 "$recpid"
- exit
- }
-
-screencast() { \
- ffmpeg -y \
- -f x11grab \
- -framerate 60 \
- -s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
- -i :0.0 \
- -f alsa -i default \
- -r 30 \
- -c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
- "$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mkv" &
- echo $! > /tmp/recordingpid
- updateicon ""
- }
-
-video() { ffmpeg \
- -f x11grab \
- -s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
- -i :0.0 \
- -c:v libx264 -qp 0 -r 30 \
- "$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" &
- echo $! > /tmp/recordingpid
- updateicon ""
- }
-
-webcamhidef() { ffmpeg \
- -f v4l2 \
- -i /dev/video0 \
- -video_size 1920x1080 \
- "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
- echo $! > /tmp/recordingpid
- updateicon ""
- }
-
-webcam() { ffmpeg \
- -f v4l2 \
- -i /dev/video0 \
- -video_size 640x480 \
- "$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
- echo $! > /tmp/recordingpid
- updateicon ""
- }
-
-
-audio() { \
- ffmpeg \
- -f alsa -i default \
- -c:a flac \
- "$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" &
- echo $! > /tmp/recordingpid
- updateicon ""
- }
-
-askrecording() { \
- choice=$(printf "screencast\\nvideo\\naudio\\nwebcam\\nwebcam (hi-def)" | dmenu -i -p "Select recording style")
- case "$choice" in
- screencast) screencast;;
- audio) audio;;
- video) video;;
- webcam) webcam;;
- "webcam (hi-def)") webcamhidef;;
- esac
- }
-
-asktoend() { \
- response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
- [ "$response" = "Yes" ] && killrecording
- }
-
-
-case "$1" in
- screencast) screencast;;
- audio) audio;;
- video) video;;
- kill) killrecording;;
- *) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
-esac
diff --git a/.local/bin/rssadd b/.local/bin/rssadd
deleted file mode 100755
index 8822fc5..0000000
--- a/.local/bin/rssadd
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
- notify-send "That doesn't look like a full URL." && exit
-RSSFILE="$HOME/.config/newsboat/urls"
-if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
- notify-send "You already have this RSS feed."
-else
- echo "$1" >> "$RSSFILE" && notify-send "RSS feed added."
-fi
diff --git a/.local/bin/screenstatus b/.local/bin/screenstatus
deleted file mode 100755
index 763311b..0000000
--- a/.local/bin/screenstatus
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-notify-send.sh --replace-file /tmp/vol-notif -a "Screen Brightness" "$(xbacklight -get | sed 's/\..*$//g')%"
-
diff --git a/.local/bin/sysact b/.local/bin/sysact
deleted file mode 100755
index 5249070..0000000
--- a/.local/bin/sysact
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# A dmenu wrapper script for system functions.
-
-# For non-systemd init systems.
-case "$(readlink -f /sbin/init)" in
- *runit*) hib="sudo -A zzz" ;;
- *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
-esac
-
-cmds="\
- lock sudo loginctl lock-sessions
- leave dwm killall xinit
- renew dwm killall dwm
- hibernate sudo loginctl hibernate
- reboot ${reb:-sudo -A reboot}
- shutdown ${shut:-sudo -A shutdown -h now}
- display off xset dpms force off"
-
-choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1
-
-`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`
diff --git a/.local/bin/tdout b/.local/bin/tdout
deleted file mode 100755
index 2d23464..0000000
--- a/.local/bin/tdout
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# opout: "open output": A general handler for opening a file's intended output.
-# I find this useful especially running from vim.
-
-basename="$(echo "$1" | sed 's/\.[^\/.]*$//')"
-
-case "$1" in
- *.tex|*.rnw|*.gd|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename"-tdtable.pdf >/dev/null 2>&1 & ;;
-esac
diff --git a/.local/bin/tmux-vlc b/.local/bin/tmux-vlc
index dc26c49..a25c3e6 100755
--- a/.local/bin/tmux-vlc
+++ b/.local/bin/tmux-vlc
@@ -10,8 +10,6 @@ tmux has-session -t $session 2>/dev/null
if [ $? != 0 ]; then
# Set up your session
tmux new-session -d -s "$session" vlc -I ncurses "$url"
- # R -q --no-save
- # ([ -e /usr/bin/R ] && R -q --no-save) || python -q
fi
# Attach to created session
diff --git a/.local/bin/transadd b/.local/bin/transadd
deleted file mode 100755
index f7e95d6..0000000
--- a/.local/bin/transadd
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running.
-
-# transmission-daemon sometimes fails to take remote requests in its first moments.
-
-pgrep -x transmission-da || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks)
-
-transmission-remote -a "$@" && notify-send " Torrent added."
diff --git a/.local/bin/vifmrun b/.local/bin/vifmrun
deleted file mode 100755
index 69f2d22..0000000
--- a/.local/bin/vifmrun
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
-
-function cleanup() {
- rm "$FIFO_UEBERZUG" 2>/dev/null
- pkill -P $$ 2>/dev/null
-}
-
-rm "$FIFO_UEBERZUG" 2>/dev/null
-mkfifo "$FIFO_UEBERZUG"
-trap cleanup EXIT
-tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
-
-vifm "$@"
-cleanup
diff --git a/.local/bin/wifi b/.local/bin/wifi
deleted file mode 100755
index 102a6a4..0000000
--- a/.local/bin/wifi
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-case "$(cat /sys/class/net/wlp0s20f3/operstate)" in
- up) echo "  " ;;
- down) echo "  " ;;
-esac
-
-# 
-# 
-# 