View previous topic :: View next topic |
Author |
Message |
Ja.KooLit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/166478538863ea259fd1e79.jpg)
Joined: 14 Feb 2022 Posts: 99 Location: Somewhere Over There!
|
Posted: Wed Dec 13, 2023 2:16 pm Post subject: Hyprland wiki |
|
|
Just noticed that it was not updated.. I know I can just edit but need clarification first
Quote: | Switching workspaces by clicking
Put this patch into /etc/portage/patches/gui-apps/waybar/hyprland-clickable-workspaces.patch, then re-emerge gui-apps/waybar.
It makes Waybar's workspaces switcher use hyprctl.
FILE /etc/portage/patches/gui-apps/waybar/hyprland-clickable-workspaces.patch
--- a/src/modules/wlr/workspace_manager.cpp
+++ b/src/modules/wlr/workspace_manager.cpp
@@ -511,7 +511,8 @@ auto Workspace::handle_clicked(GdkEventButton *bt) -> bool {
if (action.empty())
return true;
else if (action == "activate") {
- zext_workspace_handle_v1_activate(workspace_handle_);
+ const std::string command = "hyprctl dispatch workspace " + name_;
+ system(command.c_str());
} else if (action == "close") {
zext_workspace_handle_v1_remove(workspace_handle_);
} else {
Persistent workspaces
A patch for persistent workspaces was recently merged in Waybar's GitHub repository, but it is not available yet in the current versioned package on Gentoo.
Emerge gui-apps/waybar as live ebuild (9999) to get this feature. |
is this patch still necessary? _________________ Oh Yeah!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Wed Dec 13, 2023 3:50 pm Post subject: |
|
|
That patch looks dangerous. What if your workspace is named dangerous; rm -fr /?
The patch will be needed until a released version of Waybar includes the corresponding change. You could check the source of the version you intend to run to see if the change is already present. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
CooSee Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/116667693650fadeb419aaa.jpg)
Joined: 20 Nov 2004 Posts: 1441 Location: Earth
|
Posted: Wed Dec 13, 2023 3:59 pm Post subject: |
|
|
just unpacked the stable waybar-*.22 version - the change was already integrated.
@ Ja.KooLit
sry for not replying to your messages - can't access them atm, due to a little forum hiccup ! _________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ja.KooLit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/166478538863ea259fd1e79.jpg)
Joined: 14 Feb 2022 Posts: 99 Location: Somewhere Over There!
|
Posted: Thu Dec 14, 2023 1:15 pm Post subject: |
|
|
CooSee wrote: | just unpacked the stable waybar-*.22 version - the change was already integrated.
@ Ja.KooLit
sry for not replying to your messages - can't access them atm, due to a little forum hiccup ! |
no worries man... so we can edit the wiki? _________________ Oh Yeah!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|