This file contains 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 "['']" |
This file contains 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 input | |
set textFile to "" -- ex. "/Volumes/Data/A/file.txt" | |
set des1 to "" -- ex. "/Volumes/Data/A/folder" | |
-- end of user input | |
set textFilep to POSIX file textFile | |
set textFileRead to paragraphs of (read of textFilep) | |
set des1p to POSIX file des1 | |
tell application "Finder" | |
open des1p | |
activate |
This file contains 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
# apps: xclip,xdotool,zenity | |
import time | |
def new_item_categ_other(): | |
keyboard.send_keys("other") | |
time.sleep(1.00) | |
keyboard.send_keys("<tab>") | |
time.sleep(0.1) | |
keyboard.send_keys("<tab>") | |
time.sleep(0.1) |
This file contains 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 input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
set warn_if_lower_than_percent to 74 | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to {keyboard, ":"} | |
set aa_list to aa's text items |
This file contains 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 input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
set warn_if_lower_than_percent to 74 | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to {keyboard, ":"} | |
set aa_list to aa's text items |
This file contains 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 display_dialog_if_magic_mouse_or_magic_keyboard_connected to "on" -- "on" or "off" | |
set keyboard to "Magic Keyboard" -- name of magic keybord: system preferences > bluetooth | |
set mouse to "Magic Mouse 2" -- name of magic mouse: system preferences > bluetooth | |
-- end of user options | |
----------------------------------------------- | |
-- s23.6 - supported: TextMate | |
-- s23.5 - supported: FreeFileSync |
This file contains 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 input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to {keyboard, ":"} | |
set aa_list to aa's text items |
This file contains 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 input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to ":" | |
set aa_list to aa's text items |
This file contains 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 input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to ":" | |
set aa_list to aa's text items |
This file contains 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 display_dialog_if_magic_mouse_or_magic_keyboard_connected to "on" -- "on" or "off" | |
set keyboard to "Magic Keyboard" -- name of magic keybord: system preferences > bluetooth | |
set mouse to "Magic Mouse 2" -- name of magic mouse: system preferences > bluetooth | |
-- end of user options | |
----------------------------------------------- | |
-- s23.6 - supported: TextMate | |
-- s23.5 - supported: FreeFileSync |