[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spatial groups concept discussion
From: |
Russell Adams |
Subject: |
Re: Spatial groups concept discussion |
Date: |
Sat, 23 Apr 2022 00:03:43 +0200 |
On Fri, Apr 22, 2022 at 05:08:48PM +0100, Tim Macdonald wrote:
> I finally had some spare time to get this up and running on my own system
> and so far like it very much. Just need to retrain some of my muscle
> memory! I'm currently using it on two heads and it's fine; it's the same as
> using it on one head with every single desktop having a vertical split.
Great! I ought to test that at some point, but I tend to only use one
monitor.
> A stupid hack that I did and thought I'd share is changing the focus color
> for each z-layer to have a subtle reminder of which layer you're in. Here's
> how I did it (directly editing COORD-GROUP-CHANGE in the library file >.< ):
This is for the colored border around the currently active window?
> diff --git a/.stumpwm.d/modules/StumpWMSpatial/spatial-groups.lisp
> b/.stumpwm.d/modules/StumpWMSpatial/spatial-groups.lisp
> index f3cba3c..c73e628 100644
> --- a/.stumpwm.d/modules/StumpWMSpatial/spatial-groups.lisp
> +++ b/.stumpwm.d/modules/StumpWMSpatial/spatial-groups.lisp
> @@ -119,7 +119,8 @@
> (split-string (group-name (current-group)) ",")))
> (new-coords (mapcar #'+ current-coords (list xo yo zo)))
> (new-group-name (format nil "~{~a~^,~}" new-coords)) )
> -
> + (set-focus-color (elt *colors* (mod (third new-coords)
> + (length *colors*))))
> (if (= 0 zo)
>
> ;; Not changing desktop, so just move by coordinates
>
>
> —Tim
I don't run into a problem forgetting which z-layer (desktop?). I do
like that I have a coord-taskorigin call which re-centers on the
current z-layer.
I'm glad you're enjoying it!
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
https://www.adamsinfoserv.com/