aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/qutebrowser/greasemonkey/google-meet.js19
-rwxr-xr-xscripts/monitor.sh9
-rwxr-xr-xscripts/recording/camscreen.sh5
3 files changed, 28 insertions, 5 deletions
diff --git a/config/qutebrowser/greasemonkey/google-meet.js b/config/qutebrowser/greasemonkey/google-meet.js
index 37a163b..639608e 100644
--- a/config/qutebrowser/greasemonkey/google-meet.js
+++ b/config/qutebrowser/greasemonkey/google-meet.js
@@ -67,5 +67,24 @@
clearInterval(timer);
}
}, 500);
+
+
+ /////////////////////// Push to talk
+
+ // let isSpacePressed = false
+ // const setSpacePressed = p => {
+ // isSpacePressed = p
+ // }
+
+ // window.addEventListener('keydown', e => {
+ // if (e.key === 'space') {
+ // setSpacePressed(true)
+ // }
+ // })
+ // window.addEventListener('keydown', e => {
+ // if (e.key === 'space') {
+ // setSpacePressed(false)
+ // }
+ // })
})();
diff --git a/scripts/monitor.sh b/scripts/monitor.sh
index 93a0282..bc719b9 100755
--- a/scripts/monitor.sh
+++ b/scripts/monitor.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source "$HOME/scripts/modules/rofi-menu.sh";
@@ -6,10 +6,10 @@ PRIMARY="eDP1";
list-monitors() { xrandr --listmonitors | grep -v 'Monitors:' | awk '{print $4 " (" $3 ")"}'; }
-monitor-off() { xrandr --output ${1:-"HDMI-1"} --off; };
+monitor-off() { xrandr --output ${1:-"HDMI1"} --off; };
monitor-on() {
- xrandr --output ${2:-"HDMI-1"} --auto --${1:-"right-of"} $PRIMARY;
+ xrandr --output ${2:-"HDMI1"} --auto --${1:-"right-of"} $PRIMARY;
}
show-menu() {
@@ -19,6 +19,9 @@ show-menu() {
case $1 in
ls) list-monitors ;;
on) monitor-on "$2" "$3" ;;
+ sidekick)
+ xrandr --output ${3:-"HDMI1"} --auto --${2:-"left-of"} $PRIMARY --rotate right --brightness 1.5
+ ;;
off) monitor-off "$2" ;;
menu) show-menu ;;
*) echo "Fuck off" ;;
diff --git a/scripts/recording/camscreen.sh b/scripts/recording/camscreen.sh
index 4b2b594..97c0a3f 100755
--- a/scripts/recording/camscreen.sh
+++ b/scripts/recording/camscreen.sh
@@ -4,7 +4,8 @@ outfile=${1:-"$HOME/Pictures/recordings/video-cs-$(date -Iminutes).mp4"};
[[ -f "$outfile" ]] && echo "[File already exists]: $outfile" && exit 1;
-ffplay /dev/video0 -s 300x200 -an &
+trap "killall background" SIGINT SIGTERM EXIT
-ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i hw:0,0 $outfile;
+ffplay /dev/video0 -s 300x200 -an >/dev/null &
+ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f alsa -i loophw00 $outfile