I want to make the copy dialogue to be "always on top". I have the command

wmctrl -r "window title" -b add,above

All I have to do now is to monitor any windows that opens up. How can I do this? Or is there any other approach to accomplish the task?

  • So essentially what you're asking is " If copy dialog exists, set it to be on top of other windows" Correct ? – Sergiy Kolodyazhnyy Sep 9 '16 at 5:23
  • @Serg Yes exactly, but not checking (polling) it repeatedly. Anyway that I can just fit the above command in the execution code of the copy dialog so that when it starts it executes the above command as well. – Hemant Yadav Sep 9 '16 at 5:27
  • 1
    sorry, but when you say "automatically" it implies polling. We need to continuously check if window with the title you want exists. As for copy dialog itself , you can't just "fit the above command" there. That dialog that used by file manager is written in C, while your command is shell script - it's apple and oranges. – Sergiy Kolodyazhnyy Sep 9 '16 at 5:31

You can do this with CCSM or Compizconfig-settings-manager.

Install it with this command.

sudo apt-get install compizconfig-settings-manager

Open it and enable Window Rules plugin under Window Management section. Go to it's settings, On the Matches tab, There will options for settings various types of rule for windows.

Use the option Above there. You have to add the window type to it. Then the windows of that class will always be above others.

For the dialog window, you need to add type=Dialog in the above field. Like this

above settings

You can even use the + button to grab window class or type. Click on the icon, on the new window, Click on Grab button. The pointer will now become a crosshair icon. Click on the window you want to set rule for.

grab window

Experiment with the class and types to find your exact match.

| improve this answer | |
  • 1
    Worked with "name=file_progress" Thank you!! – Hemant Yadav Sep 9 '16 at 6:56
  • 1
    I was wondering if there is any plugin to set the default opacity as well at per app basis? – Hemant Yadav Sep 9 '16 at 9:21
  • 2
    @HemantYadav If you have another question, You might ask another question :) – Anwar Sep 9 '16 at 9:32
  • Never-mind I figured it out, there was "Opacity, Brightness and Saturation" plugin with Window specific settings :) – Hemant Yadav Sep 9 '16 at 10:11

If you're using standard Ubuntu with Unity desktop (not sure about other desktop environments, might be similar), simply right-click on any window's title bar (this also works for dialog windows like the copy progress dialog) and enable Always on top.

enter image description here

| improve this answer | |
  • 4
    I Don't want to do it manually, I want it to be "Always on Top" ALWAYS without me clicking it and changing the setting – Hemant Yadav Sep 9 '16 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.