esjeon / krohnkite

A dynamic tiling extension for KWin
MIT License
1.7k stars 72 forks source link

Floating Mode by default??? #118

Open im-AMS opened 4 years ago

TheOPtimal commented 4 years ago

Could you explain what you mean? Do you want floating mode to be enabled by default or is it already enabled by default but you don't like it?

TheJoeSchr commented 4 years ago

Not OP, but while searching for open issues, happen to come upon this.

For a short while now, every new window I open, starts in maximized float mode. It doesn't react to focus change or any other krohnkite shortcut until I minimize and restore it again?

Did something change recently that may be at fault for this?

TheJoeSchr commented 4 years ago

this is my log if it helps

$ kwin_x11 --replace
kwin_core: Compositing is not possible
Cyclic dependency detected between "file:///usr/lib/qt/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml" and "file:///usr/lib/qt/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml"
kf.plasma.core: findInCache with a lastModified timestamp of 0 is deprecated
qml: KROHNKITE: starting the script
qml: [0.117] Config: Config({
  "layouts": [
    {
      "classID": "TileLayout",
      "numMaster": 1,
      "masterRatio": 0.55
    },
    {
      "description": "Monocle",
      "classID": "MonocleLayout"
    },
    {
      "classID": "ThreeColumnLayout",
      "masterRatio": 0.6,
      "masterSize": 1
    },
    {
      "classID": "SpreadLayout",
      "description": "Spread",
      "space": 0.07
    },
    {
      "classID": "StairLayout",
      "description": "Stair",
      "space": 24
    },
    {
      "classID": "QuarterLayout",
      "description": "Quarter",
      "lhsplit": 0.5,
      "rhsplit": 0.5,
      "vsplit": 0.5
    }
  ],
  "maximizeSoleTile": true,
  "monocleMaximize": true,
  "monocleMinimizeRest": false,
  "adjustLayout": true,
  "adjustLayoutLive": true,
  "keepFloatAbove": true,
  "noTileBorder": true,
  "limitTileWidthRatio": 1.8,
  "screenGapBottom": 0,
  "screenGapLeft": 0,
  "screenGapRight": 0,
  "screenGapTop": 0,
  "tileLayoutGap": 15,
  "directionalKeyMode": "dwm",
  "newWindowAsMaster": true,
  "layoutPerActivity": true,
  "layoutPerDesktop": true,
  "floatUtility": true,
  "preventMinimize": false,
  "preventProtrusion": true,
  "pollMouseXdotool": false,
  "floatingClass": [],
  "floatingTitle": [],
  "ignoreActivity": [],
  "ignoreClass": [
    "krunner",
    "yakuake",
    "spectacle",
    "kded5"
  ],
  "ignoreRole": [
    "quake"
  ],
  "ignoreScreen": [],
  "ignoreTitle": []
})
qml: [0.128] arrange
qml: [0.128] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 1) visibles=3
qml: [0.129] Window#commit: state=Tiled
qml: [0.129] KWinWindow#commit: geometry=Rect(0, 0, 2103, 2160) noBorder=true keepAbove=false
qml: [0.129] Window#commit: state=Tiled
qml: [0.129] KWinWindow#commit: geometry=Rect(2118, 0, 1721, 1072) noBorder=true keepAbove=false
qml: [0.129] Window#commit: state=Tiled
qml: [0.129] KWinWindow#commit: geometry=Rect(2118, 1087, 1721, 1072) noBorder=true keepAbove=false
qml: [0.129] onWindowGeometryChanged: window=Window(KWin(600007.pamac-manager))
qml: [0.129] setTimeout/newTimer: numTimers=1
qml: [0.129] arrangeScreen/finished: srf=KWinSurface(0, Default, 1)
qml: [0.15] Window#commit: state=Tiled
qml: [0.15] KWinWindow#commit: geometry=Rect(2118, 1087, 1721, 1072) noBorder=true keepAbove=false
qml: [8.58] onCurrentSurfaceChanged: srf=KWinSurface(0, Default, 2)
qml: [8.58] arrange
qml: [8.581] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 2) visibles=0
qml: [8.581] arrangeScreen/finished: srf=KWinSurface(0, Default, 2)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5786, resource id: 113246213, major code: 18 (ChangeProperty), minor code: 0
qml: [30.775] onWindowAdded: window=Window(KWin(1800007.konsole))
qml: [30.776] arrange
qml: [30.776] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 2) visibles=1
qml: [30.776] Window#commit: state=Maximized
qml: [30.776] KWinWindow#commit: geometry=Rect(0, 0, 3840, 2160) noBorder=true keepAbove=false
qml: [30.777] arrangeScreen/finished: srf=KWinSurface(0, Default, 2)
qml: [30.777] onWindowChanged: window=Window(KWin(1800007.konsole)) comment=unminimized
qml: [30.782] arrange
qml: [30.783] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 2) visibles=1
qml: [30.783] Window#commit: state=Maximized
qml: [30.783] KWinWindow#commit: geometry=Rect(0, 0, 3840, 2160) noBorder=true keepAbove=false
qml: [30.784] arrangeScreen/finished: srf=KWinSurface(0, Default, 2)
qml: [41.596] onWindowAdded: window=Window(KWin(180001b.konsole))
qml: [41.596] arrange
qml: [41.596] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 2) visibles=2
qml: [41.597] Window#commit: state=Tiled
qml: [41.597] KWinWindow#commit: geometry=Rect(0, 0, 2103, 2160) noBorder=true keepAbove=false
qml: [41.598] Window#commit: state=Tiled
qml: [41.598] KWinWindow#commit: geometry=Rect(2118, 0, 1721, 2160) noBorder=true keepAbove=false
qml: [41.598] arrangeScreen/finished: srf=KWinSurface(0, Default, 2)
qml: [41.598] onWindowChanged: window=Window(KWin(180001b.konsole)) comment=unminimized
qml: [41.607] arrange
qml: [41.607] arrangeScreen: layout=TileLayout(nmaster=1, ratio=0.55) srf=KWinSurface(0, Default, 2) visibles=2
qml: [41.608] Window#commit: state=Tiled
qml: [41.608] KWinWindow#commit: geometry=Rect(0, 0, 2103, 2160) noBorder=true keepAbove=false
qml: [41.608] Window#commit: state=Tiled
qml: [41.609] KWinWindow#commit: geometry=Rect(2118, 0, 1721, 2160) noBorder=true keepAbove=false
qml: [41.609] arrangeScreen/finished: srf=KWinSurface(0, Default, 2)
im-AMS commented 3 years ago

Could you explain what you mean? Do you want floating mode to be enabled by default or is it already enabled by default but you don't like it?

yea... it would be great if there is an option where I can enable floating be default right after boot.

I believe the whole point of this script is to be a good middle ground for floating and tiling WM... n wow it serves the purpose well!... thanks for making this!

im-AMS commented 3 years ago

Not OP, but while searching for open issues, happen to come upon this.

For a short while now, every new window I open, starts in maximized float mode. It doesn't react to focus change or any other krohnkite shortcut until I minimize and restore it again?

Did something change recently that may be at fault for this?

actually I had similar issues, a lot of issues on install... I just removed it completely... including the configs... The symlinks etc... then installed it manually as shown in the repo... it worked!!

TheOPtimal commented 3 years ago

I have similar issues aswell.

On November 20, 2020 12:44:05 AM GMT+04:00, Aditya notifications@github.com wrote:

Not OP, but while searching for open issues, happen to come upon this.

For a short while now, every new window I open, starts in maximized float mode. It doesn't react to focus change or any other krohnkite shortcut until I minimize and restore it again?

Did something change recently that may be at fault for this?

actually I had similar issues, a lot of issues on install... I just removed it completely... including the configs... The symlinks etc... then installed it manually as shown in the repo... it worked!!

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/esjeon/krohnkite/issues/118#issuecomment-730626329

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

esjeon commented 3 years ago

A bit late, but I think this can be the source of this problem: kwin_core: Compositing is not possible. There have been reports that the script malfunctions when the compositor is off. I also added a small hack to workaround this, but not really sure if it works for everyone.

TheJoeSchr commented 3 years ago

A bit late, but I think this can be the source of this problem: kwin_core: Compositing is not possible. There have been reports that the script malfunctions when the compositor is off. I also added a small hack to workaround this, but not really sure if it works for everyone.

Yes, indeed. Thank you!

I fixed it by editing ~/.config/kwinrc and toggeling OpenGLIsUnsafe to false

[Compositing]
OpenGLIsUnsafe=false

It seems I never missed my desktop effects and didn't realize compositing was not working. BUT krohnkite is essential! :smile:

Thanks a lot, a real case of better late than never! :tada:

Polisson commented 3 years ago

Yes, also looking for feature to set floating as default mode. Great if Floating would set after boot or login and also for every new virtual desktop.

Eoin-ONeill-Yokai commented 3 years ago

I would also like to have floating mode by default as an option. Basically, I only really need tiling mode for specific tasks and don't want it to get in the way of general computer and user-friendly floating behavior.

A default of floating w/ manual tile mode, with floating windows always-on-top would really compliment the KDE workflow imo.