Separator and styles revamped

Sorry, another small config change.
Added by Christoph Kappel almost 6 years ago

According to my plan, to combine styling options ultimately in the styles it is now time to move the separator. A nice side effect, is that this allows different separators for views, sublets and the panel in case you ever wanted to do that.

Another change is the removal of the unoccupied style, it made no sense at all, TBH. Unoccupied views are just views and this is probably not worth a special state. Just make sure to think twice what values are inherited now and which one you need to overwrite. (Joy of inheritance)

TL;DR: You need to update your config, again. Move the separator config option to the separator style like this:

1 # Separator between sublets
2 set :separator, "|" 
3 
4 # Style for separator
5 style :separator do
6   foreground  "#757575" 
7 end

1 # Style for separator
2 style :separator do
3   foreground  "#757575" 
4   separator   "|" 
5 end

Move the properties from the unoccupied style to the views style:

 1 # Style for the views
 2 style :views do
 3 
 4   # Style for the active views
 5   style :focus do
 6     foreground  "#fecf35" 
 7   end
 8 
 9   # Style for urgent window titles and views
10   style :urgent do
11     foreground  "#ff9800" 
12   end
13 
14   # Style for occupied views (views with clients)
15   style :occupied do
16     foreground  "#b8b8b8" 
17   end
18 
19   # Style for unoccupied views (views without clients)
20   style :unoccupied do
21     foreground  "#757575" 
22   end
23 end

 1 # Style for the views
 2 style :views do
 3   foreground  "#757575" 
 4 
 5   # Style for the active views
 6   style :focus do
 7     foreground  "#fecf35" 
 8   end
 9 
10   # Style for urgent window titles and views
11   style :urgent do
12     foreground  "#ff9800" 
13   end
14 
15   # Style for occupied views (views with clients)
16   style :occupied do
17     foreground  "#b8b8b8" 
18   end
19 end

The separator option and the unoccupied style have been removed check for deprecation warnings


Comments

Added by jan harshal over 5 years ago

Its always good to have tips on good blog posting. As I just started posting comments for blog and faced a lot of rejections. I think your suggestion would be helpful for me. I will let you know if this works for me. your top fashions

Added by maya jan over 5 years ago

Always so interesting to visit your site.What a great info, thank you for sharing. this will help me so much in my learning. TopRealFashionscom

Added by Laurel Neill almost 5 years ago

Your join style option finally inside the styles it is now times to move about the separator.
flowers delivery in canada