aboutsummaryrefslogtreecommitdiff
path: root/.config/cow/cow.conf
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-08-16 16:46:38 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-08-16 16:46:38 +0100
commitab603f47be0170182c9b4ad84509f1b3888e9a37 (patch)
tree9cdc14f1680bc9d84aafdad93963ff036cf9912e /.config/cow/cow.conf
parentff2e7577925ac6c920373e91b5a562716ccfb2fb (diff)
Modified the rules that position cowpager and the cowbuttons to only apply if on specified outputs.
Diffstat (limited to '.config/cow/cow.conf')
-rw-r--r--.config/cow/cow.conf27
1 files changed, 22 insertions, 5 deletions
diff --git a/.config/cow/cow.conf b/.config/cow/cow.conf
index 5b6684d..0836d9d 100644
--- a/.config/cow/cow.conf
+++ b/.config/cow/cow.conf
@@ -404,16 +404,26 @@ rule -g -n mpv -T on-map -s %mpv script {
}
rule -g -T on-map -n cowbuttons script {
- if self.title == "cowbuttons:Status" {
+ if self.title == "cowbuttons:Status" and self.current_output and self.output == "HDMI-A-1"{
winops -sS
winops -C on
window-move -x 1555 -y 5
}
- if self.title == "cowbuttons:Clock" {
+ if self.title == "cowbuttons:Status" and self.current_output and self.output == "eDP-1"{
+ winops -sS
+ winops -C on
+ window-move -x 3475 -y 5
+ }
+ if self.title == "cowbuttons:Clock" and self.current_output and self.output == "HDMI-A-1" {
winops -sS
winops -C on
window-move -x 825 -y 5
}
+ if self.title == "cowbuttons:Clock" and self.current_output and self.output == "eDP-1" {
+ winops -sS
+ winops -C on
+ window-move -x 2745 -y 5
+ }
}
rule -g -T on-map -n cowiconman -s /cowiconman-/ script {
@@ -423,9 +433,16 @@ rule -g -T on-map -n cowiconman -s /cowiconman-/ script {
}
rule -g -T on-map -n cowpager -s /cowpager:/ script {
- winops -sS
- winops -C on
- window-move -x 15 -y 5
+ if self.current_output and self.output == "HDMI-A-1" {
+ winops -sS
+ winops -C on
+ window-move -x 15 -y 5
+ }
+ if self.current_output and self.output == "eDP-1" {
+ winops -sS
+ winops -C on
+ window-move -x 1935 -y 5
+ }
}
exec sh "$HOME/.config/cow/after-start.sh"