init
commit
9123f11718
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
feh --no-fehbg --bg-scale '/home/zynh/.config/nvim/backgrounds/bg-none-nord.webp'
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
OPENSSL_CONF=/home/zynh/.config/xiv/openssl_fix.cnf exec /usr/bin/XIVLauncher.Core
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
sed -n "s/^menuentry [\"']\([^\"']*\)[\"'].*$/\1/gmp" /boot/grub/grub.cfg
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# echo $PATH | sed 's/:/ /g' | xargs ls --color=auto
|
||||
echo "$PATH" | xargs -d ":" ls --color=auto
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
alacritty -e "pulsemixer"
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
systemctl --user enable docker-desktop
|
|
@ -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"
|
|
@ -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" "$*"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
entry="$(pactl list clients | sed -n 's/^[[:space:]]\+application.name = "\(.*\)"$/\1/gp' | dmenu -i | tr -d '\n')"
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
while true; do
|
||||
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% xsetroot -name %
|
||||
done
|
Loading…
Reference in New Issue