From b952a46116359090ae22dce09be77293ce8b6c28 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 1 Sep 2026 19:44:33 +0100 Subject: Added a new module to cowbuttons to indicate when wf-recorder is recording the screen. --- .config/cow/cow.conf | 4 ++-- .config/cow/cowbuttons.conf | 3 ++- .config/cow/scripts/screenrecord.sh | 9 +++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 .config/cow/scripts/screenrecord.sh (limited to '.config/cow') diff --git a/.config/cow/cow.conf b/.config/cow/cow.conf index d1aa29a..866fdeb 100644 --- a/.config/cow/cow.conf +++ b/.config/cow/cow.conf @@ -273,12 +273,12 @@ rule -g -T on-map -n cowbuttons script { if self.title == "cowbuttons:Status" and self.output == "HDMI-A-1"{ winops -sS winops -C on - window-move -x 1485 -y 5 + window-move -x 1415 -y 5 } if self.title == "cowbuttons:Status" and self.output == "eDP-1"{ winops -sS winops -C on - window-move -x 3405 -y 5 + window-move -x 3335 -y 5 } if self.title == "cowbuttons:Clock" and self.output == "HDMI-A-1"{ winops -sS diff --git a/.config/cow/cowbuttons.conf b/.config/cow/cowbuttons.conf index 1e9de01..f7c9033 100644 --- a/.config/cow/cowbuttons.conf +++ b/.config/cow/cowbuttons.conf @@ -17,9 +17,10 @@ style button.image_position left panel Status { cell 70 34 - grid 1 6 + grid 1 7 row height 34 { + script "~/.config/cow/scripts/screenrecord.sh" interval 1 leftclick "" justify center bg 0x282828C6 fg 0xfb4934 bg_pressed 0x282828C6 fg_pressed 0xfb4934 script "~/.config/cow/scripts/keyboard-state.sh" interval 1 leftclick "" justify center bg 0x282828C6 fg 0x689d6a bg_pressed 0x282828C6 fg_pressed 0x689d6a script "~/.config/cow/scripts/keyboard-layout.sh" interval 1 leftclick "" justify center bg 0x282828C6 fg 0x98971a bg_pressed 0x282828C6 fg_pressed 0x98971a script "~/.config/cow/scripts/idleinhibit.sh" interval 1 leftclick "exec $HOME/.config/cow/scripts/idleinhibit.sh toggle" justify center bg 0x282828C6 fg 0x458588 bg_pressed 0x282828C6 fg_pressed 0x458588 diff --git a/.config/cow/scripts/screenrecord.sh b/.config/cow/scripts/screenrecord.sh new file mode 100755 index 0000000..2a69a69 --- /dev/null +++ b/.config/cow/scripts/screenrecord.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if pgrep "wf-recorder" > /dev/null + then + icon="󰹑" + else + icon="󰍹" +fi +echo "$icon" -- cgit v1.3