serhii.net

In the middle of the desert you can say anything you want

05 May 2021

Day 855

i3 scratchpads magic!

You can ‘mark’ windows1, a la vim, and then use that as filter - no window classes etc needed - for example, for scratchpads!2

So now I have two scratchpads in i3 config:

bindsym $ms+Shift+plus mark "scratch2", move scratchpad
bindsym $ms+plus [con_mark="scratch2"]  scratchpad show

bindsym $ms+Shift+minus mark "scratch", move scratchpad
bindsym $ms+minus [con_mark="scratch"]  scratchpad show

The second one originally was meant to be for Ding, but it’s really nice to have it flexible.


  1. i3: i3 User’s Guide ↩︎

  2. Marks + Scratchpad = Awesome : i3wm ↩︎

Nel mezzo del deserto posso dire tutto quello che voglio.