diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-08-15 09:33:34 +0100 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-08-15 09:33:34 +0100 |
| commit | e14e6e48a276264397d1cc6feedeab9260e5930a (patch) | |
| tree | 05b64762d74b21fb043db5a4f370f87a23165306 /.config | |
| parent | cbeec227bf49a9f667db58455719a74f227b5ad2 (diff) | |
Added rules and keybinds for cowbuttons and cowpager to use them like a bar.
Diffstat (limited to '.config')
| -rw-r--r-- | .config/cow/cow.conf | 29 |
1 files changed, 20 insertions, 9 deletions
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" |
