Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hyprland wiki
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 114
Location: Somewhere Over There!

PostPosted: Wed Dec 13, 2023 2:16 pm    Post subject: Hyprland wiki Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22753

PostPosted: Wed Dec 13, 2023 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1473
Location: Earth

PostPosted: Wed Dec 13, 2023 3:59 pm    Post subject: Reply with quote

just unpacked the stable waybar-*.22 version - the change was already integrated.

8)

@ 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
View user's profile Send private message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 114
Location: Somewhere Over There!

PostPosted: Thu Dec 14, 2023 1:15 pm    Post subject: Reply with quote

CooSee wrote:
just unpacked the stable waybar-*.22 version - the change was already integrated.

8)

@ 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum