Preprocessing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( if | |
( begin | |
( contains ( application_name ) "Gifview Wallpaper" ) | |
) | |
( begin | |
( maximize ) | |
( wintype "desktop" ) | |
( stick ) | |
( geometry "+0+0" ) | |
( println "match" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Do not -o pipefail because xdotool returns exit code 1 if no match | |
set -eu | |
# For debugging: | |
# set -o verbose | |
# When called from the command line, Sublime Text opens files in the most-recently-used window, | |
# and provides no option for controlling this behavior. Work around this by searching for the | |
# window we *don't* want the file opened in, finding the other sublime_text window, then raising |