From b0708ad010b4e557f52bf3c8dc37b3b3b9e08fc6 Mon Sep 17 00:00:00 2001
From: Vasil Zlatanov <vasil.zlatanov@gmail.com>
Date: Thu, 6 Aug 2015 20:26:32 +0200
Subject: switching back to ratpoison

---
 bash_aliases             |   2 +-
 config/ranger/bookmarks  |   6 +--
 config/vimb/bookmark     |   0
 config/vimb/closed       |   1 -
 config/vimb/command      | 123 ++++++++++++++++++++++++++++++++++++++++++++---
 config/vimb/config       |   8 +++
 config/vimb/cookies      |  11 -----
 config/vimb/history      |  43 -----------------
 config/vimb/hsts         |   6 ---
 config/vimb/queue        |   0
 config/vimb/search       |  29 -----------
 ncmpcpp/.bindings.un~    | Bin 11495 -> 0 bytes
 ncmpcpp/.config.un~      | Bin 15938 -> 0 bytes
 tools/exec_to_workspace  |   3 +-
 tools/panel/panel        |   9 ++--
 tools/panel/panel_bar    |  77 ++++++++++-------------------
 tools/panel/panel_colors |  33 +++----------
 tools/ratcolor           |   1 +
 tools/ratpoisonrc.conf   |  75 ++++++++++++-----------------
 tools/wp                 |   2 +
 xinitrc                  |  33 ++++++-------
 21 files changed, 216 insertions(+), 246 deletions(-)
 delete mode 100644 config/vimb/bookmark
 delete mode 100644 config/vimb/closed
 delete mode 100644 config/vimb/cookies
 delete mode 100644 config/vimb/history
 delete mode 100644 config/vimb/hsts
 delete mode 100644 config/vimb/queue
 delete mode 100644 config/vimb/search
 delete mode 100644 ncmpcpp/.bindings.un~
 delete mode 100644 ncmpcpp/.config.un~

diff --git a/bash_aliases b/bash_aliases
index f3330f4..3908bb2 100644
--- a/bash_aliases
+++ b/bash_aliases
@@ -102,7 +102,7 @@ alias vimrc='vim ~/.vimrc'
 alias uzblrc='vim ~/.config/uzbl/config'
 alias aliases='vim ~/.bash_aliases'
 alias solarize='~/.solarized/solarize'
-alias rat='vim ~/.ratpoison/ratpoisonrc.conf'
+alias rat='vim ~/.tools/ratpoisonrc.conf'
 alias sx='vim ~/.config/sxhkd/sxhkdrc'
 alias bs='vim ~/.config/bspwm/bspwmrc'
 alias screenrc='vim ~/.ratpoison/screenrc'
diff --git a/config/ranger/bookmarks b/config/ranger/bookmarks
index e8bb501..b48b4c2 100644
--- a/config/ranger/bookmarks
+++ b/config/ranger/bookmarks
@@ -1,10 +1,10 @@
+m:/home/vasko/Dropbox/School/Math
+':/home/vasko
 s:/home/vasko/Secure/School
 c:/home/vasko/Dropbox/School/Chemistry
-':/home/vasko/Torrents/The Intouchables 2011 1080p BluRay x264 French AAC - Ozlem
-m:/home/vasko/Dropbox/School/Math
 r:/
 k:/home/vasko/Downloads/leaked photos/Jennifer Lawrence
+p:/home/vasko/Dropbox/School/Physics
 e:/home/vasko/Sync/School/Exams
 b:/home/vasko/Dropbox/School/Biology
 d:/home/vasko/Downloads
-p:/home/vasko/Dropbox/School/Physics
diff --git a/config/vimb/bookmark b/config/vimb/bookmark
deleted file mode 100644
index e69de29..0000000
diff --git a/config/vimb/closed b/config/vimb/closed
deleted file mode 100644
index c426299..0000000
--- a/config/vimb/closed
+++ /dev/null
@@ -1 +0,0 @@
-http://fanglingsu.github.io/vimb/scripts.html
\ No newline at end of file
diff --git a/config/vimb/command b/config/vimb/command
index e9ea087..f927161 100644
--- a/config/vimb/command
+++ b/config/vimb/command
@@ -1,11 +1,8 @@
 bind s C-d
 map s C-d
-tabopen what
 open vimb config
 open dav.skozl.com
-tabopen skozl.com
 open https://dav.skozl.com
-open skozl.com
 open shit
 nnoremap d C-d
 nmap d C-d
@@ -23,17 +20,129 @@ open !g vimb control
 nmap s 10j
 tabopen !g vimb/config
 open googlecom
-open google.com
-open test
 open !g vimb review
 open /tabbed
-open what
 open !g vimb grey bar
 tabopen wow
-tabopen test
 set editor-command
 set hintkeys
 open !g vimb duckduckgo
 tabopen urxvt perls
 tabopen sup
 tabopen duckduckgo.com
+open censor password from dotfiles
+open what
+bmr
+bma
+tabopen vimb set not found
+set status-color-fg #de7788
+set status-color-fg=#de7788
+tabopen what
+open skozl.com
+open google.com
+open https://www.bbc.co.uk/news
+open color-bg
+open https://encrypted.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBwQFjAAahUKEwiZiIDrjpPHAhWFadsKHehuDUw&url=http%3A%2F%2Fthedarnedestthing.com%2Fvimb&ei=6p7CVZnrJ4XT7Qbo3bXgBA&usg=AFQjCNGPyfz-zTwK_JADioBSrpYsXSkOLw&bvm=bv.99261572,d.ZGU&cad=rja
+open skozl.com:8080
+open https://skozl.com:8080
+open enable hsts
+tabopen webkit 2
+open safari webkit version
+tabopen !arch webkit2
+open !aur vimb-git
+open linux browser test
+open firefox vs webkit
+open !w real madrid
+tabopen dito
+open ditto
+tabopen morgan freeman
+open dota picker
+tabopen organise dotfiles
+tabopen !gh holman/dotfiles
+open organise dotifiles
+open organise dotfiles
+tabopen header backup
+open !arch gervil
+tabopen fonts vs local/share/fonts
+open move all dotfiles to config
+open !gh vaskozl/dotfiles
+open github.com/vaskozl/dotfiles
+tabopen github organise folders
+open rpbar source
+open !gh rpbar
+tabopen screen tearing no compositor
+open !g tearfree intel arch
+tabopen barbecue in college
+tabopen sna acceleration
+open !arch tearfree
+open tearfree intel
+tabopen cut to number of characters
+tabopen ifs set
+open case regex
+open bash case wild card
+tabopen bash special characters
+tabopen bash case example
+open bash characters you have to escape
+open walking around naked
+open working out naked
+tabopen olivia munn nudes
+open google.com/ncr
+open faapy.com
+tabopen make a pussy
+tabopen pmatehunter.com
+tabopen faapy.com
+open pipe line by line
+open bash for each line in file
+open while read from pipe
+open ratpoison titlechanged
+tabopen ratpoison repo
+open ratpoison non-gun
+tabopen skozl.com
+open !arch printer
+tabopen pixma printer usb
+tabopen how to print with cups
+open !g cups bjnp how to print
+open !arch cups
+open !g m560 printer
+open !g arch printer mp560
+open !g linux print trough wireless printer
+tabopen localhost:731
+open 127.0.0.1:731
+open localhost:631
+open http://localhost:631
+tabopen !g arch linux wifi printer
+tabopen cups mp560 printer
+tabopen 192.168.0.1
+open 192.168.0.200
+tabopen 192.168.0.200
+tabopen arch print lpr printer
+open !g arch simple lpr print
+open android print with lpr printer
+open !g android print using lpr
+tabopen localhost:631
+open 127.0.0.1:631
+tabopen !p mp560 usb pdf
+tabopen pdf to png
+tabopen no photo data mp560 usb
+open !g mp560 usb no photo data format
+open !g mp560 easy print
+tabopen android how to print pdf
+open !g android how to print add printer]
+tabopen test
+open !g cyanogenmod print pdf
+open youtube.com
+open convert pdf to png high quality
+open !g android pdf read with print
+tabopen cyanogenmod pdf veiewer
+tabopen convert pdf to png imagemagick high quality
+open cool things to print
+open best printable foldable plane
+open use ssh for push
+open test
+open why
+open what is this
+open !g sh how to newline echo
+tabopen git remove sensitive file
+open revert last commit
+open git remove  sensitive file
+open git untrack file
diff --git a/config/vimb/config b/config/vimb/config
index ee621e0..dd8a6ca 100644
--- a/config/vimb/config
+++ b/config/vimb/config
@@ -1,2 +1,10 @@
 nmap s 10j
 nmap e 10k
+set status-color-bg=#131020
+set status-color-fg=#abc8c0
+set status-ssl-color-bg=#131020
+set status-ssl-color-fg=#abc8c0
+set completion-bg-active=#131020
+set completion-bg-normal=#131020
+set completion-fg-active=#7280a0
+set completion-fg-normal=#abc8c0
diff --git a/config/vimb/cookies b/config/vimb/cookies
deleted file mode 100644
index 99d2f8a..0000000
--- a/config/vimb/cookies
+++ /dev/null
@@ -1,11 +0,0 @@
-#HttpOnly_.github.com	TRUE	/	TRUE	2069928003	logged_in	no
-.github.com	TRUE	/	FALSE	1501848005	_octo	GH1.1.1113324279.1438776004
-.google.com	TRUE	/	FALSE	1501889028	PREF	ID=1111111111111111:FF=0:TM=1438817027:LM=1438817027:V=1:S=E_N1k1AbA-EwxNuP
-.google.co.uk	TRUE	/	FALSE	1501889404	PREF	ID=1111111111111111:FF=0:TM=1438817403:LM=1438817403:V=1:S=jA2CQGU9HLgIn9yP
-#HttpOnly_.google.co.uk	TRUE	/	FALSE	1454628604	NID	70=TYlcPrDucOXCgLvKThO795iJ1Cqr3Rfv25h6k4SkEDMu-CpGI3mOkzY325YpDh0GqVf3nFXt5oZ5sMrbpfNhm81zV-Q-S8_FFdIwWHXOjkMzBx_Ycf-h7JMKG-F1iyAH
-#HttpOnly_.google.com	TRUE	/	FALSE	1454629697	NID	70=chSLt2Tuo8z5gvMTCjrk0Jnqndj9vg0QZidGzQffadsmG_jqXMA15BODtT7_Sdz_I3m4IhN0lsgY47BBUsHYmJxGSmQANLPA1ukNxHOPoMxozhM724RrG3zBJKrjJ4Xv
-#HttpOnly_github.com	FALSE	/	TRUE	1438823536	_gh_sess	eyJzZXNzaW9uX2lkIjoiNjk1NzRjNjY5NWQzYTE3MDgzMTVjNGExMGYzZTU4ZjMiLCJyZWZlcnJhbF9jb2RlIjoiaHR0cHM6Ly9lbmNyeXB0ZWQuZ29vZ2xlLmNvbS91cmw%2Fc2E9dCZyY3Q9aiZxPSZlc3JjPXMmc291cmNlPXdlYiZjZD0yJnZlZD0wQ0NNUUZqQUJhaFVLRXdpSWxJckxrSlBIQWhXeUNOc0tIZVluQzU0JnVybD1odHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZmYW5nbGluZ3N1JTJGdmltYiUyRmlzc3VlcyUyRjIxMyZlaT13S0RDVllpMEk3S1I3QWJtejZ6d0NRJnVzZz1BRlFqQ05FRVpPcWJ5ekdlR25tV29FTUkwTUNUdU45ZlZRJmJ2bT1idi45OTI2MTU3MixkLlpHVSIsInNweV9yZXBvIjoibXVlbm5pY2gvdXJ4dnQtcGVybHMiLCJzcHlfcmVwb19hdCI6MTQzODgxODczNSwiX2NzcmZfdG9rZW4iOiJrTUJjRU9iS2J5WVRwbXVoUlVaeFJGMFFIdVpMSEtxdlBaNjRQMDkzU0VRPSJ9--c82ed8e463c78160e07856b7574e3f27e8349c98
-github.com	FALSE	/	TRUE	1438823536	tz	Europe%2FBerlin
-.github.com	TRUE	/	FALSE	1501890735	_ga	GA1.2.932519576.1438776003
-.mathematica-journal.com	TRUE	/	FALSE	1754178880	WR_SID	6c3dad5b241455c2a240402d
-#HttpOnly_duck.co	FALSE	/	TRUE	1438840513	ddgc_session	98100d5f5490ff0d95f8e93ec7a74c13d35c0d9d
diff --git a/config/vimb/history b/config/vimb/history
deleted file mode 100644
index 65fe1a6..0000000
--- a/config/vimb/history
+++ /dev/null
@@ -1,43 +0,0 @@
-https://duckduckgo.com/html/?q=vimb%20config	vimb config at DuckDuckGo
-https://github.com/fanglingsu/vimb	fanglingsu/vimb · GitHub
-http://dav.skozl.com/
-http://dav.skozl.com/admin/install/
-https://skozl.com/
-https://duckduckgo.com/html/?q=shit	shit at DuckDuckGo
-https://duckduckgo.com/html/?q=vimb%20control	vimb control at DuckDuckGo
-https://encrypted.google.com/search?hl=en&q=vimb%20control	vimb control - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%2Fconfig	vimb/config - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%2Fconfig#hl=en&q=vimb%2Fconfig+nmap	vimb/config - Google Search
-https://www.google.co.uk/?gfe_rd=cr&ei=e5zCVfmTI7Hj8wfIpbT4Dg&gws_rd=ssl#q=why	why - Google Search
-https://www.google.co.uk/?gfe_rd=cr&ei=e5zCVfmTI7Hj8wfIpbT4Dg&gws_rd=ssl#q=whyss+cz	why - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%20review	vimb review - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%20review#hl=en&q=vimb+browser+review	vimb review - Google Search
-https://fanglingsu.github.io/vimb/	Vimb - The Vim like Browser
-http://tools.suckless.org/tabbed/	tabbed | suckless.org tools
-https://duckduckgo.com/html/?q=%2Ftabbed	/tabbed at DuckDuckGo
-https://fanglingsu.github.io/vimb/faq.html	Vimb - Frequently asked Questions
-https://duckduckgo.com/html/?q=what	what at DuckDuckGo
-https://encrypted.google.com/search?hl=en&q=vimb%20grey%20bar	vimb grey bar - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%20grey%20bar#hl=en&q=+vimb+browser+grey+bar	vimb grey bar - Google Search
-https://encrypted.google.com/search?hl=en&q=vimb%20grey%20bar#hl=en&q=vimb+browser+grey+bar&nirf=vim+browser+grey+bar	vimb browser grey bar - Google Search
-https://encrypted.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBwQFjAAahUKEwiZiIDrjpPHAhWFadsKHehuDUw&url=http%3A%2F%2Fthedarnedestthing.com%2Fvimb&ei=6p7CVZnrJ4XT7Qbo3bXgBA&usg=AFQjCNGPyfz-zTwK_JADioBSrpYsXSkOLw&bvm=bv.99261572,d.ZGU&cad=rja
-http://thedarnedestthing.com/vimb	vimb
-https://duckduckgo.com/html/?q=wow	wow at DuckDuckGo
-https://github.com/fanglingsu/vimb/issues/213	Few questions from noob · Issue #213 · fanglingsu/vimb · GitHub
-https://duckduckgo.com/html/?q=test	test at DuckDuckGo
-https://encrypted.google.com/search?hl=en&q=vimb%20duckduckgo	vimb duckduckgo - Google Search
-https://duck.co/blog/post/176/-why-duckduckgo-is-giving-away-shirts	DuckDuckGo Blog : Why DuckDuckGo is giving away 10,000 shirts
-https://duck.co/blog	DuckDuckGo Blog
-https://github.com/muennich/urxvt-perls/blob/master/url-select	muennich/urxvt-perls · GitHub
-https://duckduckgo.com/html/?q=urxvt%20perls	urxvt perls at DuckDuckGo
-https://github.com/muennich/urxvt-perls/	muennich/urxvt-perls · GitHub
-https://duck.co/r
-http://duckduckhack.com/	DuckDuckHack - an open source community for DuckDuckGo Instant Answers
-http://fanglingsu.github.io/vimb/faq.html	Vimb - Frequently asked Questions
-http://fanglingsu.github.io/vimb/scripts.html	Vimb - user scripts
-https://duckduckgo.com/html/?q=sup	sup at DuckDuckGo
-https://duckduckgo.com/	DuckDuckGo
-https://duckduckgo.com/?q=test	test at DuckDuckGo
-http://fanglingsu.github.io/vimb/	Vimb - The Vim like Browser
-http://fanglingsu.github.io/vimb/man.html	Vimb - manual page
-http://fanglingsu.github.io/vimb/	Vimb - The Vim like Browser
diff --git a/config/vimb/hsts b/config/vimb/hsts
deleted file mode 100644
index 8e85a60..0000000
--- a/config/vimb/hsts
+++ /dev/null
@@ -1,6 +0,0 @@
-collector.githubapp.com	2016-08-04T12:00:04Z	n
-duckduckgo.com	2016-08-04T23:39:59Z	n
-api.github.com	2016-08-04T12:00:06Z	y
-github.com	2016-08-04T12:00:03Z	y
-avatars0.githubusercontent.com	2016-08-04T18:00:02Z	n
-skozl.com	2016-08-05T05:06:17Z	n
diff --git a/config/vimb/queue b/config/vimb/queue
deleted file mode 100644
index e69de29..0000000
diff --git a/config/vimb/search b/config/vimb/search
deleted file mode 100644
index 6d7c99c..0000000
--- a/config/vimb/search
+++ /dev/null
@@ -1,29 +0,0 @@
-vimrc
-rc
-bind
-keybind
-cmap
-config
-key
-nore
-map
-scroll
--d
-scroll do
--D
-CTRL
-ctrl
-control
-back
-tabbe
-vimb
-tabbed
-search
-duckduckgo
-open
-browser
-quit
-close
-duckdcuk
-duck
-zoom
diff --git a/ncmpcpp/.bindings.un~ b/ncmpcpp/.bindings.un~
deleted file mode 100644
index b693c48..0000000
Binary files a/ncmpcpp/.bindings.un~ and /dev/null differ
diff --git a/ncmpcpp/.config.un~ b/ncmpcpp/.config.un~
deleted file mode 100644
index a205395..0000000
Binary files a/ncmpcpp/.config.un~ and /dev/null differ
diff --git a/tools/exec_to_workspace b/tools/exec_to_workspace
index 8bacd78..c7968f2 100755
--- a/tools/exec_to_workspace
+++ b/tools/exec_to_workspace
@@ -8,5 +8,6 @@
 
 wg=$1; shift
 cmd="$@"
-bspc desktop -f $wg &
+rpws $wg
 eval $cmd &
+ratpoison -c 'barsend'
diff --git a/tools/panel/panel b/tools/panel/panel
index 472b180..69eb2f2 100755
--- a/tools/panel/panel
+++ b/tools/panel/panel
@@ -9,7 +9,8 @@ mkfifo -m 777 "$PANEL_FIFO"
 
 bspc config top_padding $PANEL_HEIGHT
 bspc control --subscribe > "$PANEL_FIFO" &
-xtitle -sf 'T%s' > "$PANEL_FIFO" &
+./windows > "$PANEL_FIFO" &
+echo "D`rpws current`" > "$PANEL_FIFO" &
 volume -f 'V%i' > "$PANEL_FIFO" &
 battery -i 60 -sf 'B%s %i' > "$PANEL_FIFO" &
 clock -i 60 -sf 'Z%d %a %H:%M' > "$PANEL_FIFO" &
@@ -22,7 +23,7 @@ unbuffer alsactl monitor | grep --line-buffered 'Headphone Jack' | while read li
 
 source ./panel_colors
 
-cat "$PANEL_FIFO" | ./panel_bar | lemonbar -f "$FONT_FONT" -f "$ICON_FONT" -g x$PANEL_HEIGHT -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" &
+cat "$PANEL_FIFO" | ./panel_bar | lemonbar -f "$FONT_FONT" -f "$ICON_FONT" -g x$PANEL_HEIGHT -F "$COLOR11" -B "$COLOR0" &
 
-sleep 1;
-stalonetray --geometry 1x1-415+2 --icon-gravity E --grow-gravity E  -bg $COLOR0 -i 18 &
+#sleep 1;
+#stalonetray --geometry 1x1-415+2 --icon-gravity E --grow-gravity E  -bg $COLOR0 -i 20 &
diff --git a/tools/panel/panel_bar b/tools/panel/panel_bar
index 779c5bb..ab39edf 100755
--- a/tools/panel/panel_bar
+++ b/tools/panel/panel_bar
@@ -1,7 +1,4 @@
 #! /bin/sh
-#
-# Example panel for LemonBoy's bar
-
 
 num_mon=$(bspc query -M | wc -l)
 
@@ -111,51 +108,31 @@ while read -r line ; do
 			# clock output
 			time_infos="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${line#?} %{B-}%{F-}"
 			;;
-		T*)
-			# xtitle output
-			title="%{F$COLOR_TITLE_FG}%{B$COLOR_TITLE_BG} ${line#?} %{B-}%{F-}"
-			;;
-		W*)
-			# bspwm internal state
+#		T*)
+#			# xtitle output
+#			title="%{F$COLOR_TITLE_FG}%{B$COLOR_TITLE_BG} ${line#?} %{B-}%{F-}"
+#			;;
+		D*)
+			# active desktop
+			desktop="%{F$COLOR_STATUS_FG}%{B$COLOR_STATUS_BG} ${line#?}%{B-}%{F-}  "
+          		;;
+		Wclear)
+			# focused occupied desktop
 			wm_infos=""
-			IFS=':'
-			set -- ${line#?}
-			while [ $# -gt 0 ] ; do
-				item=$1
-				name=${item#?}
-				case $item in
-					M*)
-						# active monitor
-						if [ $num_mon -gt 1 ] ; then
-							wm_infos="$wm_infos %{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG} ${name} %{B-}%{F-}  "
-						fi
-						;;
-#					m*)
-#						# inactive monitor
-#						if [ $num_mon -gt 1 ] ; then
-#							wm_infos="$wm_infos %{F$COLOR_INACTIVE_MONITOR_FG}%{B$COLOR_INACTIVE_MONITOR_BG} ${name} %{B-}%{F-}  "
-#						fi
-#						;;
-					O*)
-						# focused occupied desktop
-						wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOREGROUND} ${name} %{-u}%{B-}%{F-}"
-						;;
-					F*)
-						# focused free desktop
-						wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOREGROUND} ${name} %{-u}%{B-}%{F-}"
-						;;
-					U*)
-						# focused urgent desktop
-						wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOREGROUND} ${name} %{-u}%{B-}%{F-}"
-						;;
-#					o*)
-#						# occupied desktop
-#						wm_infos="${wm_infos}%{F$COLOR_OCCUPIED_FG}%{B$COLOR_OCCUPIED_BG} ${name} %{B-}%{F-}"
-#						;;
-#					f*)
-#						# free desktop
-#						wm_infos="${wm_infos}%{F$COLOR_FREE_FG}%{B$COLOR_FREE_BG} ${name} %{B-}%{F-}"
-#						;;
+			;;
+	
+		\**)
+			# focused occupied desktop
+			wm_infos="${wm_infos}%{F$COLOR_FOCUSED_FG}%{B$COLOR_FOCUSED_BG}%{U$COLOR_FOCUSED_UG} ${line#?} %{-u}%{B-}%{F-}"
+			;;
+		+*)
+			# occupied desktop
+			wm_infos="${wm_infos}%{F$COLOR_OTHER_FG}%{B$COLOR_OTHER_BG} ${line#?} %{B-}%{F-}"
+			;;
+        	-*)
+			# free desktop
+			wm_infos="${wm_infos}%{F$COLOR_ELSE_FG}%{B$COLOR_ELSE_BG} ${line#?} %{B-}%{F-}"
+			;;
 #					u*)
 #						# urgent desktop
 #						wm_infos="${wm_infos}%{F$COLOR_URGENT_FG}%{B$COLOR_URGENT_BG} ${name} %{B-}%{F-}"
@@ -164,11 +141,7 @@ while read -r line ; do
 #						# layout
 #						wm_infos="$wm_infos  %{F$COLOR_LAYOUT_FG}%{B$COLOR_LAYOUT_BG} ${name} %{B-}%{F-}"
 #						;;
-				esac
-				shift
-			done
-			;;
 	esac
 #	printf "%s\n" "%{l}${wm_infos}${title}%{r}${playing}${paused}${cpu}${ram}${essid}${signal}${volume}${musicvol}${battery}${time_infos}             "
-	printf "%s\n" "%{l}${wm_infos}${title}%{r}${face}${priv}${pub}${mail}${playing}${paused}${cpu}${ram}${volume}${musicvol}${battery}${time_infos}"
+	printf "%s\n" "%{l}${desktop}${wm_infos}${title}%{r}${face}${priv}${pub}${mail}${playing}${paused}${cpu}${ram}${volume}${musicvol}${battery}${time_infos}"
 done
diff --git a/tools/panel/panel_colors b/tools/panel/panel_colors
index f436113..f04ddbb 100644
--- a/tools/panel/panel_colors
+++ b/tools/panel/panel_colors
@@ -1,33 +1,14 @@
 source ~/.colors
 
-
-COLOR_FOREGROUND="#FF`echo $COLOR11 | cut -c 2-`"
-COLOR_BACKGROUND="#FF`echo $COLOR0 | cut -c 2-`"
-COLOR_ACTIVE_MONITOR_FG='#FF34322E'
-COLOR_ACTIVE_MONITOR_BG='#FF58C5F1'
-COLOR_INACTIVE_MONITOR_FG='#FF58C5F1'
-COLOR_INACTIVE_MONITOR_BG='#FF34322E'
-COLOR_FOCUSED_OCCUPIED_FG='#FFF6F9FF'
-COLOR_FOCUSED_OCCUPIED_BG='#FF5C5955'
-COLOR_FOCUSED_FREE_FG='#FFF6F9FF'
-COLOR_FOCUSED_FREE_BG='#FF6D561C'
-COLOR_FOCUSED_URGENT_FG='#FF34322E'
-COLOR_FOCUSED_URGENT_BG='#FFF9A299'
-COLOR_OCCUPIED_FG='#FFA3A6AB'
-COLOR_OCCUPIED_BG='#FF34322E'
-COLOR_FREE_FG='#FF6F7277'
-COLOR_FREE_BG='#FF34322E'
-COLOR_URGENT_FG='#FFF9A299'
-COLOR_URGENT_BG='#FF34322E'
-COLOR_LAYOUT_FG='#FFA3A6AB'
-COLOR_LAYOUT_BG='#FF34322E'
-
-
-COLOR_FOCUSED_FG="#FF`echo $COLOR10 | cut -c 2-`"
+COLOR_FOCUSED_FG="#FF`echo $COLOR4 | cut -c 2-`"
 COLOR_FOCUSED_BG="#FF`echo $COLOR0 | cut -c 2-`"
+COLOR_FOCUSED_UG="#FF`echo $COLOR1 | cut -c 2-`"
 
-COLOR_TITLE_FG="#FF`echo $COLOR11 | cut -c 2-`"
-COLOR_TITLE_BG="#FF`echo $COLOR0 | cut -c 2-`"
+COLOR_OTHER_FG="#FF`echo $COLOR10 | cut -c 2-`"
+COLOR_OTHER_BG="#FF`echo $COLOR0 | cut -c 2-`"
 
 COLOR_STATUS_FG="#FF`echo $COLOR12 | cut -c 2-`"
 COLOR_STATUS_BG="#FF`echo $COLOR0 | cut -c 2-`"
+
+COLOR_ELSE_FG="#FF`echo $COLOR11 | cut -c 2-`"
+COLOR_ELSE_BG="#FF`echo $COLOR0 | cut -c 2-`"
diff --git a/tools/ratcolor b/tools/ratcolor
index 97cd406..e6e59a8 100755
--- a/tools/ratcolor
+++ b/tools/ratcolor
@@ -5,3 +5,4 @@ ratpoison -c "set bwcolor $COLOR0"
 ratpoison -c "set fgcolor $COLOR11"
 ratpoison -c "set fwcolor $COLOR11"
 
+
diff --git a/tools/ratpoisonrc.conf b/tools/ratpoisonrc.conf
index 079e9c4..a40ce54 100644
--- a/tools/ratpoisonrc.conf
+++ b/tools/ratpoisonrc.conf
@@ -4,9 +4,6 @@ escape grave
 definekey top s-grave meta
 definekey top Arabic_dammatan meta
 
-#unmanage Nautilus Desktop
-unmanage Desktop
-
 #find files script
 bind f exec ~/.tools/spotlight
 
@@ -14,10 +11,6 @@ bind f exec ~/.tools/spotlight
 #set font -*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*
 set font "DejaVu Sans Mono"
 
-#Style message box
-set bgcolour #fdf6e3
-set fgcolor #657b83
-
 # Enable xcb copy/paste
 source .tools/ratpoisonrc.clipboard
 
@@ -28,7 +21,7 @@ bind Tab nextscreen
 set wingravity center
 
 # Use the name of the program rather than the title in the window list
-set winname title
+set winname class
 
 #Pest control.
 banish
@@ -48,42 +41,34 @@ exec xsetroot -cursor_name left_ptr
 #exec nitrogen --restore
 
 #Border & Padding
-alias showpadding set padding 10 10 10 10
-alias hidepadding set padding 0 0 0 0
-showpadding
+alias showpanel set padding 0 27 0 0
+alias hidepanel set padding 0 0 0 0
+showpanel
 
-barinpadding 0
 alias showborder set border 3
 alias hideborder set border 0
 showborder
 
-set fwcolor #657b83
-set bwcolor #839496
-
 ######################################
 # Panel
 ######################################
-alias rpbarsend exec ~/.tools/rpbarsend
+alias barsend exec ~/.tools/panel/windows
 
-# tell ratpoison to ignore rpbar
+# tell ratpoison to ignore panels
 unmanage rpbar
+unmanage bar
+unmanage stalonetray
 
 # hooks
-#addhook switchwin rpbarsend
-#addhook switchframe rpbarsend
-#addhook switchgroup rpbarsend
-#addhook deletewindow rpbarsend
-## RP versions >= 1.4.6 (from the git repo) have these hooks.
-## Recommended!
-#addhook titlechanged rpbarsend
-#addhook newwindow rpbarsend
+addhook switchwin barsend
+addhook deletewindow barsend
+addhook switchframe barsend
+addhook switchgroup barsend
+#addhook titlechanged barsend
 
 unmanage conky
 unmanage xfce4-panel
 unmanage ratbar.pl
-alias showpanel set padding 0 27 0 0
-alias hidepanel set padding 0 0 0 0
-#showpanel
 #-------------------------------------------------------------
 # Workspaces
 #-------------------------------------------------------------
@@ -95,18 +80,18 @@ bind W workspace_menu
 
 
 #Get F-keys to switch windows now in /usr/bin/rpws
-definekey top F1 exec rpws 1 #&& ratpoison -c bordscript
-definekey top F2 exec rpws 2 #&& ratpoison -c bordscript
-definekey top F3 exec rpws 3
-definekey top F4 exec rpws 4 #&& ratpoison -c bordscript
-definekey top F5 exec rpws 5 #&& ratpoison -c bordscript
-definekey top F6 exec rpws 6 #&& ratpoison -c bordscript
-definekey top F7 exec rpws 7 #&& ratpoison -c bordscript
-definekey top F8 exec rpws 8 #&& ratpoison -c bordscript
-definekey top F9 exec rpws 9 #&& ratpoison -c bordscript
-definekey top F10 exec xset -led 3 & exec ratpoison -c "exec rpws 10"
-definekey top F11 exec rpws 11 #3&& ratpoison -c bordscript
-definekey top F12 exec rpws 12 #3&& ratpoison -c bordscript
+definekey top F1 exec rpws 1 && echo "D1" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F2 exec rpws 2 && echo "D2" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F3 exec rpws 3 && echo "D3" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F4 exec rpws 4 && echo "D4" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F5 exec rpws 5 && echo "D5" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F6 exec rpws 6 && echo "D6" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F7 exec rpws 7 && echo "D8" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F8 exec rpws 8 && echo "D8" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F9 exec rpws 9 && printf "D9\nIxlear\n" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F10 exec rpws 10 && printf "D10\nIclear\n" > /tmp/panel-fifo & xset -led named "Scroll Lock" #&& ratpoison -c bordscript
+definekey top F11 exec rpws 11 && echo "D11" > /tmp/panel-fifo #&& ratpoison -c bordscript
+definekey top F12 exec rpws 12 && echo "D12" > /tmp/panel-fifo #&& ratpoison -c bordscript
 
 definekey top M-F1 rpwsm1
 definekey top M-F2 rpwsm2
@@ -169,7 +154,7 @@ bind J exchangedown
 bind K exchangeup
 
 bind w window_menu
-bind a title
+bind a exec ratpoison -i -c 'title' && ratpoison -c 'barsend'                                                                                                                              
 bind t time
 definekey top s-l exec i3lock -n -i ~/.wallpaper.png
 definekey top s-s exec ~/bin/sus
@@ -210,11 +195,11 @@ definekey top s-p paneltoggle
 
 
 # b : Open url
-alias browse_cmd exec .tools/exec_to_workspace 2 firefox -new-tab
+alias browse_cmd exec .tools/exec_to_workspace 2 vimb
 alias browse colon browse_cmd 
 bind b browse
 # B : open a new firefox tab and browse to the X clipboard selection
-alias browse_selection exec .tools/exec_to_workspace 2 firefox -new-tab `ratpoison -c getsel`
+alias browse_selection exec .tools/exec_to_workspace 2 vimb `ratpoison -c getsel`
 bind B browse_selection
 
 # Paste with X selection
@@ -229,7 +214,7 @@ bind i insert_X_selection
 definekey top s-f exec firefox
 definekey top s-u exec uzbl-browser
 definekey top s-m exec /home/vasko/.tools/pentfocus
-definekey top s-v exec vlc
+definekey top s-v exec vimb
 definekey top s-g exec gvim
 #definekey top s-l exec libreoffice
 
@@ -244,7 +229,7 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh
 # Up
 alias volup exec amixer -q set Master 5+ && ratpoison -c "echo `$HOME/.tools/volind`"
 
-defivhave`havhave`nekey top XF86AudioRaiseVolume volup
+definekey top XF86AudioRaiseVolume volup
 definekey top s-Prior volup
 
 # Down
diff --git a/tools/wp b/tools/wp
index c508adb..ad77290 100755
--- a/tools/wp
+++ b/tools/wp
@@ -254,3 +254,5 @@ pkill stalone
 source ~/.colors
 #convert -font DejaVuSansB -pointsize 30 -stroke $COLOR0 -strokewidth 1 -fill $COLOR11 -draw 'text 70,60 "Vasil Zlatanov -> +46 723537981 vasil.zlatanov@gmail.com" ' $background ~/.wallpaper.png &
 convert $background ~/.wallpaper.png &
+~/.config/vimb/color-gen
+~/.tools/ratcolor
diff --git a/xinitrc b/xinitrc
index b3a5676..18b7844 100755
--- a/xinitrc
+++ b/xinitrc
@@ -3,7 +3,7 @@
 #  http://www.desertsol.com/~kevin/ratpoison/
 tools_dir=$HOME/.tools
 xtoolwait="timeout --signal=KILL 5 $tools_dir/xtoolwait -noprop"
-workspace="bspc desktop -f"
+workspace="rpws"
 screen_run="$tools_dir/screen_run"
 term="/usr/bin/urxvt -e"
 
@@ -98,10 +98,9 @@ fi
 
 #
 # Startup the window manager
-sxhkd &
 if [ $run_everything = true ]; then
-    bspwm 2>&1 &
-    ~/.config/bspwm/bspwmrc
+    ratpoison 2>&1 &
+#    ~/.config/bspwm/bspwmrc
 #    compton & 
     wmpid=$!
     sleep 1 &
@@ -125,7 +124,7 @@ fi
 # workspace 1 : Ranger workspace
 #     window 1+: Ranger
 if [ $run_everything = true -o $run_workspace = 1 ]; then
-    $workspace ^1
+    $workspace 1
     $xtoolwait $term  ranger 
 fi
 
@@ -133,21 +132,21 @@ fi
 
 # workspace 3 : newsbeuter
 if [ $run_everything = true -o $run_workspace = 3 ]; then
-    $workspace ^2
+    $workspace 3
     $xtoolwait $term newsbeuter
 fi
 
 # workspace 4 : admin workspace
 #     window 1: screen (see screenrc.admin for the screen config)
 if [ $run_everything = true -o $run_workspace = 4 ]; then
-    $workspace ^4
+    $workspace 4
 #    $xtoolwait $term $screen_run admin
 fi
 
 # workspace 5 : School
 #     windows 1: screen notebok
 if [ $run_everything = true -o $run_workspace = 5 ]; then
-    $workspace ^4
+    $workspace 5
     cd $HOME/Sync/notes
 #    $xtoolwait $term $screen_run school
 fi
@@ -161,7 +160,7 @@ fi
 
 # workspace 7 : skype workspace 
 if [ $run_everything = true -o $run_workspace = 7 ]; then
-    $workspace ^6
+    $workspace 7
 #    skype &
 #    number_and_title 0 "skype"
     sleep 6
@@ -179,14 +178,14 @@ fi
 # workspace 9 : email workspace
 #     window 1: mutt 
 if [ $run_everything = true -o $run_workspace = 2 ]; then
-    $workspace ^8
+    $workspace 8
     $xtoolwait $term mutt
 fi
 
 # workspace 10 : irc workspace
 #     window 1: irc 
 if [ $run_everything = true -o $run_workspace = 2 ]; then
-    $workspace ^9
+    $workspace 10
     $xtoolwait $term $screen_run irssi
 #    $xtoolwait $term irssi
 fi
@@ -201,7 +200,7 @@ fi
 # workspace 12 : music workspace
 #     window 1: music 
 if [ $run_everything = true -o $run_workspace = 2 ]; then
-    $workspace ^11
+    $workspace 12
     mpd &
     $xtoolwait $term ncmpcpp
 fi
@@ -209,20 +208,20 @@ fi
 # workspace 13 : volume workspace
 #     window 1: volume 
 if [ $run_everything = true -o $run_workspace = 2 ]; then
-    $workspace ^12
+    $workspace 13
     $xtoolwait $term alsamixer
 fi
 
-# workspace 2 : Uzbl workspace
+# workspace 2 : Vimb workspace
 if [ $run_everything = true -o $run_workspace = 2 ]; then
-    $workspace ^2
-    firefox &
+    $workspace 2
+    vimb &
 fi
 
 # Default workspace: 1(ranger)
 #	$workspace ^1
 
-#~/.tools/panel/panel &
+~/.tools/panel/panel &
 #sleep 2 && rpbar
 
 #######################################################################
-- 
cgit v1.2.3-70-g09d2