]> git.madduck.net Git - etc/xsession.git/commitdiff

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:

improved awesome integration
authormartin f. krafft <madduck@madduck.net>
Sun, 17 Jun 2018 06:49:22 +0000 (08:49 +0200)
committermartin f. krafft <madduck@madduck.net>
Sun, 17 Jun 2018 06:49:22 +0000 (08:49 +0200)

index a5cfab7c72ab05e42f0f1e90c75694f2c4d3f7c7..49325d034690570d63d5ba0913582d5e0ef7ef21 100755 (executable)
@@ -3,10 +3,9 @@
 echo >&2 Executing autorandr postswitch after $DELAY seconds…
-sleep $DELAY
 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