Views are the virtual desktops in subtle and they display matching clients based on tags. In comparison to the matching in tags, views match tag names.
There are two ways to define a view in the config:
The simple way just needs a name and a regular expression (see regex) to create a view:
view "view", "tag"
Like tags, views can have additionally properties to set a different mode or even add an icon.
view "view" do match "xterm|[u]?rxvt" gravity :center end
The view can either be set by adding the tag to a view by choice or otherwise the first defined view is chosen automatically.
Following modes exist:
Enable dynamic mode for views. When set, icons of unoccupied views (views that display no windows) are hidden.
view "terms" do set :dynamic end
Enable icon only mode. When set, subtle hides the view name from the view buttons, just the icon will be visible.
view "terms" do icon "/usr/share/icons/icon.xbm" set :icon_only end
Following options exist:
Set various [[Views#Modes|modes] for views. Multiple modes can be set separated by comma.
view "modes" do match "xterm" set :dynamic, :icons_only end
This property add an icon to the view name in the panel.
view "terms" do match "urxvt" icon "/usr/share/icons/icon.xbm" end
This property works like the simple tag matching, but matches tag names instead of actual client properties.
view "terms" do match "urxvt" end