Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conky goes above windows but it goes below when windows are floating in #58

Closed
talentlessguy opened this issue Jan 30, 2020 · 14 comments
Closed
Labels
bug Something isn't working

Comments

@talentlessguy
Copy link

Symptom

conky goes above windows but it goes below when windows are floating.

How to Reproduce

  1. Launch Krohnkite
  2. Launch conky with any config including this:
own_window = true,
own_window_transparent = true,
own_window_type = 'dock',
own_window_class = 'Conky',
own_window_argb_visual = true,
  1. See conky above windows

Expected behavior
Conky should run below windows, because it hides when window is in floating mode.

Environment

  • Distro: Manjaro Linux
  • KWin version: 5.17.5
  • Krohnkite version: 0.5
  • List of KWin scripts in use: MinimizeAll

Screenshots

image
image

@talentlessguy talentlessguy added the bug Something isn't working label Jan 30, 2020
@esjeon
Copy link
Owner

esjeon commented Jan 30, 2020

I think it's because Krohnkite sets "keepBelow" for tiled windows. Try disabling "Keep tile windows below" under "Options" tab in the script configuration.

Maybe it's better to keep floating windows "above" than to keep tiled windows "below", because "keep below" is legitimately used in other parts of desktop environments.

@talentlessguy
Copy link
Author

@esjeon I can't find the option keepBelow :/

image

@esjeon
Copy link
Owner

esjeon commented Jan 30, 2020

Oh, you're using v0.5. I was thinking of master branch, which is 1 year ahead of it. I really have to release a new version...

Meanwhile, you can try git version if you want.

@talentlessguy
Copy link
Author

@esjeon I'll better wait till you make a github release 😅

@esjeon
Copy link
Owner

esjeon commented Jan 30, 2020

Yup, I'm actually rushing now. I'm gonna release it today. I actually wanted to write proper documentation and fully implement unit tests before 0.6, but people are basically one year behind... That's really bad...

@esjeon
Copy link
Owner

esjeon commented Feb 1, 2020

Sorry, I completely forgot to mention the release here. v0.6 is uploaded to the KDE store, and this problem should be gone by default.

@talentlessguy
Copy link
Author

@esjeon I updated it but it is still v0.5 🤔

I'll try installing krohnkite from github then

@talentlessguy
Copy link
Author

Installed from repo, conky is still above the tiling window, with or without "keep above" setting enabled.

@esjeon
Copy link
Owner

esjeon commented Feb 7, 2020

Is "Keep Below" set for tiled windows? You can check this from "More Actions" under window action menu(Alt+F3 or R-click on title bar). If it's still set, it's likely that the script is cached by KWin. Try restarting KWin or just re-login.

@talentlessguy
Copy link
Author

talentlessguy commented Feb 7, 2020

I tried both disabling and enabling the setting, restarting kwin. conky is still above all windows, except not tiling ones.

Additional info: conky with own_type set to desktop goes below all windows, but dock (the one I use) is above all tiled windows

@esjeon
Copy link
Owner

esjeon commented Feb 7, 2020

Oh, btw, dock type doesn't set the "Keep Below" by default. You must set window hints manually:

    own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager'

I should've inspected it more carefully. I always copy-paste conky setting, so never realized this line has been there. lol

@talentlessguy
Copy link
Author

@esjeon it still happens, even with own_window_hints, but when u focus on a window it goes below

so it is 50% working, but should go to background without having to focus on a window

@esjeon
Copy link
Owner

esjeon commented Mar 8, 2020

Hmm, it seems like KWin is internally ignoring "keep below" for docks. Yet, this issue has been largely ignored, probably because it doesn't matter if conky is the first program launched and naturally placed at the bottom.

I think the only sane way to keep conky below is this:

  1. own_window_type=normal
  2. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager'
  3. add conky to ignored classes in Krohnkite settings.

@neurofire80
Copy link

Works for me if in conky, set:

  1. background=true
  2. own_window_type=`override`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants