You are not logged in.
Pages: 1
Hey there,
i'm using Crunchbang for a few months now and since i'm finally comfortable with all my setups i started to play around with the look&feel.
Is there any way to add an indicator that shows me wich workspace i'm on? At the moment i'm using only 2, but i plan to upgrade to 3 or 4, so having one would indeed be a nice feature.
I looked for tint2 solutions, but couldn't find any, so maybe you guys can help me out.
I had the following ideas:
1. since i don't have borders around my tint panels, the active ws's taskbar could get a border
2. a written text in the tint taskbars like "one for ws 1 etc." with the text getting "highlighted" when ws is active
3. a little indicator in the free space next to my tint panel (i'd prefer numbers) with the corresponding number of the workspace highlighted
any ideas?
thanks in advance
Last edited by Joe-Doe (2010-01-29 10:41:20)
Cheers,
Joe
Offline
i know you can do it in conky
ps if that isn't what you want, what youre looking for is a 'pager' if you need to google.
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
In conky
http://blog.conky.be/2009/09/15/feature … g-desktop/
pagers:
http://crunchbanglinux.org/wiki/netwmpager_howto
http://urukrama.wordpress.com/openbox-guide/#Pagers
Last edited by Hanna (2009-11-06 20:56:20)
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
First of all, thanks to both of you
The conky thing looks like it could do what i tried to describe with my third idea.
But since i'm not that good with conky and hanna has the title conky queen...
Would it be possible to use digits (or words) instead of the squares, to indicate the active desktop by changing the font color?
I must admit i'm a little helpless with this, so any hints would be highly appreciated...
p.s. i don't need to make a second conky panel for that, do i?
Cheers,
Joe
Offline
You don't need another conky panel (unless of course if you want), you can just add this in your current conkyrc where you want it.
This would show the number of desktop up to four desktop (if you need more, you can obv add them), and change the colour (BD3535) to what is best for you.
${if_match ${desktop}==1}${color BD3535}1${else}${color}1${endif} ${if_match ${desktop}==2}${color BD3535}2${else}${color}2${endif} ${if_match ${desktop}==3}${color BD3535}3${else}${color}3${endif} ${if_match ${desktop}==4}${color BD3535}4${else}${color}4${endif}
It will look something like this:
ps... I think londonali would be a lot better conky queen than I am...
Last edited by Hanna (2009-11-06 21:33:46)
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
Wow....thank you soo much!!!
Are there any settings i need to change though, because it shows the digits, but there's no color changing.
I also simplified the code to simply show 1 if desktop 1 and 2 if desktop 2, just to test if i broke something while copy&paste'ing (happens), but it's the same...
Cheers,
Joe
Offline
^could you post here what you have exactly now?
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
# Output
##############################################
TEXT
SYSTEM INFO:
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%
Updates:$alignr${execi 3600 aptitude search "~U" | wc -l}
SHORTCUT KEYS:
${hr}
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+space$alignr Main Menu
Super+tab$alignr Client Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+c$alignr Clock
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+u$alignr System Update
Super+x$alignr Logout
PrtSc$alignr Screenshot
# ${if_match ${desktop}==1}${color BD3535}1${else}${color}1${endif} ${if_match ${desktop}==2}${color BD3535}2${else}${color}2${endif} ${if_match ${desktop}==3}${color BD3535}3${else}${color}3${endif} ${if_match ${desktop}==4}${color BD3535}4${else}${color}4${endif}
${if_match ${desktop}==1}${color white}1${else}${color white}2${endif}
It's the basic settings, i only added the Update line and the pager
Cheers,
Joe
Offline
You should have it like this... you can't really simplify it, at least I can't come up with anything simpler that would work (if you want to see 1 2 and then when you are on desktop 1 it's different colour than 2).
${if_match ${desktop}==1}${color fffff}1${else}${color}1${endif} ${if_match ${desktop}==2}${color ffffff}2${else}${color}2${endif}
This would show just the number of the desktop:
${if_match ${desktop}==1}1${endif} ${if_match ${desktop}==2}2${endif}
btw. I have friend who lives in Bochum
Last edited by Hanna (2009-11-06 22:19:14)
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
Really? Well i know a Hanna from Finland...
Just kidding
Where exactly does he come from?
I added this:
${if_match ${desktop}==1}1${endif} ${if_match ${desktop}==2}2${endif}
But it still only shows the two numbers next to each other, no changes when switching desktops...
Cheers,
Joe
Offline
^It just crossed in my mind, what version of conky you have (in terminal: conky -v), ${desktop} requires conky 1.7.2.
You find the newest conky here: https://launchpad.net/~norsetto/+archive/ppa
Last edited by Hanna (2009-11-06 22:37:00)
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
Alright...that's embarassing..
Cheers,
Joe
Offline
Well, I should have remembered it earlier.
HANNA (without "h" in the end) likes green and #!
Also know as ultraturquoise online
Offline
I have that in my conky:
Bureau ${color red}${exec wmctrl -d | grep \* | awk '{print $10}'}
but for this to work you need to install wmctrl by "sudo apt-get wmctrl" in a terminal.
For info "bureau" just mean desktop in french
Offline
I have that in my conky:
Bureau ${color red}${exec wmctrl -d | grep \* | awk '{print $10}'}
but for this to work you need to install wmctrl by "sudo apt-get wmctrl" in a terminal.
For info "bureau" just mean desktop in french
you know you don't need grep for that.
wmctrl -d | awk '/\*/ {print $10}'
would do it
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
Right, it works
I am far to be a specialist, I adapted the command from another one to do what I wanted but I don't understand everything
Offline
Right, it works
I am far to be a specialist, I adapted the command from another one to do what I wanted but I don't understand everything
don't worry about it, i quite like awk so i see things like that all the time
if your interested this is quite a good resource for awk
http://awk.info/?index
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
I have that in my conky:
Bureau ${color red}${exec wmctrl -d | grep \* | awk '{print $10}'}
but for this to work you need to install wmctrl by "sudo apt-get wmctrl" in a terminal.
For info "bureau" just mean desktop in french
I love it, thanks !
J'aime beaucoup, merci
My Fluidr (= Fickr) : http://www.fluidr.com/photos/kookadimi/sets
Offline
Hi,
From Conky 1.7.2, there are these new commands:
desktop - Number of the desktop on which conky is running or the message "Not running in X" if this is the case.
desktop_name - Name of the desktop on which conky is running or the message "Not running in X" if this is the case.
desktop_number - Number of desktops or the message "Not running in X" if this is the case.
Thus it is quite simply leave the name of the desktop and also display the number!
64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1 Spring Free KDE, Mandriva 2010.1 Free KDE, #! Crunchbang 10 Alpha 2 Statler
Offline
Alright, everything works now, thanks a ton!
One problem though...i wanted to setup a CrunchBang logo in my conky, while thinking about it i realized that you can't use the "'#" symbol...so is there anyway to tell the script to read on after the "#" symbol?
Cheers,
Joe
Offline
Hi, you just have a \ before the # set, then it is read as a normal character!
blablabla \#
Display:
blablabla #
Last edited by searchOne (2009-11-07 14:17:05)
64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1 Spring Free KDE, Mandriva 2010.1 Free KDE, #! Crunchbang 10 Alpha 2 Statler
Offline
Hi, you just have a \ before the # set, then it is read as a normal character!
blablabla \#
Display:
blablabla #
this is the only problem ive found with crunchbang.
i mean what happens if youre writing a document about crunchbang and python?
you can't call it '#! /usr/bin/python'
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
The new version of Conky have cool news items !
My Fluidr (= Fickr) : http://www.fluidr.com/photos/kookadimi/sets
Offline
Nicky wrote:Right, it works
I am far to be a specialist, I adapted the command from another one to do what I wanted but I don't understand everything
don't worry about it, i quite like awk so i see things like that all the time
if your interested this is quite a good resource for awk
http://awk.info/?index
Thanks, I put it in my to read list
Offline
Nicky wrote:I have that in my conky:
Bureau ${color red}${exec wmctrl -d | grep \* | awk '{print $10}'}
but for this to work you need to install wmctrl by "sudo apt-get wmctrl" in a terminal.
For info "bureau" just mean desktop in french
I love it, thanks !
J'aime beaucoup, merci
De rien
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat