1: { bash, feh, wrap, xorg }: 2: 3: wrap { 4: name = "off"; 5: paths = [ bash feh xorg.xrandr ]; 6: script = '' 7: #!${bash}/bin/bash 8: 9: # Run when unplugging laptop, eg. to go to a meeting 10: 11: # Turn off external display 12: bash ~/.screenlayout/unplugged.sh 13: 14: setBg 15: 16: # Set up keyboard 17: sleep 4; date '+%s' > /tmp/keys-last-ask 18: ''; 19: }