Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to create new Workspace #118

Open
DanitiKain opened this issue Aug 7, 2018 · 3 comments
Open

Command to create new Workspace #118

DanitiKain opened this issue Aug 7, 2018 · 3 comments

Comments

@DanitiKain
Copy link

gsettings set org.cinnamon.desktop.wm.preferences num-workspaces 4

I found this command will create whatever number you specificy. However I want a way to create a new workspace without having to know how many are already created. The use case for this is to create a shortcut key to add a new workspace no matter how many exist already. I do this in xfce as it has a command to create a new workspace.

@JosephMcc
Copy link
Contributor

Not sure how you are going about linking this to a shortcut key. If you are doing some sort of script you could read the value of the key and then set it to the current value +1. There is also an _addWorkspace() function in Main.js.

@smurphos
Copy link

You can use this command in a keyboard shortcut to create and jump to a new workspace.

sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.JumpToNewWorkspace>/dev/null'

@mtwebster
Copy link
Member

mtwebster commented Dec 12, 2019

Just fyi, I wrote a script a while back to access cinnamon's dbus interface (I got tired of having to figure out dbus-send every time I wanted to use it).

So you could just do:

 /usr/share/cinnamon/cinnamon-dbus-command JumpToNewWorkspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants