mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
Log workspace dispatching
This commit is contained in:
parent
1f56e6ba15
commit
f2dc5a806c
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ namespace Workspaces
|
||||||
LOG("Error: Called Go to workspace, but Workspaces isn't open!");
|
LOG("Error: Called Go to workspace, but Workspaces isn't open!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
LOG("Switching workspace: hyprctl dispatch workspace " << workspace);
|
||||||
system(("hyprctl dispatch workspace " + std::to_string(workspace)).c_str());
|
system(("hyprctl dispatch workspace " + std::to_string(workspace)).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ namespace Workspaces
|
||||||
scrollOp = 'm';
|
scrollOp = 'm';
|
||||||
}
|
}
|
||||||
std::string cmd = std::string("hyprctl dispatch workspace ") + scrollOp + direction + "1";
|
std::string cmd = std::string("hyprctl dispatch workspace ") + scrollOp + direction + "1";
|
||||||
|
LOG("Switching workspace: " << cmd.c_str());
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue