Advertisement
Guest User

Switch dual monitor workspace switching on and off

a guest
Apr 1st, 2013
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # --------------------------------------------------------- #
  4. # Simple Gnome 3 script to allowing switching dual monitor  #
  5. # workspace switching on and off - jamesbos@gmail.com       #
  6. # --------------------------------------------------------- #
  7.  
  8. value=$(gsettings get org.gnome.shell.overrides workspaces-only-on-primary)
  9.  
  10. SETTRUE='gsettings set org.gnome.shell.overrides workspaces-only-on-primary tru$
  11. SETFALSE='gsettings set org.gnome.shell.overrides workspaces-only-on-primary fa$
  12.  
  13. if [ $value == 'true' ]
  14. then
  15.   eval $SETFALSE
  16.   notify-send 'Dual Monitor Workspace Switching ENABLED'
  17. else
  18.   eval $SETTRUE
  19.   notify-send 'Dual Monitor Workspace Switching DISABLED'
  20. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement