Advertisement
dimon2242

cornerfix

May 2nd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/bin/bash
  2. # .cornerfix.sh
  3. dconf write "/org/compiz/profiles/unity/plugins/scale/initiate-edge" "''"
  4. dconf write "/org/compiz/profiles/unity/plugins/scale/initiate-edge" "'|BottomRight'"
  5.  
  6. # .unlockstart.sh; For autostart nohup ~/.unlockstart.sh &
  7. dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | \
  8. (
  9.   while true; do
  10.     read X
  11.     if echo $X | grep "desktop-lock" &> /dev/null; then
  12.       SCREEN_LOCKED;
  13.     elif echo $X | grep "desktop-unlock" &> /dev/null; then
  14.       ~/.cornerfix.sh;
  15.     fi
  16.   done
  17. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement