Last active
September 1, 2017 22:04
-
-
Save thiphariel/1797bdaaf9a6fc95c4b151e9fe4f571e to your computer and use it in GitHub Desktop.
Workspace Arch Linux (GNOME)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.config/autostart/workspace.desktop | |
| [Desktop Entry] | |
| Name=Workspace | |
| GenericName=Workspace | |
| Comment=Move apps on correct workspace | |
| Exec=/home/thiphariel/workspace.sh | |
| Terminal=false | |
| Type=Application | |
| X-GNOME-Autostart-enabled=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/workspace.sh | |
| #!/bin/sh | |
| google-chrome-stable & | |
| phpstorm & | |
| gitkraken & | |
| discord & | |
| spotify & | |
| # Wait for app booting then move them | |
| sleep 15 | |
| wmctrl -r "PhpStorm" -t 1 | |
| wmctrl -r "GitKraken" -t 2 | |
| wmctrl -r "Discord" -t 3 | |
| wmctrl -r "Spotify" -t 4 | |
| # Add some config | |
| sleep 5 | |
| wmctrl -r "PhpStorm" -b toggle,maximized_vert,maximized_horz | |
| wmctrl -r "GitKraken" -b toggle,maximized_vert,maximized_horz | |
| wmctrl -r "Discord" -b toggle,maximized_vert,maximized_horz | |
| wmctrl -r "Spotify" -b toggle,maximized_ver,maximized_horz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment