Giter Site home page Giter Site logo

Comments (8)

TheSunCat avatar TheSunCat commented on June 18, 2024 1

You're right, my bad! I'll open a separate issue for this.

from waybar.

apiraino avatar apiraino commented on June 18, 2024 1

Confimed on Sway with Waybar v0.10.3 and kanshi 1.5.1. I'm pretty sure it depends on kanshi rearranging windows after a monitor setup change.

Relevant kanshi config

profile two_monitors {
    output "WOR TERRA LED2211 22129TB000514" position 0,0 mode 1920x1080
    output "LG Display 0x0521 Unknown" position 320,1080 mode 1920x1080
    exec swaymsg workspace 2, move workspace to '"WOR TERRA LED2211 22129TB000514"'
}

profile single {
    output "LG Display 0x0521 Unknown" position 0,0 mode 1920x1080
}

I kind of can reproduce this with:

  1. Starting situation:
    • laptop single monitor
    • one window in workspace 2
    • no other active Waybar workspaces
  2. Plug an external monitor
    • workspace 1 is created on laptop monitor and stays empty (correct)
    • kanshi moves the window to workspace 2 (correct)
    • workspace 2 has no number indicator (bug)

Notes:

  • If I kill kanshi before switching monitor configuration, the issue does not reproduce
  • if I have just one window in workspace 1, after plugging the external monitor workspace 2 is created and stays empty (correct) and does have the workspace indicator
  • Reloading Waybar (killall -SIGUSR2 waybar) will force the correct configuration

I think the culprit here is the kanshi directive move workspace happening slightly after the monitor setup change. For some reason Waybar does not "see" this change. No idea why, must be some Sway machinery 🤷

from waybar.

haug1 avatar haug1 commented on June 18, 2024

After a little more experimentation, I'm pretty sure I've pinned down the problem to relate to the negative positioning on X axis of my one monitor. With these changes the problem is no longer occuring:

+++ b/stow/.config/kanshi/config
@@ -1,31 +1,31 @@
 profile dock {
   output eDP-1 disable
   output "LG Electronics LG HDR 4K 0x00074879" {
     enable
     scale 1.7
-    position -2259,0
+    position 0,0
   }
   output "ASUSTek COMPUTER INC ROG PG27V K3LMQS069452" {
     enable
     scale 1.2
-    position 0,0
+    position 2258,0
   }
 }

UPDATE: Now I think it's not related to negative positioning. Suddenly the issue is happening again after config change. It has still only happened while using kanshi and not way-displays, but I don't know anymore, maybe even that is just coincidental.

from waybar.

spikespaz avatar spikespaz commented on June 18, 2024

This is now happening to me on Hyprland after an update yesterday. I have no workspace buttons, under any condition; they're just gone.

from waybar.

TheSunCat avatar TheSunCat commented on June 18, 2024

This seems related to Hyprland moving its socket directory, at least from the Waybar logs:

Hyprland IPC: Couldn't connect to /tmp/hypr/62ae2b3f40ffce99e1d94384800e9eba6638f447_1714723806_1223999769/.socket.sock.

Hyprland now uses $XDG_RUNTIME_DIR/hypr rather than /tmp/hypr (if the dir exists). See this commit: hyprwm/Hyprland@a5a6480

from waybar.

haug1 avatar haug1 commented on June 18, 2024

Your issue is probably unrelated to this one.

from waybar.

bruceblore avatar bruceblore commented on June 18, 2024

I'm not sure if my issue is related, but for me, the workspace buttons are consistently shown as configured on workspaces with no windows, and disappear once the workspace isn't empty. That seems to be the only factor with my setup

from waybar.

apiraino avatar apiraino commented on June 18, 2024

cc @Alexays if you have insights to share here (thanks!)

from waybar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.