main
Zynh Ludwig 2024-05-30 23:04:56 -07:00
commit 9123f11718
13 changed files with 78 additions and 0 deletions

2
fehbg Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
feh --no-fehbg --bg-scale '/home/zynh/.config/nvim/backgrounds/bg-none-nord.webp'

3
ff14 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
OPENSSL_CONF=/home/zynh/.config/xiv/openssl_fix.cnf exec /usr/bin/XIVLauncher.Core

3
grub-items Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sed -n "s/^menuentry [\"']\([^\"']*\)[\"'].*$/\1/gmp" /boot/grub/grub.cfg

3
iinact Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"

4
ppath Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# echo $PATH | sed 's/:/ /g' | xargs ls --color=auto
echo "$PATH" | xargs -d ":" ls --color=auto

2
pulsemixer_alacritty Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
alacritty -e "pulsemixer"

9
reboot-dmenu Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# cat /boot/grub/grub.cfg | sed -n "s/^menuentry [\"']\([^\"']*\)[\"'].*$/\1/gmp" | dmenu -i | tr -d '\n' | sudo xargs -t -r0 -n1 grub-reboot
# sudo /usr/bin/reboot
entry="$(sed -n "s/^menuentry [\"']\([^\"']*\)[\"'].*$/\1/gmp" /boot/grub/grub.cfg | dmenu -i | tr -d '\n')"
if [ -n "$entry" ]; then
sudo grub-reboot "$entry"
sudo /usr/bin/reboot
fi

3
start-docker-desktop Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
systemctl --user enable docker-desktop

25
tmux-sessionizer Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find "$(readlink -f ~/projects)" ~/ ~/.config ~/.suckless/ -mindepth 1 -maxdepth 1 -type d | fzf)
fi
if [[ -z $selected ]]; then
exit 0
fi
selected_name=$(basename "$selected" | tr . _)
tmux_running=$(pgrep tmux)
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
tmux new-session -s "$selected_name" -c "$selected"
exit 0
fi
if ! tmux has-session -t="$selected_name" 2>/dev/null; then
tmux new-session -ds "$selected_name" -c "$selected"
fi
tmux switch-client -t "$selected_name"

13
tmux-windowizer Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
branch_name=$(basename "$1")
session_name=$(tmux display-message -p "#S")
clean_name=$(echo "$branch_name" | tr "./" "__")
target="$session_name:$clean_name"
if ! tmux has-session -t "$target" 2>/dev/null; then
tmux neww -dn "$clean_name"
fi
shift
tmux send-keys -t "$target" "$*"

3
toggle-mute-dmenu Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
entry="$(pactl list clients | sed -n 's/^[[:space:]]\+application.name = "\(.*\)"$/\1/gp' | dmenu -i | tr -d '\n')"

4
tv-on Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
xrandr --output DP-0 --primary --mode 1920x1080 --pos 1920x1080 --rotate normal --output DP-1 --off --output HDMI-0 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-4 --off --output DP-5 --off
sleep 5
/home/zynh/.user/scripts/fehbg

4
xroot-datetime Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
while true; do
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% xsetroot -name %
done