changeset 3248:6e9540330a78 virtual

Updated default config
author unexist
date Wed, 24 Jun 2015 16:24:54 +0200
parents 31e0a9716e58
children b540d76235bf
files data/subtle.rb
diffstat 1 files changed, 33 insertions(+), 66 deletions(-) [+]
line wrap: on
line diff
--- a/data/subtle.rb	Tue Jan 06 16:47:32 2015 +0100
+++ b/data/subtle.rb	Wed Jun 24 16:24:54 2015 +0200
@@ -51,29 +51,24 @@
 # set :wmname, "LG3D"
 
 #
-# == Screen
-#
-# Generally subtle comes with two panels per screen, one on the top and one at
-# the bottom. Each panel can be configured with different panel items and
-# sublets screen wise. The default config uses top panel on the first screen
-# only, it's up to the user to enable the bottom panel or disable either one
-# or both.
-
-# === Properties
+# == Styles
 #
-# [*stipple*]    This property adds a stipple pattern to both screen panels.
-#
-#                Example: stipple "~/stipple.xbm"
-#                         stipple Subtlext::Icon.new("~/stipple.xbm")
+# Styles define various properties of styleable items in a CSS-like syntax.
 #
-# [*top*]        This property adds a top panel to the screen.
-#
-#                Example: top [ :views, :title ]
+# Following properties are available for most the styles:
 #
-# [*bottom*]     This property adds a bottom panel to the screen.
+# [*foreground*] Foreground text color
+# [*background*] Background color
+# [*margin*]     Outer spacing
+# [*border*]     Border color and size
+# [*padding*]    Inner spacing
+# [*font*]       Font string (xftontsel or xft)
 #
-#                Example: bottom [ :views, :title ]
-
+# The styles also define the styling and appearance of the two possible
+# panels per screen in subtle. Each panel can be configured with different
+# panel items and sublets screen wise. The default config uses top panel
+# on the first screen only, it's up to the user to enable the bottom panel or
+# disable either one # or both.
 #
 # Following items are available for the panels:
 #
@@ -86,46 +81,14 @@
 # [*:spacer*]    Variable spacer (free width / count of spacers)
 # [*:center*]    Enclose items with :center to center them on the panel
 # [*:separator*] Insert separator
-#
+
 # Empty panels are hidden.
 #
 # === Links
 #
+# http://subforge.org/projects/subtle/wiki/Styles
 # http://subforge.org/projects/subtle/wiki/Multihead
 # http://subforge.org/projects/subtle/wiki/Panel
-#
-
-screen 1 do
-  top    [ :views, :title, :spacer, :keychain, :spacer, :tray, :sublets ]
-  bottom [ ]
-end
-
-# Example for a second screen:
-#screen 2 do
-#  top    [ :views, :title, :spacer ]
-#  bottom [ ]
-#end
-
-#
-# == Styles
-#
-# Styles define various properties of styleable items in a CSS-like syntax.
-#
-# If no background color is given no color will be set. This will ensure a
-# custom background pixmap won't be overwritten.
-#
-# Following properties are available for most the styles:
-#
-# [*foreground*] Foreground text color
-# [*background*] Background color
-# [*margin*]     Outer spacing
-# [*border*]     Border color and size
-# [*padding*]    Inner spacing
-# [*font*]       Font string (xftontsel or xft)
-#
-# === Link
-#
-# http://subforge.org/projects/subtle/wiki/Styles
 
 # Style for all style elements
 style :all do
@@ -181,12 +144,18 @@
   width     50
 end
 
-# Style for subtle
-style :subtle do
-  margin      0, 0, 0, 0
-  panel       "#202020"
-  background  "#3d3d3d"
-  stipple     "#757575"
+# Style for top panels
+style :panel_top do
+  background  "#202020"
+  screen 1, [ :views, :title, :spacer, :keychain, :spacer, :tray, :sublets ]
+  #screen 2, [ :views ]
+end
+
+# Style for bottom panels
+style :panel_bottom do
+  background  "#202020"
+  screen 1, [ ]
+  #screen 2, [ ]
 end
 
 #
@@ -610,18 +579,17 @@
 
 # Placement
 tag "editor" do
-  match  "[g]?vim"
-  resize true
+  match "[g]?vim"
 end
 
 tag "fixed" do
   geometry [ 10, 10, 100, 100 ]
-  stick    true
+  set :sticky
 end
 
 tag "resize" do
   match  "sakura|gvim"
-  resize true
+  set :resize
 end
 
 tag "gravity" do
@@ -631,13 +599,12 @@
 # Modes
 tag "stick" do
   match "mplayer"
-  float true
-  stick true
+  set :floating, :sticky
 end
 
 tag "float" do
   match "display"
-  float true
+  set :floating
 end
 
 # Gimp