Skip to content

Instantly share code, notes, and snippets.

@seanbreckenridge
Created September 7, 2020 23:28
Show Gist options
  • Save seanbreckenridge/996126c45a4b3ed10941c7f190ac0605 to your computer and use it in GitHub Desktop.
Save seanbreckenridge/996126c45a4b3ed10941c7f190ac0605 to your computer and use it in GitHub Desktop.
where ttt is used in my dotfiles
[$ grep-dotfiles ttt | clp
/home/sean/.config/i3/config:7:# ttt is littered throughout here, to track i3 bindsyms
/home/sean/.config/i3/config:8:# see https://github.com/seanbreckenridge/ttt/ for more info
/home/sean/.config/i3/config:15:bindsym $mod+Shift+Escape exec --no-startup-id ttt lock-screen
/home/sean/.config/i3/config:47:bindsym XF86Display exec --no-startup-id ttt randomize-wallpaper
/home/sean/.config/i3/config:52:bindsym $mod+g exec --no-startup-id ttt trackpad
/home/sean/.config/i3/config:62:bindsym $mod+Shift+Tab exec --no-startup-id ttt i3binds-prompt
/home/sean/.config/i3/config:109:# wrapper to save history using ttt
/home/sean/.config/i3/config:116:bindsym $mod+n exec --no-startup-id ttt networkmanager_dmenu
/home/sean/.config/i3/config:119:bindsym --release Print exec --no-startup-id ttt screenshot
/home/sean/.config/i3/config:121:bindsym Shift+Print exec --no-startup-id ttt screenshot --full
/home/sean/.config/i3/config:123:bindsym $mod+Print exec --no-startup-id ttt screenshot-to-imgur
/home/sean/.config/i3/config:260:bindsym $mod+d mode "launcher"; exec --no-startup-id ttt i3-notify-launcher
/home/sean/.config/i3/config:263: bindsym a exec --no-startup-id ttt alacritty; mode "default"
/home/sean/.config/i3/config:264: bindsym f exec --no-startup-id ttt firefox-developer-edition; mode "default"
/home/sean/.config/i3/config:265: bindsym t exec --no-startup-id ttt thunderbird; mode "default"
/home/sean/.config/i3/config:266: bindsym e exec --no-startup-id ttt emacs; mode "default"
/home/sean/.config/i3/config:267: bindsym d exec --no-startup-id ttt discord; mode "default"
/home/sean/.config/i3/config:268: bindsym s exec --no-startup-id ttt slack; mode "default"
/home/sean/.config/i3/config:269: bindsym k exec --no-startup-id ttt keepassxc; mode "default"
/home/sean/.config/i3/config:270: bindsym r exec --no-startup-id ttt launch ranger; mode "default"
/home/sean/.config/i3/config:271: bindsym n exec --no-startup-id ttt launch newsboat-force; mode "default"
/home/sean/.config/i3/config:272: bindsym h exec --no-startup-id ttt launch htop; mode "default"
/home/sean/.config/i3/config:273: bindsym v exec --no-startup-id ttt launch keyvol; mode "default"
/home/sean/.config/i3/config:280: bindsym x exec --no-startup-id ttt mediaproxyvideo; mode "default"
/home/sean/.config/i3/config:281: bindsym Shift+x exec --no-startup-id ttt mediaproxyaudio; mode "default"
/home/sean/.config/i3/config:290:bindsym $mod+Return exec --no-startup-id ttt alacritty
/home/sean/.config/i3/config:292:# another binding to start a terminal, incase ttt isnt working for some reason, as a last resort
/home/sean/.config/i3/config:296:bindsym $mod+Shift+Return exec --no-startup-id ttt firefox-developer-edition --new-tab;
/home/sean/.config/ranger/rc.conf:94:map S shell ttt $SHELL
/home/sean/.config/ranger/rc.conf:98:map ! console shell ttt%space
/home/sean/.config/ranger/rc.conf:99:map @ console -p10 shell ttt %s
/home/sean/.config/ranger/rc.conf:101:map $ console shell ttt ./%f
/home/sean/.config/ranger/rc.conf:173:map du shell -p ttt du --max-depth=1 -h --apparent-size
/home/sean/.config/ranger/rc.conf:174:map dU shell -p ttt du --max-depth=1 -h --apparent-size | sort -rh
/home/sean/.config/ranger/rc.conf:175:map yp shell -f ttt echo -n %%d/%%f | xsel -i; xsel -o | xsel -i -b
/home/sean/.config/ranger/rc.conf:176:map yd shell -f ttt echo -n %%d | xsel -i; xsel -o | xsel -i -b
/home/sean/.config/ranger/rc.conf:177:map yn shell -f ttt echo -n %%f | xsel -i; xsel -o | xsel -i -b
/home/sean/.config/ranger/rc.conf:204:map yb shell ttt cp %s %s.bak # backup file
/home/sean/.config/ranger/rc.conf:357:map V console shell ttt nvim%space
/home/sean/.config/ranger/rc.conf:363:map dR shell ttt dragon-drag-and-drop -x %s
/home/sean/.config/ranger/rc.conf:364:map dS shell ttt dragon-sink
/home/sean/.config/ranger/rc.conf:365:map dM shell ttt dragon-sink --mv
/home/sean/.config/ranger/rc.conf:368:map X shell ttt unar %f
/home/sean/.config/ranger/rc.conf:369:map T shell ttt tar -cvzf %f.tar.gz %s
/home/sean/.config/ranger/rc.conf:370:map Z shell ttt zip -r %f.zip %s
/home/sean/.config/ranger/rc.conf:382:map ex shell ttt fileinfo %f | $PAGER
/home/sean/.config/ranger/rc.conf:385:map <C-p> shell ttt plainplay
/home/sean/.config/ranger/rc.conf:386:map P shell ttt play-music
/home/sean/.config/ranger/rc.conf:389:map im shell ttt imgur-uploader %s
/home/sean/.config/ranger/rc.conf:391:map cii shell ttt to-icon %f
/home/sean/.config/ranger/rc.conf:392:map cip shell ttt to-png %f
/home/sean/.config/ranger/rc.conf:393:map ciP shell ttt pinta %f
/home/sean/.config/ranger/rc.conf:396:map ytv console shell ttt youtube-dl%space
/home/sean/.config/ranger/rc.conf:397:map yta console shell ttt youtube-dl -x%space
/home/sean/.config/ranger/rifle.conf:56:# ttt is littered throughout here, to track rifle launces
/home/sean/.config/ranger/rifle.conf:57:# see https://github.com/seanbreckenridge/ttt/ for more info
/home/sean/.config/ranger/rifle.conf:62:ext x?html?, has firefox-developer-edition, X, flag f = ttt firefox-developer-edition --new-tab "$1"
/home/sean/.config/ranger/rifle.conf:70:ext desktop, file, has dex, X, flag f = ttt dex "$@"
/home/sean/.config/ranger/rifle.conf:71:ext pickle, file, has show-pickle = ttt show-pickle "$1" | $PAGER
/home/sean/.config/ranger/rifle.conf:74:mime ^text, label editor = ttt $VISUAL -- "$@"
/home/sean/.config/ranger/rifle.conf:76:mime ^text, label pager = ttt $PAGER -- "$@"
/home/sean/.config/ranger/rifle.conf:77:label editor, ext rs|go|mod|sql|xml|json|csv|tex|py|pl|rb|js|sh|php = ttt $VISUAL -- "$@"
/home/sean/.config/ranger/rifle.conf:78:label pager, ext rs|go|mod|sql|xml|json|csv|tex|py|pl|rb|js|sh|php = ttt $PAGER -- "$@"
/home/sean/.config/ranger/rifle.conf:81:mime .*json = ttt $VISUAL -- "$@"
/home/sean/.config/ranger/rifle.conf:83:directory = ttt ranger "$1"
/home/sean/.config/ranger/rifle.conf:85:file, ext 1 = ttt man "$1"
/home/sean/.config/ranger/rifle.conf:87:ext s[wmf]c, has snes9x-gtk, X = ttt snes9x-gtk "$1"
/home/sean/.config/ranger/rifle.conf:89:ext kdbx, has keepassxc, X, flag f = ttt keepassxc "$1"
/home/sean/.config/ranger/rifle.conf:91:ext sqlite, has sqlitebrowser, X, flag f = ttt sqlitebrowser "$1"
/home/sean/.config/ranger/rifle.conf:98:mime audio/midi, has vlc, X, flag f = ttt vlc -- "$@"
/home/sean/.config/ranger/rifle.conf:100:mime ^video, has mpv, X, flag f = ttt mpv -- "$@"
/home/sean/.config/ranger/rifle.conf:104:mime ^audio, has mpv, X = ttt mpv --no-audio-display -- "$@"
/home/sean/.config/ranger/rifle.conf:110:ext pdf, has okular, path [Bb]ooks, X, flag f = ttt okular -- "$@"
/home/sean/.config/ranger/rifle.conf:112:ext pdf, has mupdf, X, flag f = ttt mupdf "$@"
/home/sean/.config/ranger/rifle.conf:114:ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = ttt gnumeric -- "$@"
/home/sean/.config/ranger/rifle.conf:115:ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = ttt kspread -- "$@"
/home/sean/.config/ranger/rifle.conf:116:ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = ttt libreoffice "$@"
/home/sean/.config/ranger/rifle.conf:117:ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = ttt soffice "$@"
/home/sean/.config/ranger/rifle.conf:118:ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ttt ooffice "$@"
/home/sean/.config/ranger/rifle.conf:119:ext epub, has mupdf, X, flag f = ttt mupdf -- "$@"
/home/sean/.config/ranger/rifle.conf:124:mime image/gif, has mpv, X, flag f = ttt sxiv -a -- "$@"
/home/sean/.config/ranger/rifle.conf:125:mime ^image, has sxiv, X, flag f = ttt sxiv -- "$@"
/home/sean/.config/ranger/rifle.conf:134:ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = ttt atool --list --each -- "$@" | "$PAGER"
/home/sean/.config/ranger/rifle.conf:135:ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = ttt atool --list --each -- "$@" | "$PAGER"
/home/sean/.config/ranger/rifle.conf:136:ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = ttt atool --extract --each -- "$@"
/home/sean/.config/ranger/rifle.conf:137:ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = ttt atool --extract --each -- "$@"
/home/sean/.config/ranger/rifle.conf:140:ext tar|gz|bz2|xz, has tar = ttt tar vvtf "$1" | "$PAGER"
/home/sean/.config/ranger/rifle.conf:141:ext zip, has unzip = ttt unzip -l "$1" | $PAGER
/home/sean/.config/ranger/rifle.conf:142:ext ace, has unace = ttt unace l "$1" | $PAGER
/home/sean/.config/ranger/rifle.conf:143:ext rar, has unrar = ttt unrar l "$1" | $PAGER
/home/sean/.config/ranger/rifle.conf:148:mime ^font, has fontforge, X, flag f = ttt fontforge "$@"
/home/sean/.config/ranger/rifle.conf:153:mime ^ranger/x-terminal-emulator, has alacritty = ttt alacritty -e "$@"
/home/sean/.config/ranger/rifle.conf:154:mime ^ranger/x-terminal-emulator, has termite = ttt termite -x '"$@"'
/home/sean/.config/ranger/rifle.conf:164:mime application/x-sharedlib = ttt fileinfo "$@" | $PAGER
/home/sean/.config/ranger/rifle.conf:165:mime application/x-executable = ttt fileinfo "$@" | $PAGER
/home/sean/.config/ranger/rifle.conf:166:mime application/x-pie-executable = ttt fileinfo "$@" | $PAGER
/home/sean/.config/shortcuts.toml:87:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0")"
/home/sean/.config/shortcuts.toml:103:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
/home/sean/.config/shortcuts.toml:112:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
/home/sean/.config/shortcuts.toml:132:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
/home/sean/.config/shortcuts.toml:488:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $*"
/home/sean/.config/yadm/bootstrap:193:required_binaries=("wait-for-internet" "shortcuts" "exists" "ttt" "tttlog")
/home/sean/.config/yadm/README.md:32:[`ttt`](https://github.com/seanbreckenridge/ttt/) is sprinkled throughout lots of my scripts, it acts as an extension to my shell history, saving commands from `i3` `bindsym`s, or `ranger` commands.
/home/sean/.config/zsh/functions/fzf-edit:11: ttt cd "$chosen_file"
/home/sean/.local/scripts/cross-platform/editor:46: ttt nvim +Explore
/home/sean/.local/scripts/cross-platform/editor:50: m +Explore "$@"
/home/sean/.local/scripts/cross-platform/editor:52: m "$@"
/home/sean/.local/scripts/cross-platform/editor:55: m "$@"
/home/sean/.local/scripts/cross-platform/editor:61: ttt setsid emacs "$@" &
/home/sean/.local/scripts/cross-platform/editor:63: ttt emacs "$@" # alacritty can handle this in terminal
/home/sean/.local/scripts/cross-platform/editor:68: ttt setsid emacsclient -c "$@" &
/home/sean/.local/scripts/cross-platform/editor:70: ttt emacs "$@" # dont use emacsclient on mac
/home/sean/.local/scripts/cross-platform/input-dialog:4:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $@"
/home/sean/.local/scripts/cross-platform/notify:4:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $@"
/home/sean/.local/scripts/cross-platform/openurl:18:command -v tttlog >/dev/null 2>&1 && tttlog "openurl $URL"
/home/sean/.local/scripts/linux/rofi-run:3:# I ran using https://github.com/seanbreckenridge/ttt/
/home/sean/.local/scripts/linux/rofi-run:6:command -v ttt >/dev/null 2>&1 && tttlog "$CMD_TO_RUN"
/home/sean/.local/share/shortcuts/cheat:2:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $*"
/home/sean/.local/share/shortcuts/moviesearch-letterboxd:5:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
/home/sean/.local/share/shortcuts/moviesearch-trakt:5:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
/home/sean/.local/share/shortcuts/tvsearch:5:command -v tttlog >/dev/null 2>&1 && tttlog "$(basename "$0") $SEARCH_STR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment