🔧 chore(misc): remove comments and changed order for recording
This commit is contained in:
parent
3a643a6b82
commit
1de0a71e99
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ readarray -t LINES <<<"$MONITOR_DATA"
|
||||||
|
|
||||||
CURRENT_MONITOR=""
|
CURRENT_MONITOR=""
|
||||||
|
|
||||||
# Recorrer las líneas y buscar el nombre y el estado enfocado
|
|
||||||
for LINE in "${LINES[@]}"; do
|
for LINE in "${LINES[@]}"; do
|
||||||
if [[ $LINE == *"Monitor"* ]]; then
|
if [[ $LINE == *"Monitor"* ]]; then
|
||||||
CURRENT_MONITOR=$(echo $LINE | awk '{print $2}')
|
CURRENT_MONITOR=$(echo $LINE | awk '{print $2}')
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
wf-recorder_check() {
|
wf-recorder_check() {
|
||||||
if pgrep -x "wf-recorder" >/dev/null; then
|
if pgrep -x "wf-recorder" >/dev/null; then
|
||||||
pkill -INT -x wf-recorder
|
pkill -INT -x wf-recorder
|
||||||
notify-send "Saved recording at " "$(cat /tmp/recording.txt)"
|
|
||||||
pkill -RTMIN+8 waybar
|
pkill -RTMIN+8 waybar
|
||||||
|
notify-send "Saved recording at " "$(cat /tmp/recording.txt)"
|
||||||
wl-copy <"$(cat /tmp/recording.txt)"
|
wl-copy <"$(cat /tmp/recording.txt)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue