aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-08-12 19:10:45 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-08-12 19:10:45 +0100
commitd7d133afa6fc1074377a20a6216e8993dcc53036 (patch)
tree0c2ed141fa2be02ce5e0e9075622f71470d2921a
parent3612fa9e36e397babc69be3b2c588efe45810599 (diff)
Added self.current_page to focus next/prev window binds. Added new rules for cowpager and various updates on the config after changes to git main of cow.
-rw-r--r--.config/cow/cow.conf44
1 files changed, 40 insertions, 4 deletions
diff --git a/.config/cow/cow.conf b/.config/cow/cow.conf
index 0f87635..32c2fc1 100644
--- a/.config/cow/cow.conf
+++ b/.config/cow/cow.conf
@@ -48,6 +48,16 @@ decor -d default titlebar.button.0.vector 4 50x25@1 75x75@0 25x75@0 50x25@1
decor -d default titlebar.button.0.action 'window-maximize -T'
decor -a default
+# Titlebar buttons 0, 1, and 2 maximise, close, and iconify respectively.
+#bind-decoration 0 window-maximize -T
+#bind-decoration 1 winops -c
+#bind-decoration 2 winops -i
+
+# Example overrides (commented out):
+#bind-decoration titlebar window-maximize -m # left-click maximises
+#bind-decoration -2 NE winops -c # NE double-click closes
+#bind-decoration -2 0 window-maximize -m # button 0 double-click
+
# Theme packs can define decor profiles in separate files, with image paths
# relative to that theme file. For example:
#
@@ -128,6 +138,19 @@ rule -g -Ton-map -nglobal-on-map decor -a global-on-map
# decor -d cowiconman-chrome titlebar.enabled false
# rule -g -Ton-map -ncowiconman-chrome -s %cowiconman decor -a cowiconman-chrome
+# Remove cowbuttons' own window decors using a cow rule:
+
+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
+
+# decor -d cowpager-nodecor border.width 0
+decor -d cowpager-nodecor border.handles false
+decor -d cowpager-nodecor titlebar.enabled false
+rule -g -Ton-map -ncowpager-chrome -s %cowpager decor -a cowpager-nodecor
+
+
# The restart rule allows for general cleanup. The `exec` command will always
# run in this config on (re)start, so not doing things such as killing conky
# or waybar will mean more than one instance will run.
@@ -246,8 +269,8 @@ bind C+Return window-expand -T
bind C+i winops -i
# Focus windows, next/prev.
-bind A+Tab focus -nw -F 'self.current_output'
-bind AS+Tab focus -pw -F 'self.current_output'
+bind A+Tab focus -nw -F 'self.current_output and self.current_page'
+bind AS+Tab focus -pw -F 'self.current_output and self.current_page'
# Move (see the `step` setting) -r after bind is for auto repeat
bind -r LS+Up window-move -d up
@@ -371,12 +394,12 @@ rule -g -T on-map -n cowbuttons script {
if self.title == "cowbuttons:launcher" {
winops -sS
winops -L =top
- window-move -x 0 -y 1040
+ window-move -x 0 -y 1060
}
if self.title == "cowbuttons:scripts" {
winops -sS
winops -L =top
- window-move -x 1650 -y 1040
+ window-move -x 1640 -y 1060
}
}
@@ -386,6 +409,19 @@ rule -g -T on-map -n cowiconman -s /cowiconman-/ script {
window-move -x 500 -y 1040
}
+rule -g -T on-map -n cowpager -s /cowpager:/ script {
+ winops -sS
+ winops -L =top
+ window-move -x 650 -y 5
+ }
+
+rule -g -T on-map -n cowpager -s /cowpager:/ script {
+ winops -sS
+ winops -C on
+ winops -L =top
+ window-move -x 650 -y 5
+}
+
exec sh "$HOME/.config/cow/after-start.sh"
# Clipboard persistence (retain clipboard content after an app closes):