switched to river

This commit is contained in:
λmolinae 2025-08-12 23:01:17 -06:00
parent cef35c17b9
commit 292301ce60
204 changed files with 3513 additions and 965 deletions

View file

@ -2,10 +2,10 @@
# amolinae's recording tool
screencast(){
case $(printf "%s\n" "󰍬 Mic ON" "󰍭 Mic OFF" | fuzzel -d -l 3) in
"󰍬 Mic ON")
case $(printf "%s\n" "󰍬 Mic ON" "󰍭 Mic OFF" | mew) in
"󰍬 Mic ON")
wf-recorder -D -a -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4") ;;
"󰍭 Mic OFF")
"󰍭 Mic OFF")
wf-recorder -D --audio="$(pactl list short sources | grep output | awk '{print $2}')" -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4") ;;
esac
}
@ -21,10 +21,10 @@ kill(){
}
menu(){
case $(printf "%s\n" "󰻒 Screencast" "󰕧 Video only" "󰕨 Stop recording" | fuzzel -d -l 4) in
"󰻒 Screencast") screencast;;
"󰕧 Video only") video;;
"󰕨 Stop recording") kill;;
case $(printf "%s\n" "󰻒 Screencast" "󰕧 Video only" "󰕨 Stop recording" | mew) in
"󰻒 Screencast") screencast;;
"󰕧 Video only") video;;
"󰕨 Stop recording") kill;;
*) kill;;
esac
}

View file

@ -1,6 +1,6 @@
#!/bin/sh
ROOT="${HOME:-/home/amolinae}/Documents/Miscellaneous/alpchroot"
ROOT="$HOME/Documents/Miscellaneous/alpchroot"
case "$1" in
*)

2
.local/bin/dam Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
LD_LIBRARY_PATH="$HOME"/Documents/Miscellaneous/alpchroot/usr/lib "$HOME"/.local/src/dam/dam "$@"

View file

@ -1,4 +0,0 @@
#!/bin/zsh -l
/usr/libexec/pipewire-launcher >/dev/null 2>&1
slstatus | dbus-run-session dwl >/dev/null 2>&1
touch /tmp/swaylock-sleep && inotifyd swaylock /tmp/swaylock-sleep

View file

@ -1,7 +1,7 @@
#!/bin/sh
# Get user selection via fuzzel from emoji file.
chosen="$(cut -d ';' -f1 ~/.local/share/misc/chars/* | fuzzel -d | sed "s/ .*//")"
chosen="$(cut -d ';' -f1 ~/.local/share/misc/chars/* | mew -f "CommitMono:size=18" -l 12 | sed "s/ .*//")"
# Exit if none chosen.
[ -z "$chosen" ] && exit

View file

@ -1,2 +0,0 @@
#!/bin/sh
LD_LIBRARY_PATH="$HOME"/Documents/Miscelleaneous/alpchroot/usr/lib "$HOME"/.local/src/hellwal/hellwal "$@"

2
.local/bin/imv Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec mpv --profile=image "$@" >/dev/null 2>&1

View file

@ -1,2 +1,2 @@
#!/bin/sh
LD_LIBRARY_PATH="$HOME"/Documents/Miscelleaneous/alpchroot/usr/lib "$HOME"/.local/src/dwl/dwl "$@"
LD_LIBRARY_PATH="$HOME"/Documents/Miscelleaneous/alpchroot/usr/lib "$HOME"/.local/src/mew/mew "$@"

28
.local/bin/mew-drun Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
cache=""$HOME"/.cache/mew_drun"
dirs="$HOME/.local/share/applications/ /usr/share/applications/"
build_cache() {
find $dirs -type f -name "*.desktop" | \
xargs -n1 basename | \
sed 's/\.desktop$//' | \
sort -u > $cache
}
check_cache() {
[ -f "$cache" ] || build_cache
for d in $dirs; do
[ "$d" -nt "$cache" ] && return 0
done
find $dirs -type f -name '*.desktop' -newer "$cache" -print -quit | \
grep -q . && return 0
return 1
}
check_cache && build_cache
choice="$(mew < "$cache")"
gtk-launch $choice

View file

@ -1,7 +1,7 @@
#!/bin/sh
if [[ ! -z "$(pgrep wf-recorder)" ]]; then
printf " [ REC 󰑊 ] \n"
printf " | REC 󰑊 \n"
else
printf " \n"
fi

5
.local/bin/riverlaunch Executable file
View file

@ -0,0 +1,5 @@
#!/bin/zsh -l
/usr/libexec/pipewire-launcher >/dev/null 2>&1
dbus-run-session river
exec touch /tmp/swaylock-sleep && inotifyd swaylock /tmp/swaylock-sleep

36
.local/bin/setbg Executable file
View file

@ -0,0 +1,36 @@
#!/bin/sh
recompile(){
cd "$HOME"/.local/src/"$1"; touch config.h
bwroot make clean install >/dev/null 2>&1
}
set_palette(){
riverctl background-color "0x$background"
riverctl border-color-focused "0x$color1"
riverctl border-color-unfocused "0x$color2"
sed -i "s|^image=\".*\"|image=\"$wallpaper\"|" $HOME/.config/swaylock/config
makoctl reload
kill $(pidof wbg) || echo "Executing wbg" && wbg $wallpaper >/dev/null 2>&1 &
notify-send " Enjoy your color palette!"
}
if [ -f "$1" ]; then
bwroot wal -i "$1" --cols16
else
echo "ERROR: Invalid file"; exit 1
fi
source $HOME/.cache/wal/colors-wal-river
for i in "dam" "mew"; do
recompile "$i"; echo "Applying colorscheme to $i"
if [ "$i" == "dam" ]; then
kill "$(pidof dam)" || echo "Executing bar" && slstatus | dam &
fi
done
set_palette

View file

@ -1,12 +0,0 @@
#!/bin/sh
steps="5"
device="intel_backlight"
delay="125000"
case "$1" in
increase) brillo -s $device -u $delay -q -A $steps ;;
decrease) brillo -s $device -u $delay -q -U $steps ;;
-h|*) echo "usage: setbr increase|decrease" >&2; exit 1; ;;
esac
pkill -RTMIN+4 slstatus

View file

@ -1,19 +0,0 @@
#!/bin/sh
steps="5"
dev=@DEFAULT_SINK@
! [ "$1" = '-m' ] || { dev=@DEFAULT_SOURCE@; shift; }
send_signal(){
if [ "$dev" == "@DEFAULT_SINK@" ]; then
pkill -RTMIN+2 slstatus
elif [ "$dev" == "@DEFAULT_SOURCE@" ]; then
pkill -RTMIN+3 slstatus
fi
}
case "$1" in
mute) wpctl set-mute "$dev" toggle; send_signal ;;
up) wpctl set-volume -l 1.0 "$dev" "$steps"%+; send_signal ;;
down) wpctl set-volume -l 1.0 "$dev" "$steps"%-; send_signal ;;
-h|*) echo "usage: setvol [-m] up|down|mute" >&2; exit 1; ;;
esac

View file

@ -1,29 +1,32 @@
#!/bin/sh
case $(printf "%s\n" " Lock session" "󰍃 Log out" "󱂬 Kill process" "󰤄 Suspend" " Reboot" "󰐥 Shut down" | fuzzel -d -l 7) in
" Lock session")
swaylock
;;
"󰍃 Log out")
if pidof dwl > /dev/null; then
kill "$(pidof dwl)"
elif pidof river > /dev/null; then
kill "$(pidof river)"
fi
;;
"󱂬 Kill process")
ps -o pid,comm,user | \
main(){
case $(printf "%s\n" " Lock session" "󰍃 Log out" "󱂬 Kill process" "󰤄 Suspend" " Reboot" "󰐥 Shut down" | mew) in
" Lock session")
swaylock
;;
"󰍃 Log out")
if pidof dwl > /dev/null; then
kill "$(pidof dwl)"
elif pidof river > /dev/null; then
kill "$(pidof river)"
fi
;;
"󱂬 Kill process")
ps -o pid,comm,user | \
awk -v u="$USER" '$3 == u { print $1, $2 }' | \
fuzzel -d -l 10 -p "Kill: " | awk '{ print $1 }' | \
mew -p "Kill: " -l 8 | awk '{ print $1 }' | \
xargs -r kill
;;
"󰤄 Suspend")
loginctl suspend
;;
" Reboot")
loginctl reboot
;;
"󰐥 Shut down")
loginctl poweroff
esac
;;
"󰤄 Suspend")
loginctl suspend
;;
" Reboot")
loginctl reboot
;;
"󰐥 Shut down")
loginctl poweroff
esac
}
main; exit

14
.local/bin/welcome Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
data="$HOME/.local/share/misc/welcome/data"
line=1
while true; do
clear; sed -n "$line,+4p" "$data"
printf "\n%s\n" "Press [ SHIFT ] + [ F1 ] to open the manual, Press [ CTRL ] + [ C ] to exit"
line=$((line+5))
[ "$(wc -l < "$data")" -lt "$line" ] && line=1
sleep 5
done