diff options
| -rwxr-xr-x | env/.config/.profile | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/autoport_mc.sh | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/dmount | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/fzf-thumb | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/gen-thumb-md | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/math | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/output-audio-switcher | 3 | ||||
| -rwxr-xr-x | env/.local/bin/system/kaomoji-picker.sh | 2 | ||||
| -rwxr-xr-x | env/.local/bin/system/neoboot.sh | 2 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/autostart.sh | 16 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/lessons-loop.sh | 2 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/newsboat-fetch.sh | 2 | ||||
| -rwxr-xr-x | env/.local/bin/system/url-handler.sh | 2 | ||||
| -rwxr-xr-x | run.sh | 5 | ||||
| -rwxr-xr-x | runs-all/env.sh | 2 | ||||
| -rwxr-xr-x | runs-all/get-reqs-arch.sh | 2 | ||||
| -rwxr-xr-x | runs-all/mimes.sh | 2 | ||||
| -rwxr-xr-x | runs/env.sh | 4 | ||||
| -rwxr-xr-x | runs/get-reqs-arch.sh | 2 | ||||
| -rwxr-xr-x | runs/packer.sh | 2 |
20 files changed, 23 insertions, 37 deletions
diff --git a/env/.config/.profile b/env/.config/.profile index 985c21b..d9ee8c2 100755 --- a/env/.config/.profile +++ b/env/.config/.profile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -n "$BASH_SOURCE" ]; then # Bash or zsh (if BASH_SOURCE is defined) script="$BASH_SOURCE[0]" diff --git a/env/.local/bin/scripts/autoport_mc.sh b/env/.local/bin/scripts/autoport_mc.sh index 8ccf0b0..5cad216 100755 --- a/env/.local/bin/scripts/autoport_mc.sh +++ b/env/.local/bin/scripts/autoport_mc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # this finds the log file from a picked instance using rofi. then fords traffic thorugh 25565 if [ -z "$LOG_FILE" ]; then diff --git a/env/.local/bin/scripts/dmount b/env/.local/bin/scripts/dmount index 6a3415c..d33fa27 100755 --- a/env/.local/bin/scripts/dmount +++ b/env/.local/bin/scripts/dmount @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh sudo="sudo" [ doas ] && sudo="doas" diff --git a/env/.local/bin/scripts/fzf-thumb b/env/.local/bin/scripts/fzf-thumb index 57f4025..7882726 100755 --- a/env/.local/bin/scripts/fzf-thumb +++ b/env/.local/bin/scripts/fzf-thumb @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh FZF_PREVIEW_LINES=50 FZF_PREVIEW_COLUMN=50 diff --git a/env/.local/bin/scripts/gen-thumb-md b/env/.local/bin/scripts/gen-thumb-md index 90b9189..d28378a 100755 --- a/env/.local/bin/scripts/gen-thumb-md +++ b/env/.local/bin/scripts/gen-thumb-md @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" disable_thumb_gen=0 diff --git a/env/.local/bin/scripts/math b/env/.local/bin/scripts/math index 26d4854..9c9b305 100755 --- a/env/.local/bin/scripts/math +++ b/env/.local/bin/scripts/math @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh expression=$1 precision=$2 diff --git a/env/.local/bin/scripts/output-audio-switcher b/env/.local/bin/scripts/output-audio-switcher index 1a7592c..8f836d5 100755 --- a/env/.local/bin/scripts/output-audio-switcher +++ b/env/.local/bin/scripts/output-audio-switcher @@ -1,3 +1,2 @@ -#!/bin/bash - +#!/bin/sh pactl set-default-sink "$(pactl list short sinks | awk '{print $2}' | rofi -dmenu -p "Output:")" && notify-send "Audio switched!" || exit 0 diff --git a/env/.local/bin/system/kaomoji-picker.sh b/env/.local/bin/system/kaomoji-picker.sh index 6def151..a59e3c7 100755 --- a/env/.local/bin/system/kaomoji-picker.sh +++ b/env/.local/bin/system/kaomoji-picker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # set up to work with https://github.com/Aptivi-Analytics/KaomojiList.git diff --git a/env/.local/bin/system/neoboot.sh b/env/.local/bin/system/neoboot.sh index afe9345..4c12be8 100755 --- a/env/.local/bin/system/neoboot.sh +++ b/env/.local/bin/system/neoboot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh normal_old() { randnum=$(($RANDOM % 2)) diff --git a/env/.local/bin/system/start-scripts/autostart.sh b/env/.local/bin/system/start-scripts/autostart.sh index 77abff4..492bd76 100755 --- a/env/.local/bin/system/start-scripts/autostart.sh +++ b/env/.local/bin/system/start-scripts/autostart.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh cd "$(dirname "$0")" sleep 0.1 @@ -22,12 +22,6 @@ fi # # ~/stuff/scripts/system/stbar/stbar.sh & # fi -# added openrc services... may go back to this later -# pipewire & disown -# if [ -z "$(pgrep wireplumber)" ]; then -# wireplumber & disown -# fi -# pipewire-pulse & disown sleep 0.5s if [ "$WAYLAND_DISPLAY" ] && [ -z "$(pgrep -f waybar)" ]; then @@ -48,14 +42,6 @@ if [ -z "$(pgrep wezterm)" ]; then wezterm -e ~/.local/bin/system/task.sh & fi -# openrc or something is being weird. tmp fix until this gets patched or whatever -mkdir touch /run/user/1000/openrc -touch /run/user/1000/openrc/softlevel -rc-service --user pipewire start -rc-service --user wireplumber start -rc-service --user pipewire-pulse start - - if [ "$(cat /etc/hostname)" == "Kasino" ]; then if [ -z "$(pgrep vesktop)" ]; then vesktop %U & disown diff --git a/env/.local/bin/system/start-scripts/lessons-loop.sh b/env/.local/bin/system/start-scripts/lessons-loop.sh index bbff617..4304219 100755 --- a/env/.local/bin/system/start-scripts/lessons-loop.sh +++ b/env/.local/bin/system/start-scripts/lessons-loop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh newsboat_loop(){ notify-send -t 6000 -i '/home/iceyrazor/stuff/media/saved gifs/duolingo-crop-s.jpg' "Anki" "did you do your japanese lessons today?" sleep 1h diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh index 175ad13..06b08d9 100755 --- a/env/.local/bin/system/start-scripts/newsboat-fetch.sh +++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh newsboat_loop(){ NO_PROXY=\".com,.org,.xyz,.chat,.social,.net,.co,.love\" newsboat -x reload #newsboat -x print-unread | xargs -0 notify-send "newsboat feed" diff --git a/env/.local/bin/system/url-handler.sh b/env/.local/bin/system/url-handler.sh index 54f4af4..d7be722 100755 --- a/env/.local/bin/system/url-handler.sh +++ b/env/.local/bin/system/url-handler.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh url=$@ prompt_message="Open with:" @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo DEV_ENV "$DEV_ENV" [ ! -d "$DEV_ENV" ] && echo DEV_ENV DIRECTORY IS NOT FOUND && exit 1 @@ -31,7 +31,8 @@ if [ $list_runs == 1 ]; then fi if [ "$1" != "" ]; then - . "$script_dir/runs/$1.sh" + [ -e "$script_dir/runs/$1.sh" ] && . "$script_dir/runs/$1.sh" + if [ $run_runs_all == 1 ]; then . "$script_dir/runs-all/$1.sh" fi diff --git a/runs-all/env.sh b/runs-all/env.sh index a03d3d0..970fe3f 100755 --- a/runs-all/env.sh +++ b/runs-all/env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo DEPLOYING ENV ALL cp -r $script_dir/env/. "$DEV_ENV" [ -d "$script_dir/env_private/env/" ] && cp -r $script_dir/env_private/env/. "$DEV_ENV" diff --git a/runs-all/get-reqs-arch.sh b/runs-all/get-reqs-arch.sh index 4f404d4..1292cdc 100755 --- a/runs-all/get-reqs-arch.sh +++ b/runs-all/get-reqs-arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh . /etc/os-release if [ "$ID" == "artix" ] || [ "$ID" == "arch" ]; then sudo="sudo" diff --git a/runs-all/mimes.sh b/runs-all/mimes.sh index d6b379c..4e28e17 100755 --- a/runs-all/mimes.sh +++ b/runs-all/mimes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo SETTING MIMES unset BROWSER diff --git a/runs/env.sh b/runs/env.sh index bd4adf2..aba0c05 100755 --- a/runs/env.sh +++ b/runs/env.sh @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/sh + echo DEPLOYING ENV cp $script_dir/env/.bashrc "$DEV_ENV" cp $script_dir/env/.bash_profile "$DEV_ENV" cp $script_dir/env/.vimrc "$DEV_ENV" -cp $script_dir/env/.markdownlint.yaml "$DEV_ENV" mkdir "$DEV_ENV/.config" cp $script_dir/env/.config/.profile "$DEV_ENV/.config" cp -r $script_dir/env/.config/nvim "$DEV_ENV/.config" diff --git a/runs/get-reqs-arch.sh b/runs/get-reqs-arch.sh index 7975a8c..932afdf 100755 --- a/runs/get-reqs-arch.sh +++ b/runs/get-reqs-arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh . /etc/os-release if [ "$ID" == "artix" ] || [ "$ID" == "arch" ]; then sudo="sudo" diff --git a/runs/packer.sh b/runs/packer.sh index 66d5751..6785682 100755 --- a/runs/packer.sh +++ b/runs/packer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo DOWNLOADING PACKER FOR NVIM |
