LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2011, 09:04 AM   #1
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Rep: Reputation: 11
Different Conkys on Each Desktop


Is it possible to use a different Conky set up on each different desktop?
 
Old 07-21-2011, 10:19 AM   #2
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
I'm taking it that's a no.
 
Old 07-21-2011, 10:22 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I know with KDE you can have different wallpapers on each desktop, but I've no idea about conky.
 
Old 07-21-2011, 11:09 AM   #4
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Yeah, it would make sense that way. If it's like that it's compatible with just about every GUI and desktop (if somebody has more than one).
 
Old 07-21-2011, 01:15 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Do you mean different desktop environments or different virtual desktops?
 
Old 07-21-2011, 01:33 PM   #6
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Different virtual desktops.
 
Old 07-21-2011, 01:35 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
See if there's any option for multiple virtual desktops in conky's config file. I haven't used it for ages.
 
Old 07-21-2011, 02:40 PM   #8
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
I've looked through it a little, and with my minor amount of knowledge in Computer-related materials, I'm afraid I'm not finding anything that can allow that. Although it is possible, I would think it would be time-consuming to do this. :/ I guess I'll just have to use one conky for all.
 
Old 08-16-2011, 10:45 AM   #9
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Quote:
Originally Posted by Konphine View Post
Is it possible to use a different Conky set up on each different desktop?
To the best of my knowledge: not without a bunch of playing. I do my running them manually "after I boot up"

HOWEVER ... If there's a shell, there's a way.

I don't know if this is possible (I changed to D-2 and ran it manually):

Create a cron job that changes to desktop 2 and runs a conky:
  • change to desktop 2 && conky -c ~/conky/SunMoon_D2
to run once when the computer starts. If you can do that you can do other desktops as well.

Using this:
Code:
background no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_title SunMoon
own_window_class SunMoon
Desktop 1 & 3


Desktop 2


If that type of "cron job" is not possible use an "if" statement with the desktop command:

Code:
TEXT
${desktop}

${if_match ${desktop}==1}This is desktop 1
CPU: ${cpu} %\
${else}${if_match ${desktop}==2}This is desktop 2
IP Address: ${addr eth0}\
${else}${if_match ${desktop}==3}This is desktop 3
├─┬─► Memory
│ ├─ Total     ${memmax}
│ ├─ In Use    ${mem} (${memperc} %)
│ ├─ Free      ${memfree}
│ ├─ Up to     ${memeasyfree} freed easily
│ ├─ Cached    ${cached}
│ ├─ Buffered  ${buffers} 
│ └─► Swap
│     ├─ Total ${swapmax}
│     ├─ Used  ${swap} - ${swapperc} %
│     └─ Free  ${swapfree}${endif}${endif}${endif}
Desktop 1:


Desktop 2:


Desktop 3:


NOTE: Look at the Desktop 1 image again: CPU = 15% for this little exercise. If the cron job is possible that would be a better option I would think.
 
Old 01-01-2012, 02:28 PM   #10
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Quote:
Originally Posted by Konphine View Post
Is it possible to use a different Conky set up on each different desktop?
If you are still here, still interested - yes - it is possible.
desktop 1 = 0 desktop 2 = 1 desktop 3 = 2
Code:
#!/bin/bash

(wmctrl -s 2 && conky -c ~/Conky/Forecast_v6-2.conky) &
(wmctrl -s 2 && conky -c ~/Conky/OB_vcal6.2.lua.conky) &
(sleep 5s)
(wmctrl -s 1 && conky -c ~/Conky/OB_Vnstats.conky) &
(sleep 5s)
(wmctrl -s 0 && conky -c ~/Conky/OB_1-liner-bot.conky) &
(wmctrl -s 0 && conky -c ~/Conky/OB_Cal-br.conky) &

exit
 
Old 01-01-2012, 11:04 PM   #11
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Hello there. Yes I'm still here, but that post was quite some time ago. Thank you for your response.
 
Old 01-03-2012, 07:29 AM   #12
Sector11
Member
 
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132

Rep: Reputation: Disabled
Quote:
Originally Posted by Konphine View Post
Hello there. Yes I'm still here, but that post was quite some time ago. Thank you for your response.
Yes it was but I only just found out about the answer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Thinking about Desktop Environments, Window Managers and how to get a lightweight desktop LXer Syndicated Linux News 0 07-20-2011 12:20 AM
ubuntu-desktop vs. kubuntu-desktop vs. xubuntu-desktop vs. lubuntu-desktop vs. unity Kenny_Strawn Ubuntu 18 05-13-2011 09:20 AM
LXer: Gran Canaria Desktop Summit: Akonadi for the Integrated Desktop LXer Syndicated Linux News 0 07-05-2009 05:00 PM
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration