aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-09-01 19:44:33 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-09-01 19:44:33 +0100
commitb952a46116359090ae22dce09be77293ce8b6c28 (patch)
tree724f625d3b624dd85a3eef601771d445a6bb244b /.config
parent504c2764d5fecc8c4b6007223e650c8f80285d15 (diff)
Added a new module to cowbuttons to indicate when wf-recorder is recording the screen.
Diffstat (limited to '.config')
-rw-r--r--.config/cow/cow.conf4
-rw-r--r--.config/cow/cowbuttons.conf3
-rwxr-xr-x.config/cow/scripts/screenrecord.sh9
3 files changed, 13 insertions, 3 deletions
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"