]> git.madduck.net Git - etc/xsession.git/blob - .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:

switch xsetup to autorandr-based
[etc/xsession.git] / .config / autorandr / postswitch
1 #!/bin/sh
2
3 DELAY=5
4
5 echo >&2 Executing autorandr postswitch after $DELAY seconds…
6 sleep $DELAY
7 xconfig
8
9 if command -v awesome-client >/dev/null; then
10   echo >&2 Restarting awesome…
11   echo "awesome.restart()" | awesome-client
12 fi