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
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "gimp", "soffice"} | |
set output_volume_before_shutdown_and_restart to "off" -- "on" or "off" | |
set output_volume to 0 -- you can set from 0 - 100 | |
-- end of user options | |
-- If script is interrupted by dialog "Choose Application" with message "Where is (app name)?", put the app name in the list "KillWindows_with_window". | |
----------------------------------------------- | |
set input_list_choose to {"Kill and Shut Down", "Kill and Restart", "Kill All Windows"} | |
set user_input to (choose from list input_list_choose with prompt "" with title "Script 23.13") |
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
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
set output_volume_before_shutdown_and_restart to "off" -- "on" or "off" | |
set output_volume to 0 -- you can set from 0 - 100 | |
-- end of user options | |
----------------------------------------------- | |
set input_list_choose to {"Kill and Shut Down", "Kill and Restart", "Kill All Windows"} | |
set user_input to (choose from list input_list_choose with prompt "" with title "Script 23.12") |
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
""" | |
Requirements: | |
1. merge_images.py from https://github.com/255/merge-images/blob/master/merge_images.py (and requirements for running script) | |
2. yad (sudo apt install yad) | |
3. AutoKey (with gtk+, install via Ubuntu Software) | |
--------------------------------------------------- | |
tested on AutoKey 0.95.10, Ubuntu 20.04.3 LTS | |
""" |
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
import subprocess | |
import os | |
from datetime import datetime | |
utime = datetime.now() | |
utime2 = utime.strftime("%Y_%m_%d_%H.%M.%S") | |
output_file = '/Users/john/Desktop/output-combine_images_%s.png' % utime2 | |
script_file = '/Users/john/Desktop/ori.py' | |
column = 0 |
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
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
set output_volume_before_shutdown_and_restart to "off" -- "on" or "off" | |
set output_volume to 0 -- you can set from 0 - 100 | |
-- end of user options | |
----------------------------------------------- | |
set input_list_choose to {"Kill and Shut Down", "Kill and Restart", "Kill All Windows"} |
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
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
set output_volume_before_shutdown_and_restart to "off" -- "on" or "off" | |
set output_volume to 0 -- you can set from 0 - 100 | |
-- end of user options | |
----------------------------------------------- | |
set input_list_choose to {"Kill and Shut Down", "Kill and Restart", "Kill All Windows"} |
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
tell application "System Events" | |
set activeApp to (get name of first process where it is frontmost) | |
end tell | |
tell application "System Events" | |
tell process activeApp | |
set docPath1 to value of attribute "AXDocument" of window 1 | |
end tell |
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
{ | |
"title" : "Eject Key - Capture Full Screen | Hold - Selection", | |
"rules" : [ | |
{ | |
"description" : "Eject Key - Capture Full Screen | Hold - Selection", | |
"manipulators" : [ | |
{ | |
"from" : { | |
"consumer_key_code":"eject" | |
}, |
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
-- Adjust resolution in Preview | |
-- open system preferences > keyboard > tab 'Shortcuts' > check 'Use keyboard navigation to move focus between controls' | |
-- user input | |
set resolution to "144" | |
-- end of user input ----------------------------------- | |
if application "Preview" is running then | |
set prun to 1 |
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
brightness-up | |
one key: | |
gsettings set org.gnome.settings-daemon.plugins.media-keys screen-brightness-up "['F4']" | |
key combination: | |
gsettings set org.gnome.settings-daemon.plugins.media-keys screen-brightness-up "['<Ctrl><Shift>B']" | |
clear key: | |
gsettings set org.gnome.settings-daemon.plugins.media-keys screen-brightness-up "['']" |