summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-11-17 16:44:07 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-11-17 16:44:07 -0500
commitc7e3d61753201d48835cdc819dcd6557bc2cffe7 (patch)
tree5700fb5d11bd49f7d8919baa8d53af1b13d2a07b /.local/bin
parent9df28899ded4ed4cd75c4fa05b8302f71ff8198d (diff)
downloadeibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.tar.gz
eibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.tar.zst
eibhear-c7e3d61753201d48835cdc819dcd6557bc2cffe7.zip
old script cleanout
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/camtoggle2
-rwxr-xr-x.local/bin/i3cmds/ddspawn19
-rwxr-xr-x.local/bin/i3cmds/dropdowncalc3
-rwxr-xr-x.local/bin/i3cmds/hover15
-rwxr-xr-x.local/bin/i3cmds/i3resize28
-rwxr-xr-x.local/bin/i3cmds/tmuxdd5
-rwxr-xr-x.local/bin/i3cmds/toggle-welcome10
-rwxr-xr-x.local/bin/launch_polybar9
-rwxr-xr-x[-rw-r--r--].local/bin/peertubetorrent0
-rwxr-xr-x.local/bin/refbar5
-rwxr-xr-x.local/bin/vifmimg14
-rwxr-xr-x.local/bin/vu18
12 files changed, 0 insertions, 128 deletions
diff --git a/.local/bin/camtoggle b/.local/bin/camtoggle
deleted file mode 100755
index d29a8b4..0000000
--- a/.local/bin/camtoggle
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" --profile=low-latency --untimed /dev/video0
diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn
deleted file mode 100755
index d4a4034..0000000
--- a/.local/bin/i3cmds/ddspawn
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-# Toggle floating dropdown terminal in i3, or start if non-existing.
-# $1 is the script run in the terminal.
-# All other args are terminal settings.
-# Terminal names are in dropdown_* to allow easily setting i3 settings.
-
-[ -z "$1" ] && exit
-
-script=$1
-shift
-if xwininfo -tree -root | grep "(\"dropdown_$script\" ";
-then
- echo "Window detected."
- i3 "[instance=\"dropdown_$script\"] scratchpad show; [instance=\"dropdown_$script\"] move position center"
-else
- echo "Window not detected... spawning."
- i3 "exec --no-startup-id $TERMINAL -n dropdown_$script $@ -e $script"
-fi
diff --git a/.local/bin/i3cmds/dropdowncalc b/.local/bin/i3cmds/dropdowncalc
deleted file mode 100755
index f0615fd..0000000
--- a/.local/bin/i3cmds/dropdowncalc
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-ifinstalled bc && echo "Welcome to the Calculator." && bc -lq
diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover
deleted file mode 100755
index a8a3e19..0000000
--- a/.local/bin/i3cmds/hover
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right
-current=$(xdotool getwindowfocus)
-newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
-newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3))
-xdotool windowsize "$current" $newheight $newwidth
-newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}')
-newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*")
-
-case "$1" in
- left) horizontal=0; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
- right) horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth)) ; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
-esac
-xdotool windowmove "$current" $horizontal $vertical
diff --git a/.local/bin/i3cmds/i3resize b/.local/bin/i3cmds/i3resize
deleted file mode 100755
index 0bfb5ea..0000000
--- a/.local/bin/i3cmds/i3resize
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-# This script was made by `goferito` on Github.
-# Some cleanup by Luke.
-
-[ -z "$1" ] && echo "No direction provided" && exit 1
-distanceStr="2 px or 2 ppt"
-
-moveChoice() {
- i3-msg resize "$1" "$2" "$distanceStr" | grep '"success":true' || \
- i3-msg resize "$3" "$4" "$distanceStr"
-}
-
-case $1 in
- up)
- moveChoice grow up shrink down
- ;;
- down)
- moveChoice shrink up grow down
- ;;
- left)
- moveChoice shrink right grow left
- ;;
- right)
- moveChoice grow right shrink left
- ;;
-esac
-
diff --git a/.local/bin/i3cmds/tmuxdd b/.local/bin/i3cmds/tmuxdd
deleted file mode 100755
index 3997240..0000000
--- a/.local/bin/i3cmds/tmuxdd
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-# This is the script that i3 runs to either start tmux in
-# the dropdown terminal or log into a previous session.
-tmux a || tmux
diff --git a/.local/bin/i3cmds/toggle-welcome b/.local/bin/i3cmds/toggle-welcome
deleted file mode 100755
index d15ca14..0000000
--- a/.local/bin/i3cmds/toggle-welcome
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# Toggles the LARBS welcome message.
-
-PIC="${XDG_DATA_HOME:-$HOME/.local/share}/larbs/larbs.png"
-
-grep LARBSWELCOME "$XDG_CONFIG_HOME/xprofile" &&
- ( sed -i "/LARBSWELCOME/d" "$XDG_CONFIG_HOME/xprofile" && notify-send -i "$PIC" "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) ||
- ( echo "notify-send -i \"$PIC\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> "$XDG_CONFIG_HOME/xprofile" &&
- notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )
diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar
deleted file mode 100755
index 8786be6..0000000
--- a/.local/bin/launch_polybar
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# Terminate already running bar instances
-killall -q polybar
-
-# Wait until the processes have been shut down
-while pidof polybar >/dev/null; do sleep 1; done
-
-for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done
diff --git a/.local/bin/peertubetorrent b/.local/bin/peertubetorrent
index 56f2476..56f2476 100644..100755
--- a/.local/bin/peertubetorrent
+++ b/.local/bin/peertubetorrent
diff --git a/.local/bin/refbar b/.local/bin/refbar
deleted file mode 100755
index 78b5018..0000000
--- a/.local/bin/refbar
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-# Refresh the dwmbar.
-# Send SIGTRAP signal to dwmbar script, which will handle it with a trap.
-pkill -SIGTRAP dwmbar
diff --git a/.local/bin/vifmimg b/.local/bin/vifmimg
deleted file mode 100755
index 8fb8eed..0000000
--- a/.local/bin/vifmimg
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-
-[ -z "$FIFO_UEBERZUG" ] && exit
-
-readonly ID_PREVIEW="preview"
-
-if [ "$1" = "draw" ]; then
- declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" [x]="$2" [y]="$3" [max_width]="$4" [max_height]="$5" [path]="${PWD}/$6") > "$FIFO_UEBERZUG"
-elif [ "$1" = "videopreview" ]; then
- [ ! -f "/tmp/$6.png" ] && ffmpegthumbnailer -i "${PWD}/$6" -o "/tmp/$6.png" -s 0 -q 10 &&
- declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" [x]="$2" [y]="$3" [max_width]="$4" [max_height]="$5" [path]="/tmp/$6.png") > "$FIFO_UEBERZUG"
-else
- declare -p -A cmd=([action]=remove [identifier]="$ID_PREVIEW") > "$FIFO_UEBERZUG"
-fi
diff --git a/.local/bin/vu b/.local/bin/vu
deleted file mode 100755
index 2340cdc..0000000
--- a/.local/bin/vu
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# This is a wrapper for vifm to allow ueberzug images.
-
-export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
-
-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