]> git.madduck.net Git - etc/xsession.git/blobdiff - .config/autorandr/postswitch

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

run xconfig after profile switch
[etc/xsession.git] / .config / autorandr / postswitch
index a5cfab7c72ab05e42f0f1e90c75694f2c4d3f7c7..fcabf4664ad89fcf3256277c378d195e23622a7c 100755 (executable)
@@ -3,10 +3,13 @@
 DELAY=5
 
 echo >&2 Executing autorandr postswitch after $DELAY seconds…
-sleep $DELAY
-xconfig
 
 if command -v awesome-client >/dev/null; then
-  echo >&2 Restarting awesome…
-  echo "awesome.restart()" | awesome-client
+  echo >&2 Informing the Awesome Window Manager of the new profile…
+  echo "handle_new_autorandr_profile(\"$AUTORANDR_CURRENT_PROFILE\")" |
+    awesome-client >&2
 fi
+
+sleep $DELAY
+
+~/.bin/xconfig >&2