[~] Refactor
This commit is contained in:
parent
c9c24b2c12
commit
37d7f32d0d
@ -88,6 +88,10 @@ try:
|
|||||||
nginx:latest \
|
nginx:latest \
|
||||||
-c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"'
|
-c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"'
|
||||||
''', shell=True)
|
''', shell=True)
|
||||||
|
elif sys.argv[1] == 'wl-screenshot':
|
||||||
|
subprocess.check_call(r'''
|
||||||
|
grim -g "$(slurp)" - | wl-copy
|
||||||
|
''', shell=True)
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user