You are not logged in.

#1 2009-06-11 17:41:22

Xappe
Member
Registered: 2008-05-17
Posts: 105

Musca: Using conky as titlebar

Hi,

I've managed to get conky to show the active window title and group name:

#!/bin/bash

g=$( musca -c "silent show groups" | grep  \\* )
w=$(musca -c "silent show windows" | grep \\*)

echo [ "$g" ]-[ "$w" ]

Here is a screenshot:

musca-thumb.png


I'm not much of a scripter, and invoking this every one or two seconds from conky may not be the most resource effective way of doing this.
So, if you have any suggestions for making this more effective (still keeping it quite simple and easy) please tell me!


vanum est vobis ante lucem surgere

Offline

#2 2009-06-11 22:13:08

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Musca: Using conky as titlebar

Xappe wrote:

Hi,

I've managed to get conky to show the active window title and group name:

#!/bin/bash

g=$( musca -c "silent show groups" | grep  \\* )
w=$(musca -c "silent show windows" | grep \\*)

echo [ "$g" ]-[ "$w" ]

Here is a screenshot:

http://xappe.klond.se/dumpar/musca-thumb.png


I'm not much of a scripter, and invoking this every one or two seconds from conky may not be the most resource effective way of doing this.
So, if you have any suggestions for making this more effective (still keeping it quite simple and easy) please tell me!

very nice... would you mind posting your stuff for the top bar too? smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2009-06-13 15:57:29

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Musca: Using conky as titlebar

Here's my conky config for the top bar:

background no
use_xft yes 
xftfont Sans:size=6
xftalpha 1
mail_spool $MAIL
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1220 3
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_margin 4
border_width 1
default_color darkgray
default_shade_color white
default_outline_color darkgray
alignment top_left
gap_x 30
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer right

TEXT
${color white}${offset 12}[MPD $mpd_status] [Random:$mpd_random Repeat:$mpd_repeat] [$mpd_elapsed / $mpd_length]${alignc}root   ${fs_bar 6,50 /}${offset 15}home   ${fs_bar 6,50 /home}${offset 15}adolf   ${fs_bar 6,50 /media/adolf}${alignr}pkgs: ${texeci 3600 perl /home/jon/script/arch-updates/conky-updates.pl} | mem: ${memperc}% | cpu: ${cpu}%${color}

vanum est vobis ante lucem surgere

Offline

Board footer

Powered by FluxBB