forked from colonelpanic/dotfiles
track modified and other tweaks.
This commit is contained in:
parent
bc4ce50bd1
commit
664a3023ac
@ -87,7 +87,6 @@
|
|||||||
"ngrep",
|
"ngrep",
|
||||||
"nmap",
|
"nmap",
|
||||||
"node",
|
"node",
|
||||||
"openssh",
|
|
||||||
"openssl",
|
"openssl",
|
||||||
"ossp-uuid",
|
"ossp-uuid",
|
||||||
"pandoc",
|
"pandoc",
|
||||||
@ -95,7 +94,6 @@
|
|||||||
"pcre",
|
"pcre",
|
||||||
"pixman",
|
"pixman",
|
||||||
"pkg-config",
|
"pkg-config",
|
||||||
"portmidi",
|
|
||||||
"pstree",
|
"pstree",
|
||||||
"pv",
|
"pv",
|
||||||
"pypy",
|
"pypy",
|
||||||
|
@ -250,3 +250,13 @@ EOF
|
|||||||
function dirty_talk() {
|
function dirty_talk() {
|
||||||
while true; do talk_dirty_to_me | tee >(cat) | say; done
|
while true; do talk_dirty_to_me | tee >(cat) | say; done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function track_modified {
|
||||||
|
local timestamp_file="/tmp/__track_modified_timestamp__"
|
||||||
|
touch $timestamp_file
|
||||||
|
stat $timestamp_file
|
||||||
|
echo "Press any key to execute find command"
|
||||||
|
read -r key
|
||||||
|
echo "Finding..."
|
||||||
|
find $1 -newer $timestamp_file
|
||||||
|
}
|
||||||
|
@ -61,7 +61,7 @@ function ss() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function set_modifier_keys_for_vendor_product_id() {
|
function set_modifier_keys_for_vendor_product_id() {
|
||||||
local mapping="<dict><key>HIDKeyboardModifierMappingDst</key><integer>$3</integer><key>HIDKeyboardModifierMappingSrc</key><integer>$2</integer></dict>"
|
local mapping="<dict><key>HIDKeyboardModifierMappingSrc</key><integer>$2</integer><key>HIDKeyboardModifierMappingDst</key><integer>$3</integer></dict>"
|
||||||
echo $mapping
|
echo $mapping
|
||||||
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 -array-add "$mapping"
|
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 -array-add "$mapping"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user