upload dotfiles

This commit is contained in:
λmolinae 2025-03-19 22:04:07 -06:00
parent c79eb9fc65
commit ac383289c7
337 changed files with 3187 additions and 0 deletions

33
.local/bin/recordscreen Executable file
View file

@ -0,0 +1,33 @@
#!/bin/sh -x
#
# Show icon in slstatus: [ 󰕧 + 󱄠 (󰑊) ]
# [ 󰕧 + 󱄠 + 󰍬 (󰑊) ]
# [ 󰕧 (󰑊) ]
#
screencast(){
case $(printf "%s\n" "󰍬 Mic ON" "󰍭 Mic OFF" | fuzzel -d) in
"󰍬 Mic ON")
wf-recorder -D -a -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
;;
"󰍭 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
}
video(){
wf-recorder -D -f ~/Videos/Recordings/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
}
kill(){
killall -s SIGINT wf-recorder && \
notify-send "wf-recorder" "recording stopped" || \
notify-send "ERROR" "No recording process found"
}
case $(printf "%s\n" "󰻒 Screencast" "󰕧 Video only" "󰕨 Stop recording" | fuzzel -d) in
"󰻒 Screencast") screencast;;
"󰕧 Video only") video;;
"󰕨 Stop recording") kill;;
*) kill;;
esac