mirror of
https://gitlab.com/hyask/swaysome.git
synced 2026-01-28 02:17:18 +01:00
Remove unused 'get_current_workspace_name'
This commit is contained in:
parent
8a6a727b69
commit
776bf3aaf0
1 changed files with 0 additions and 11 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -175,17 +175,6 @@ fn get_current_output_name(stream: &UnixStream) -> String {
|
|||
format!("{}", focused_output_index)
|
||||
}
|
||||
|
||||
fn get_current_workspace_name(stream: &UnixStream) -> String {
|
||||
let workspaces = get_workspaces(&stream);
|
||||
|
||||
let focused_workspace_index = match workspaces.iter().position(|x| x.focused) {
|
||||
Some(i) => i,
|
||||
None => panic!("WTF! No focused workspace???"),
|
||||
};
|
||||
|
||||
workspaces[focused_workspace_index].name.clone()
|
||||
}
|
||||
|
||||
fn move_container_to_workspace(stream: &UnixStream, workspace_name: &String) {
|
||||
let mut cmd: String = "move container to workspace ".to_string();
|
||||
let output = get_current_output_name(stream);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue