Views » History » Version 6
« Previous -
Version 6/9
(diff) -
Next » -
Current version
Christoph Kappel, 02/02/2018 09:01 AM
Views¶
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:
Simple¶
The simple way just needs a name and a regular expression (see regex) to create a view:
view "view", "tag"
Extended¶
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
Default¶
The default view can either be set by adding the default tag to a view by choice or otherwise the first defined view is chosen automatically.
Properties¶
Following properties exist:
Icon¶
This property add an icon to the view name in the panel.
Example:
view "terms" do
match "urxvt"
icon "/usr/share/icons/icon.xbm"
end
Icon_only¶
This property hides the view name from the panel when an icon is used.
Example:
view "terms" do
icon "/usr/share/icons/icon.xbm"
set :icon_only
end
Dynamic¶
This property hides views that aren't occupied by clients from the panel.
Example:
view "terms" do
set :dynamic
end
Match¶
This property works like the simple tag matching, but matches tag names instead of actual client properties.
view "terms" do
match "urxvt"
end