Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Paul-S/Subtle-Configs
base: 6b0ab41cf2
...
head fork: Paul-S/Subtle-Configs
compare: 8f49d86495
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 94 additions and 67 deletions.
  1. 0  README
  2. +94 −67 subtle.rb
View
0  README
No changes.
View
161 subtle.rb 100644 → 100755
@@ -8,20 +8,36 @@
set :font, "xft:Liberation Sans-10"
#set :font, "-*-*-medium-*-*-*-10-*-*-*-*-*-*-*"
set :gap, 0
-set :padding, [ 0, 0, 0, 0 ]
+set :strut, [0, 0, 0, 0]
+set :padding, [2, 2, 2, 2]
set :separator, "«»"
#set :separator, "|"
set :outline, 0
require "socket"
+begin
+ require "#{ENV["HOME"]}/bin/launcher/launcher.rb"
+ require "#{ENV["HOME"]}/bin/selector.rb"
+ require "#{ENV["HOME"]}/bin/merger.rb"
+
+ Subtle::Contrib::Launcher.fonts = [
+ "xft:Liberation Sans:pixelsize=20:antialias=true",
+ "xft:Liberation Sans:pixelsize=10:antialias=true"
+ ]
+
+ Subtle::Contrib::Selector.font = "xft:Liberation Sans:pixelsize=20:antialias=true"
+ Subtle::Contrib::Merger.font = "xft:Liberation Sans:pixelsize=20:antialias=true"
+rescue LoadError
+end # }}}
+
screen 1 do
# Add stipple to panels
stipple false
arch = Subtlext::Icon.new("/home/paul/.icons/subtle/subtle1.xbm")
- top [ :mpd, :separator, :netchart, :spacer, :gmail, :separator, :weather, arch ]
+ top [ :mpd, :separator, :netchart, :spacer, :cpu, :separator, :battery, :separator, :volume, :separator, arch ]
# top [ :sublets ]
- bottom [ :views, :title, :spacer, :tasks, :separator, :cpu, :separator, :clock, :separator, :volume, :separator, :battery, :separator, :notify, :tray ]
+ bottom [ :views, :title, :spacer, :tasks, :separator, :clock, :separator, :notify, :tray ]
end
@@ -218,6 +234,12 @@
color :stipple, "#757575"
color :separator, "#b8b8b8"
+#Mpd Sublet Colours
+col1 = Subtlext::Color.new("#52d017")
+col2 = Subtlext::Color.new("#e67373")
+col3 = Subtlext::Color.new("#ffffff")
+col4 = Subtlext::Color.new("#fdd017")
+
# Full
gravity :full, [ 0, 0, 100, 100 ]
@@ -366,15 +388,29 @@
#grab "W-c", [ :bottom_right, :bottom_right66, :bottom_right33 ]
# Exec programs
+# Contrib
+grab "W-S-Return" do
+ Subtle::Contrib::Launcher.run
+end
+
+grab "W-S-z" do
+ Subtle::Contrib::Selector.run
+end
+
+grab "W-S-u" do
+ Subtle::Contrib::Merger.run
+end
+
grab "W-Return", "urxvtc"
grab "W-t", "thunar"
grab "W-p", "/home/paul/scripts/launch.sh"
-grab "W-c", "firefox"
+grab "W-c", "chromium"
#grab "W-S-Return", "ruby /home/paul/scripts/launcher.rb"
#grab "W-S-s", "urxvtc -name scratchpad -geometry 80x15+280+500"
#grab "W-S-s", "ruby /home/paul/scripts/styler.rb"
#grab "W-S-s", "urxvtc -name scratchpad"
grab "W-m", "urxvtc -name mc -e mc -S nicedark"
+#grab "W-m", "urxvtc -name mc -e mc -S xoria256"
grab "S-Return" do
@move_to_view = true
spawn "urxvt -name mojo"
@@ -508,9 +544,11 @@
urgent true
end
+iconpath = "#{ENV["HOME"]}/.icons/subtle"
+
view "net" do
match "browser"
- icon "/home/paul/.icons/subtle/world.xbm"
+ icon "#{iconpath}/world.xbm"
icon_only true
end
@@ -533,71 +571,87 @@
[ $reload -eq 0 ] && subtler -r
SCRIPT
+on :start do
+ Subtlext::Subtle.spawn "start-pulseaudio-x11"
+end
+
+on :start do
+ Subtlext::Subtle.spawn "feh --bg-center /home/paul/downloads/wallpaper/Netbook/Waves_1024-600.jpg"
+end
+
+on :start do
+ Subtlext::Subtle.spawn "xfsettingsd"
+end
+
+on :start do
+ Subtlext::Subtle.spawn "wicd-client"
+end
+
+on :start do
+ Subtlext::Subtle.spawn "parcellite"
+end
+
+on :start do
+ Subtlext::Subtle.spawn "pidgin"
+end
+
view "terms" do
match "terms"
exclude :instance => "scratchpad"
- icon "/home/paul/.icons/subtle/terminal.xbm"
+ icon "#{iconpath}/terminal.xbm"
icon_only true
end
view "files" do
match "files"
- icon "/home/paul/.icons/subtle/binder.xbm"
+ icon "#{iconpath}/binder.xbm"
icon_only true
end
view "chat" do
match "chat"
- icon "/home/paul/.icons/subtle/balloon.xbm"
+ icon "#{iconpath}/balloon.xbm"
icon_only true
end
view "media" do
match "media"
- icon "/home/paul/.icons/subtle/movie.xbm"
+ icon "#{iconpath}/movie.xbm"
icon_only true
end
view "stuff" do
match "stuff|editor"
- icon "/home/paul/.icons/subtle/notepad.xbm"
+ icon "#{iconpath}/notepad.xbm"
icon_only true
end
view "gimp" do
match "gimp_.*"
- icon "/home/paul/.icons/subtle/pencil.xbm"
+ icon "#{iconpath}/pencil.xbm"
icon_only true
end
-sublet :gmail do
- interval 30
- user "user"
- password "pass"
- normal "#080808"
- urgent "#e67373"
-end
-
sublet :clock do
interval 60
- format_string "%H:%M : %d/%m/%Y"
+ format_string "#{col1}%H:%M : %d/%m/%Y"
end
sublet :netchart do
- interval 5
- device "eth1"
- title "Net"
+ interval 10
+ device "wlan0"
+ title "#{col3}Net"
end
-sublet :weather do
- locale "en-gb"
- interval 1800
- units "c"
- location "Swansea"
- current_label "Now"
- forecast_length 2
- sep "|"
-end
+#sublet :weather do
+# locale "en-gb"
+# interval 1800
+# units "c"
+# location "Swansea"
+# current_label "Now"
+# forecast_length 2
+# sep "|"
+#end
sublet :fuzzytime do
interval 60
@@ -605,7 +659,7 @@
end
sublet :battery do
- path "/sys/class/power_supply/C15E"
+ path "/sys/class/power_supply/BAT1"
end
sublet :notify do
@@ -614,41 +668,14 @@
sublet :mpd do
interval 30
- format_string "%note%%artist% - %title%"
-end
-
-begin
- require "#{ENV["HOME"]}/bin/selector.rb"
-
- # Set font
- Subtle::Contrib::Selector.font = "xft:Liberation Sans:pixelsize=20:antialias=true"
-rescue LoadError => error
- puts error
-end
-
-begin
- require "#{ENV["HOME"]}/bin/selector.rb"
-rescue LoadError => error
- puts error
-end
-
-grab "W-S-x" do
- Subtle::Contrib::Selector.run
+ foreground "#ffffff"
+ format_string "#{col1}%note%#{col2}%artist% #{col3}- #{col4}%title%"
end
-begin
- require "#{ENV["HOME"]}/bin/launcher/launcher.rb"
-
- # Set fonts
- Subtle::Contrib::Launcher.fonts = [
- "xft:Liberation Sans:pixelsize=40:antialias=true",
- "xft:Liberation Sans:pixelsize=10:antialias=true"
- ]
-rescue LoadError => err
- p err
-end
+[ :cpu, :battery, :volume ].each do |sublet|
+ sublet sublet do
+ icon_fg "#e67373"
+ end
+end
-grab "W-S-Return" do
- Subtle::Contrib::Launcher.run
-end
# vim:ts=2:bs=2:sw=2:et:fdm=marker

No commit comments for this range

Something went wrong with that request. Please try again.