Log workspace dispatching

This commit is contained in:
scorpion-26 2023-06-15 00:23:02 +02:00
parent 1f56e6ba15
commit f2dc5a806c

View file

@ -30,7 +30,7 @@ namespace Workspaces
LOG("Error: Called Go to workspace, but Workspaces isn't open!");
return;
}
LOG("Switching workspace: hyprctl dispatch workspace " << workspace);
system(("hyprctl dispatch workspace " + std::to_string(workspace)).c_str());
}
@ -43,6 +43,7 @@ namespace Workspaces
scrollOp = 'm';
}
std::string cmd = std::string("hyprctl dispatch workspace ") + scrollOp + direction + "1";
LOG("Switching workspace: " << cmd.c_str());
system(cmd.c_str());
}
}