A collection of information about accessing raw MultiTouch events on MacOS.
Compiled while building mtif (a MultiTouch interface for common lisp).
A collection of information about accessing raw MultiTouch events on MacOS.
Compiled while building mtif (a MultiTouch interface for common lisp).
| /*==========================================================*/ | |
| /* qutebrowser-ish Vivaldi */ | |
| /*==========================================================*/ | |
| .mac #header { | |
| min-height: 16px !important; | |
| } | |
| .mac #tabs-container.top { | |
| padding-left: 0 !important; | |
| padding-right: 0 !important; | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CGPDeviceCategory</key> | |
| <string>GamePad</string> | |
| <key>CGPDeviceType</key> | |
| <string>PS3</string> | |
| <key>CGPDisplayNameOvr</key> | |
| <string>DualShock3 Analogue Triggers</string> |
Instead of waiting for long commands to finish one can easily get notifications when they are complete. The following procdure shows how to set his in fish shell.
Requirements: fish shell, notify-send, xdotool
vi ~/.config/fish/functions/noti.fish with the content below:function fish_right_prompt
if test $CMD_DURATION
# Check if terminal window is hidden
| # 1. Установить xkbswitch | |
| git clone [email protected]:myshov/xkbswitch-macosx.git ~/.vim/plugin/xkbswitch-macosx | |
| ln -s ~/.vim/plugin/xkbswitch-macosx/bin/xkbswitch /usr/local/bin/xkbswitch | |
| # 2. Установить библиотеку-обёртку | |
| git clone [email protected]:myshov/libxkbswitch-macosx.git ~/.vim/plugin/libxkbswitch-macosx | |
| ln -s ~/.vim/plugin/libxkbswitch-macosx/bin/libxkbswitch.dylib /usr/local/lib/libxkbswitch.dylib |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'tpope/vim-sensible' | |
| Plug 'altercation/vim-colors-solarized' |
| # run as `python conver.py <path-to-your-zsh-history-file> | |
| import sys | |
| output_file = 'fish_converted_history' | |
| zsh_history_file = sys.argv[1] | |
| with open(zsh_history_file, 'r', errors='ignore') as ifile: | |
| result = [] | |
| for cmd in ifile: |
| # Props to user brechmos for sharing the code here: https://www.raspberrypi.org/forums/viewtopic.php?t=55100 | |
| # Tested with the following barcode scanner | |
| # macbook# ioreg -p IOUSB | |
| # <snip> | |
| # | +-o WIT 122-UFS V2.03@14200000 <class AppleUSBDevice, id 0x10000c3c4, registered, matched, active, busy 0 (6 ms), retain 14> | |
| # WIT 122-UFS V2.03: | |
| # Product ID: 0x1010 | |
| # Vendor ID: 0x05fe (CHIC TECHNOLOGY CORP) |