update:scripts
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
LOCK="$HOME/.local/share/quickshell-lockscreen/lock.sh"
|
||||
killall swayidle
|
||||
sleep 0.1
|
||||
swayidle -w \
|
||||
before-sleep 'swaylock -i ~/pictures/flower.jpg --effect-blur 7x5 --effect-vignette 0.5:0.5 --clock --indicator --ring-color E8D4A0FF --key-hl-color F4A261FF --bs-hl-color EE9B00FF --inside-color 00000088 --text-color FFFFFFFF --line-color 00000000 --separator-color 00000000' \
|
||||
lock 'swaylock -i ~/pictures/flower.jpg --effect-blur 7x5 --effect-vignette 0.5:0.5 --clock --indicator --ring-color E8D4A0FF --key-hl-color F4A261FF --bs-hl-color EE9B00FF --inside-color 00000088 --text-color FFFFFFFF --line-color 00000000 --separator-color 00000000' &
|
||||
before-sleep "bash $LOCK" \
|
||||
lock "bash $LOCK" &
|
||||
# before-sleep 'swaylock -i ~/pictures/bgs/lockscreen/neco2.png --effect-blur 7x5 --effect-vignette 0.5:0.5 --clock --indicator --ring-color E8D4A0FF --key-hl-color F4A261FF --bs-hl-color EE9B00FF --inside-color 00000088 --text-color FFFFFFFF --line-color 00000000 --separator-color 00000000' \
|
||||
# lock 'swaylock -i ~/pictures/bgs/lockscreen/neco2.png.jpg --effect-blur 7x5 --effect-vignette 0.5:0.5 --clock --indicator --ring-color E8D4A0FF --key-hl-color F4A261FF --bs-hl-color EE9B00FF --inside-color 00000088 --text-color FFFFFFFF --line-color 00000000 --separator-color 00000000' &
|
||||
|
||||
@@ -1,7 +1,31 @@
|
||||
#!/bin/bash
|
||||
if pgrep -x wl-screenrec > /dev/null; then pkill -INT wl-screenrec && notify-send "🎥 Recording Stopped" "Saved to ~/videos"; else GEOMETRY=$(slurp); if [ -n "$GEOMETRY" ]; then notify-send "🎥 Recording Started" "Press Super+Alt+v to stop" && wl-screenrec -g "$GEOMETRY" -f ~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4 & fi; fi
|
||||
# silent portion record
|
||||
# if pgrep -x wl-screenrec > /dev/null; then pkill -INT wl-screenrec && notify-send "🎥 Recording Stopped" "Saved to ~/videos"; else GEOMETRY=$(slurp); if [ -n "$GEOMETRY" ]; then wl-screenrec -g "$GEOMETRY" -f ~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4 & fi; fi
|
||||
#
|
||||
# main screen only for yt
|
||||
# if pgrep -x wl-screenrec > /dev/null; then pkill -INT wl-screenrec && notify-send "🎥 Recording Stopped" "Saved to ~/videos"; else wl-screenrec -o DP-3 -f ~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4 & fi
|
||||
|
||||
MODE=${1:-area}
|
||||
OUTPUT=~/videos/recording-$(date +"%Y-%m-%d_%H-%M-%S").mp4
|
||||
|
||||
if pgrep -x wl-screenrec >/dev/null; then
|
||||
pkill -INT wl-screenrec
|
||||
notify-send "🎥 Recording Stopped" "Saved to ~/videos"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$MODE" in
|
||||
area)
|
||||
GEOMETRY=$(slurp)
|
||||
if [ -n "$GEOMETRY" ]; then
|
||||
notify-send "🎥 Recording Started (Area)" "Press Super+Alt+v to stop"
|
||||
wl-screenrec -g "$GEOMETRY" -f "$OUTPUT" &
|
||||
fi
|
||||
;;
|
||||
screen)
|
||||
GEOMETRY=$(slurp -o)
|
||||
if [ -n "$GEOMETRY" ]; then
|
||||
notify-send "🎥 Recording Started (Screen)" "Press Super+Alt+v to stop"
|
||||
wl-screenrec -g "$GEOMETRY" -f "$OUTPUT" &
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 [area|screen]"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user