switched to river
This commit is contained in:
parent
cef35c17b9
commit
292301ce60
204 changed files with 3513 additions and 965 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
2
.local/bin/dam
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
LD_LIBRARY_PATH="$HOME"/Documents/Miscellaneous/alpchroot/usr/lib "$HOME"/.local/src/dam/dam "$@"
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
2
.local/bin/imv
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec mpv --profile=image "$@" >/dev/null 2>&1
|
|
@ -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
28
.local/bin/mew-drun
Executable 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
|
|
@ -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
5
.local/bin/riverlaunch
Executable 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
36
.local/bin/setbg
Executable 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
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
14
.local/bin/welcome
Executable 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
|
|
@ -1,3 +0,0 @@
|
|||
[Icon Theme]
|
||||
Name=macOS-White
|
||||
Inherits="macOS-White"
|
|
@ -1 +0,0 @@
|
|||
left_ptr_watch
|
|
@ -1 +0,0 @@
|
|||
sb_v_double_arrow
|
|
@ -1 +0,0 @@
|
|||
sb_h_double_arrow
|
|
@ -1 +0,0 @@
|
|||
crossed_circle
|
|
@ -1 +0,0 @@
|
|||
left_ptr_watch
|
|
@ -1 +0,0 @@
|
|||
copy
|
|
@ -1 +0,0 @@
|
|||
sb_h_double_arrow
|
|
@ -1 +0,0 @@
|
|||
sb_v_double_arrow
|
|
@ -1 +0,0 @@
|
|||
link
|
|
@ -1 +0,0 @@
|
|||
left_ptr_watch
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
question_arrow
|
|
@ -1 +0,0 @@
|
|||
copy
|
|
@ -1 +0,0 @@
|
|||
link
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
hand2
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
link
|
|
@ -1 +0,0 @@
|
|||
link
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
left_ptr
|
|
@ -1 +0,0 @@
|
|||
copy
|
|
@ -1 +0,0 @@
|
|||
bottom_right_corner
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
top_side
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
bottom_right_corner
|
|
@ -1 +0,0 @@
|
|||
plus
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
crossed_circle
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
sb_h_double_arrow
|
|
@ -1 +0,0 @@
|
|||
cross
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
cross
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
question_arrow
|
|
@ -1 +0,0 @@
|
|||
left_ptr
|
|
@ -1 +0,0 @@
|
|||
cross
|
|
@ -1 +0,0 @@
|
|||
question_arrow
|
|
@ -1 +0,0 @@
|
|||
copy
|
|
@ -1 +0,0 @@
|
|||
link
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
move
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
dotbox
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
sb_v_double_arrow
|
|
@ -1 +0,0 @@
|
|||
sb_down_arrow
|
|
@ -1 +0,0 @@
|
|||
pencil
|
|
@ -1 +0,0 @@
|
|||
right_ptr
|
|
@ -1 +0,0 @@
|
|||
right_ptr
|
|
@ -1 +0,0 @@
|
|||
dotbox
|
|
@ -1 +0,0 @@
|
|||
left_side
|
|
@ -1 +0,0 @@
|
|||
hand2
|
|
@ -1 +0,0 @@
|
|||
sb_h_double_arrow
|
|
@ -1 +0,0 @@
|
|||
bottom_left_corner
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
bottom_left_corner
|
|
@ -1 +0,0 @@
|
|||
all-scroll
|
|
@ -1 +0,0 @@
|
|||
crossed_circle
|
|
@ -1 +0,0 @@
|
|||
hand1
|
|
@ -1 +0,0 @@
|
|||
move
|
|
@ -1 +0,0 @@
|
|||
sb_h_double_arrow
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
question_arrow
|
|
@ -1 +0,0 @@
|
|||
xterm
|
|
@ -1 +0,0 @@
|
|||
dotbox
|
|
@ -1 +0,0 @@
|
|||
sb_left_arrow
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
question_arrow
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue