Project

General

Profile

Separator and styles revamped

Sorry, another small config change.
Added by Christoph Kappel over 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:

{{column(:start)}}

# Separator between sublets
set :separator, "|" 

# Style for separator
style :separator do
  foreground  "#757575" 
end

{{column(:mid)}}

# Style for separator
style :separator do
  foreground  "#757575" 
  separator   "|" 
end

{{column(:end)}}

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

{{column(:start)}}

# Style for the views
style :views do

  # Style for the active views
  style :focus do
    foreground  "#fecf35" 
  end

  # Style for urgent window titles and views
  style :urgent do
    foreground  "#ff9800" 
  end

  # Style for occupied views (views with clients)
  style :occupied do
    foreground  "#b8b8b8" 
  end

  # Style for unoccupied views (views without clients)
  style :unoccupied do
    foreground  "#757575" 
  end
end

{{column(:mid)}}

# Style for the views
style :views do
  foreground  "#757575" 

  # Style for the active views
  style :focus do
    foreground  "#fecf35" 
  end

  # Style for urgent window titles and views
  style :urgent do
    foreground  "#ff9800" 
  end

  # Style for occupied views (views with clients)
  style :occupied do
    foreground  "#b8b8b8" 
  end
end

{{column(:end)}}

{{warn(The separator option and the unoccupied style have been removed, check for deprecation warnings)}}


Comments