From e14e6e48a276264397d1cc6feedeab9260e5930a Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 15 Aug 2026 09:33:34 +0100 Subject: Added rules and keybinds for cowbuttons and cowpager to use them like a bar. --- .config/cow/cow.conf | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to '.config/cow/cow.conf') diff --git a/.config/cow/cow.conf b/.config/cow/cow.conf index fa56c8a..69831c3 100644 --- a/.config/cow/cow.conf +++ b/.config/cow/cow.conf @@ -140,7 +140,7 @@ rule -g -Ton-map -nglobal-on-map decor -a global-on-map # Remove cowbuttons' own window decors using a cow rule: -decor -d cowbuttons-nodecor border.width 0 +# decor -d cowbuttons-nodecor border.width 0 decor -d cowbuttons-nodecor border.handles false decor -d cowbuttons-nodecor titlebar.enabled false rule -g -Ton-map -ncowbuttons-chrome -s %cowbuttons decor -a cowbuttons-nodecor @@ -331,6 +331,16 @@ bind L+Print exec sh "$HOME/.local/bin/screenshot.sh selected-region" # Take a screenshot and save it to the clipboard bind LS+Print exec sh "$HOME/.local/bin/screenshot.sh save-to-clipboard" +# Raise cowpager and cowbuttons +bind LS+b script { + for w in (windows where w.app_id == "cowpager") { + winops -r + } + for w in (windows where w.app_id == "cowbuttons") { + winops -r + } +} + # Mouse bindings mouse L+left window-move mouse L+right window-resize @@ -394,27 +404,28 @@ rule -g -n mpv -T on-map -s %mpv script { } rule -g -T on-map -n cowbuttons script { - if self.title == "cowbuttons:launcher" { + if self.title == "cowbuttons:Status" { winops -sS - winops -L =top - window-move -x 0 -y 1060 + winops -C on + window-move -x 1605 -y 5 } - if self.title == "cowbuttons:scripts" { + if self.title == "cowbuttons:Clock" { winops -sS - winops -L =top - window-move -x 1640 -y 1060 + winops -C on + window-move -x 825 -y 5 } } rule -g -T on-map -n cowiconman -s /cowiconman-/ script { winops -sS - winops -L =top + winops -C on window-move -x 500 -y 1040 } rule -g -T on-map -n cowpager -s /cowpager:/ script { winops -sS - window-move -x 650 -y 5 + winops -C on + window-move -x 15 -y 5 } exec sh "$HOME/.config/cow/after-start.sh" -- cgit v1.3