Skip to content

Instantly share code, notes, and snippets.

@thiphariel
Last active September 1, 2017 22:04
Show Gist options
  • Select an option

  • Save thiphariel/1797bdaaf9a6fc95c4b151e9fe4f571e to your computer and use it in GitHub Desktop.

Select an option

Save thiphariel/1797bdaaf9a6fc95c4b151e9fe4f571e to your computer and use it in GitHub Desktop.
Workspace Arch Linux (GNOME)
# ~/.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
# ~/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