mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
19
.config/sketchybar/plugins/recording.sh
Executable file
19
.config/sketchybar/plugins/recording.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
SCREEN_RECORDING=0
|
||||
|
||||
# Check for active screencapture process (macOS screenshot/recording tool)
|
||||
if pgrep -x screencapture > /dev/null 2>&1; then
|
||||
SCREEN_RECORDING=1
|
||||
fi
|
||||
|
||||
# Check for common recording applications
|
||||
if pgrep -x OBS > /dev/null 2>&1 || pgrep -x Kap > /dev/null 2>&1 || pgrep -x "CleanShot X" > /dev/null 2>&1 || pgrep -x Camtasia > /dev/null 2>&1; then
|
||||
SCREEN_RECORDING=1
|
||||
fi
|
||||
|
||||
if [ $SCREEN_RECORDING -eq 1 ]; then
|
||||
sketchybar --set "$NAME" drawing=on background.drawing=on
|
||||
else
|
||||
sketchybar --set "$NAME" drawing=off background.drawing=off
|
||||
fi
|
||||
Loading…
Reference in a new issue