Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2599  / 2 Years ago, wed, february 23, 2022, 4:22:59

I would like Conky to only show up on one viewport/desktop.
I did use the Gnome feature to predefine viewports for specific window classes, but this feature does not work for Conky. Even moving it manually to another viewport does not work, because it jumps back to the first viewport, as it refreshes.



So... is it possible to configure Conky to define the viewport it is displayed on?


More From » gnome

 Answers
1

Just follow these simple steps:




  1. Look through your conky setup for any references to own_window_hints. If there is a reference to 'sticky', remove it as it will cause conky to draw your window on all workspaces (making this entire exercise a moot point)


  2. Look through for references to own_window_type as well. You want this set to 'normal', because it does not enable the 'sticky' from above. For my money, I personally do not use own_window_type, instead preferring to set everything through own_window_hints for finer control of the own window settings.


  3. Determine the size of each viewport. This can be done with the wmctrl program, which you might need to install first. The command to install it is:



    sudo apt-get install wmctrl


    To use it, type into a command window, wmctrl -d. This will give you the overall size of your combined viewports (DG), the viewport location of your current workspace (VP), and a few other details like the dimensions of your current workspace.


  4. Apply a gap_x and gap_y to match these dimensions for each workspace you want to move your conky window over to. For example, if wmctrl is giving you:




    0 * DG: 6720x1050 VP: 0,0 WA: 49,24 1631x1026 N/A





then you might want to start with gap_x of at least 1631 to start with to get onto the second workspace (in this example you have 4 workspaces of 1631x1026 set side by side in a horizontal arrangement.



From there, obviously tinker away to get it precisely where you want it...and happy Conkying!



Source


[#40531] Thursday, February 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
montwim

Total Points: 103
Total Questions: 112
Total Answers: 120

Location: Vietnam
Member since Mon, Mar 14, 2022
2 Years ago
montwim questions
;