shebang instead of she
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export NVPRESENT_ENABLE_SMOOTH_MOTION=1
|
export NVPRESENT_ENABLE_SMOOTH_MOTION=1
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
# autopep8: off
|
# autopep8: off
|
||||||
import gi
|
import gi
|
||||||
gi.require_version("Notify", "0.7")
|
gi.require_version("Notify", "0.7")
|
||||||
from gi.repository import Notify, GLib
|
from gi.repository import Notify, GLib
|
||||||
from datetime import datetime
|
|
||||||
# autopep8: on
|
# autopep8: on
|
||||||
|
|
||||||
SCREENSHOT_DIR = os.path.join(
|
SCREENSHOT_DIR = os.path.join(
|
||||||
@@ -48,7 +48,7 @@ if __name__ == "__main__":
|
|||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
# sleep for a short interval
|
# sleep for a short interval
|
||||||
# neccessary when in "window" mode
|
# neccessary for "window" mode
|
||||||
GLib.usleep(300000) # 0.3 seconds
|
GLib.usleep(300000) # 0.3 seconds
|
||||||
|
|
||||||
# check if successful
|
# check if successful
|
||||||
@@ -60,7 +60,7 @@ if __name__ == "__main__":
|
|||||||
loop = GLib.MainLoop()
|
loop = GLib.MainLoop()
|
||||||
editing = False
|
editing = False
|
||||||
|
|
||||||
# edit callback
|
# callback on default action (edit)
|
||||||
def edit_callback(n, action, user_data):
|
def edit_callback(n, action, user_data):
|
||||||
global editing
|
global editing
|
||||||
editing = True
|
editing = True
|
||||||
@@ -68,7 +68,7 @@ if __name__ == "__main__":
|
|||||||
n.close()
|
n.close()
|
||||||
loop.quit()
|
loop.quit()
|
||||||
|
|
||||||
# close callback
|
# callback on close
|
||||||
def close_callback(n):
|
def close_callback(n):
|
||||||
global editing
|
global editing
|
||||||
if not editing:
|
if not editing:
|
||||||
|
|||||||
Reference in New Issue
Block a user