diff options
Diffstat (limited to '.local/bin/scripts')
-rwxr-xr-x | .local/bin/scripts/amixer | 4 | ||||
-rwxr-xr-x | .local/bin/scripts/app-launcher | 3 | ||||
-rwxr-xr-x | .local/bin/scripts/app-launcher-priv | 3 | ||||
-rwxr-xr-x | .local/bin/scripts/app-launcher-terminal | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/clipboard | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/events-idle | 7 | ||||
-rwxr-xr-x | .local/bin/scripts/events-resume | 9 | ||||
-rwxr-xr-x | .local/bin/scripts/events-usb | 3 | ||||
-rwxr-xr-x | .local/bin/scripts/file-search | 28 | ||||
-rwxr-xr-x | .local/bin/scripts/internet-search | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/lockscreen | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/nix-xorg-conf | 4 | ||||
-rwxr-xr-x | .local/bin/scripts/snipping-tool | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/sshfs-mount | 19 | ||||
-rwxr-xr-x | .local/bin/scripts/switch-monitor | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/vnc-exit | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/vnc-suspend | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/volume-down | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/volume-mute | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/volume-up | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/window-overview | 7 | ||||
-rwxr-xr-x | .local/bin/scripts/window-switcher | 7 | ||||
-rwxr-xr-x | .local/bin/scripts/workout-notify | 5 |
23 files changed, 0 insertions, 121 deletions
diff --git a/.local/bin/scripts/amixer b/.local/bin/scripts/amixer deleted file mode 100755 index 9b9b679..0000000 --- a/.local/bin/scripts/amixer +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -eu -[ "$1" = "up" ] && amixer set Master 1%+ -[ "$1" = "down" ] && amixer set Master 1%- -[ "$1" = "mute" ] && amixer sset Master toggle diff --git a/.local/bin/scripts/app-launcher b/.local/bin/scripts/app-launcher deleted file mode 100755 index 60e507a..0000000 --- a/.local/bin/scripts/app-launcher +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -eu -# rofi -cache-dir "$HOME/.local/share" -fullscreen -show run -display-run '$' -font 'ubuntu 12' -padding 250; -dmenu_run_history; diff --git a/.local/bin/scripts/app-launcher-priv b/.local/bin/scripts/app-launcher-priv deleted file mode 100755 index 8552f21..0000000 --- a/.local/bin/scripts/app-launcher-priv +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -eu -# rofi -cache-dir "$HOME/.local/share" -fullscreen -show run -display-run '#' -run-command 'sudo -A {cmd}' -font 'ubuntu 12' -padding 250; -dmenu_run_history privilege; diff --git a/.local/bin/scripts/app-launcher-terminal b/.local/bin/scripts/app-launcher-terminal deleted file mode 100755 index c96f919..0000000 --- a/.local/bin/scripts/app-launcher-terminal +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -dmenu_run_history terminal; diff --git a/.local/bin/scripts/clipboard b/.local/bin/scripts/clipboard deleted file mode 100755 index e776c70..0000000 --- a/.local/bin/scripts/clipboard +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -copyq toggle; diff --git a/.local/bin/scripts/events-idle b/.local/bin/scripts/events-idle deleted file mode 100755 index 1ec1e10..0000000 --- a/.local/bin/scripts/events-idle +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -eux - -# update file search cache -"$HOME"/.local/bin/scripts/file-search update; - -# update dmenu_run_history -"$HOME"/.local/bin/dmenu_run_history update; diff --git a/.local/bin/scripts/events-resume b/.local/bin/scripts/events-resume deleted file mode 100755 index 50ffd2c..0000000 --- a/.local/bin/scripts/events-resume +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -eux - -# reset x11vnc -x11vnc -R stop; - -# reset input devices -for device in $(xinput --list --id-only) - do xinput --disable "$device" && xinput --enable "$device"; -done; diff --git a/.local/bin/scripts/events-usb b/.local/bin/scripts/events-usb deleted file mode 100755 index 2978a84..0000000 --- a/.local/bin/scripts/events-usb +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -eux -xmodmap "$HOME/.config/X11/Xmodmap"; -xset r rate 200 60; diff --git a/.local/bin/scripts/file-search b/.local/bin/scripts/file-search deleted file mode 100755 index 130b90c..0000000 --- a/.local/bin/scripts/file-search +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -eu - -cache=/tmp/file_search_results.cache -append() { find "$1" -maxdepth 1 -printf "%p\n" 2> /dev/null || true; } -appendRecursive() { find "$1" -printf "%p\n" 2>/dev/null || true; } -removeDuplicates() { awk '!visited[$0]++' "$1" | sponge "$1"; } - -{ [ ! -f "$cache" ] || [ "${1:-}" = "update" ]; } && \ - { - append "$HOME"; - append "$HOME"/.local; - append "$HOME"/Desktop; - append "$HOME"/Shares/Projects; - appendRecursive "$HOME"/.vim; - appendRecursive "$HOME"/.local/bin; - appendRecursive "$HOME"/.config; - appendRecursive "$HOME"/Music; - appendRecursive "$HOME"/Books; - appendRecursive "$HOME"/Videos; - appendRecursive "$HOME"/Documents; - appendRecursive "$HOME"/Downloads; - appendRecursive "$HOME"/Pictures; - } \ - | grep -vE '(undodir)' > "$cache" - -[ "${1:-}" = "update" ] && removeDuplicates "$cache" && exit; - -xdg-open "$(rofi -font "ubuntu 12" -matching regex -padding 20 -dmenu -i -p 'Files' < "$cache")" diff --git a/.local/bin/scripts/internet-search b/.local/bin/scripts/internet-search deleted file mode 100755 index 096c4ee..0000000 --- a/.local/bin/scripts/internet-search +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -rofi -dmenu -show run -font "ubuntu 16" -padding 10 -lines 0 -p " " | xargs -r surfraw duckduckgo diff --git a/.local/bin/scripts/lockscreen b/.local/bin/scripts/lockscreen deleted file mode 100755 index bd456c2..0000000 --- a/.local/bin/scripts/lockscreen +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -i3lock-fancy -t '' -- scrot; diff --git a/.local/bin/scripts/nix-xorg-conf b/.local/bin/scripts/nix-xorg-conf deleted file mode 100755 index 7fabd3a..0000000 --- a/.local/bin/scripts/nix-xorg-conf +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -eu -echo 'Section "Files"' -echo " ModulePath \"$(readlink "$(type -P X)" | cut -d'/' -f-4)/lib/xorg/modules\"" -echo 'EndSection'; diff --git a/.local/bin/scripts/snipping-tool b/.local/bin/scripts/snipping-tool deleted file mode 100755 index 4347bfe..0000000 --- a/.local/bin/scripts/snipping-tool +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -notify-send "$(escrotum -s "$HOME/Pictures/screenshots/$wx$h_%d-%m-%Y_%H_%M_%S.png")" diff --git a/.local/bin/scripts/sshfs-mount b/.local/bin/scripts/sshfs-mount deleted file mode 100755 index 0e2352c..0000000 --- a/.local/bin/scripts/sshfs-mount +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -eu - -input="$1" -server="${input#*@}" -folder="${input%@*}" -mount_path="$HOME/Shares/SSHFS/$folder" - -[ "${2:-}" = 'stop' ] && { fusermount -u "$mount_path" || true; }; -[ "${2:-}" = 'stop' ] && exit; - -# evaulate the keychain -pidof ssh-agent || { printf "No ssh-agent available.\n"; exit 1; }; -eval "$(keychain --dir "$HOME"/.cache/keychain --eval --agents ssh -Q --quiet "$HOME"/.ssh/mobile)"; - -# mount the directory -mkdir -p "$mount_path"; -fusermount -u "$mount_path" || true; -# TODO: Add setting remote server path with argument -sshfs -f -o follow_symlinks,idmap=user,identityfile="$HOME"/.ssh/mobile,identityfile="$HOME"/.ssh/ansible root@"$server":/ "$mount_path"; diff --git a/.local/bin/scripts/switch-monitor b/.local/bin/scripts/switch-monitor deleted file mode 100755 index 80d7191..0000000 --- a/.local/bin/scripts/switch-monitor +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr-monitor VGA1 left-of LVDS1; diff --git a/.local/bin/scripts/vnc-exit b/.local/bin/scripts/vnc-exit deleted file mode 100755 index afc4833..0000000 --- a/.local/bin/scripts/vnc-exit +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -x11vnc -R stop; diff --git a/.local/bin/scripts/vnc-suspend b/.local/bin/scripts/vnc-suspend deleted file mode 100755 index 589a7f2..0000000 --- a/.local/bin/scripts/vnc-suspend +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -x11vnc -R stop && systemctl suspend -i; diff --git a/.local/bin/scripts/volume-down b/.local/bin/scripts/volume-down deleted file mode 100755 index 774ee0b..0000000 --- a/.local/bin/scripts/volume-down +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -"$HOME"/.local/bin/scripts/amixer down diff --git a/.local/bin/scripts/volume-mute b/.local/bin/scripts/volume-mute deleted file mode 100755 index e3aded4..0000000 --- a/.local/bin/scripts/volume-mute +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -"$HOME"/.local/bin/scripts/amixer mute diff --git a/.local/bin/scripts/volume-up b/.local/bin/scripts/volume-up deleted file mode 100755 index fbbbb0b..0000000 --- a/.local/bin/scripts/volume-up +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -eu -"$HOME"/.local/bin/scripts/amixer up diff --git a/.local/bin/scripts/window-overview b/.local/bin/scripts/window-overview deleted file mode 100755 index 62b50d9..0000000 --- a/.local/bin/scripts/window-overview +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# prevent multiple instances -pidof -s -o '%PPID' -x "$(basename "$0")" > /dev/null 2>&1 && exit; - -# run skippy-xd -skippy-xd > /dev/null 2>&1; diff --git a/.local/bin/scripts/window-switcher b/.local/bin/scripts/window-switcher deleted file mode 100755 index 39483a2..0000000 --- a/.local/bin/scripts/window-switcher +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -eu - -# Copyright 2013 Tom Vincent <http://tlvince.com/contact/> -wmctrl -l | cut -d' ' -f 1,5- | dmenu -f -i -b -p Switch | cut -d' ' -f 1 | xargs wmctrl -ia - -# Rofi -#rofi -no-disable-history -show window -theme-str '#prompt { enabled: false; }' -window-format {t} -font "ubuntu 12" -padding 15 -lines 1 diff --git a/.local/bin/scripts/workout-notify b/.local/bin/scripts/workout-notify deleted file mode 100755 index 6934a45..0000000 --- a/.local/bin/scripts/workout-notify +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -eu -workout=$(fortune ~/Documents/text/databases/exercises.fortune); -notify-send -u critical \ -"You have $(shuf -i 10-25 -n1) minutes to complete \ -$(shuf -i "${workout%% *}" -n1) ${workout#* }."; |