WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.29k stars 48 forks source link

Static workspaces #176

Closed 33KK closed 1 year ago

33KK commented 1 year ago

Please fill out the following:

I suggest to simply add a command like this:

workspace <name> static|persistent yes

And create the workspace on config load and NOT destroy it when it is empty.

i3 (https://github.com/i3/i3/issues/1902#issuecomment-138110166) and therefore sway (https://github.com/swaywm/sway/issues/7220 & https://github.com/swaywm/sway/issues/4928#issuecomment-1066073480) refuse to add this for "look & feel" reasons or something, the i3bar-specific "solution" implemented by i3 is not implemented by sway (https://github.com/swaywm/sway/issues/7419)

ErikReider commented 1 year ago

You can most probably do this through a few simple scripts :)

33KK commented 1 year ago

You can most probably do this through a few simple scripts :)

Not nearly as convenient and easy, and bar-specific setup necessary, which isn't even possible on swaybar I think

WillPower3309 commented 1 year ago

Workspaces visible on the bar can be done in waybar: https://github.com/Alexays/Waybar/blob/master/man/waybar-sway-workspaces.5.scd#L63-L67

WillPower3309 commented 1 year ago

Think I'm gonna close this issue as not planned, the waybar config info I sent should get you the visual changes you wanted, and it'd be trivial to make a script that increments / decrements your workspace and is invoked via a keybind from your sway config. Generally we don't implement features that could be done in the ipc, but I really appreciate the request! Hopefully you're able to get the functionality you want

33KK commented 1 year ago

I have actually implemented this already, trying to get it merged into upstream sway, but it probably will get rejected. If this doesn't get merged anywhere I'll just keep it as a fork https://github.com/swaywm/sway/pull/7631