1. I have a rule for vscode: bspc rule -a Code follow=on desktop='^4'. If I manually move one vscode instance to another workspace, work in that and than drag’n’drop smth (or any other action initiating popup menu), dialog will appear on 4th workspace rather than on current one. How to fix that?
  2. How to transfer workspaces(applications on them) correctly in the easiest way when switching to external monitor and returning?
  • questionAskerOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Sadly, popup window name is same as for vscode itself. I will have a look on that script, that’s something to begin with. I use only one monitor at time, I don’t use “extended mode”. And what I really want - to transfer already opened applications to workspaces from different monitor: I have vscode opened on 4th workspace on laptop, after I plug in external monitor and setup xrandr for it, than I turn it off and want to continue working with vscode on 4th workspace on latop. Right now this is not possible from the box.

    • www-gem
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      If you’re using only one monitor, simply duplicate and scale your laptop screen instead of using the extended approach.
      To give you a rough idea, this will look to something like this:
      xrandr --output eDP1 --mode 1366x768 --scale 1x1 --output HDMI1 --same-as eDP1 --mode 1920x1080 --scale 0.711x0.711
      Use xrandr to find the monitors names and resolution. The scale option is simply the ratio between your 2 resolutions.