Created
February 29, 2016 02:50
-
-
Save kousu/4fe951bab45811095c42 to your computer and use it in GitHub Desktop.
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
# do-ing | |
bindsym $mod+H exec dmenu_do "-p Hashapass:" -- "hashapass" | |
#these excessive quotes are because dmenu_do doesn't use getopt, but it should | |
# XXX sr needs a patch to behave itself here!!! | |
# quote_ifs () { | |
#+ echo "$1" | |
#- if [ -z "$1" ]; then return; fi | |
#- perl -e '$ifs=$ENV{IFS} || " "; $arg=shift;if($arg =~/[$ifs]/) { $arg="\"$arg\""; } print "$arg\n"; ' -- "$1" | |
# } | |
# otherwise it fucking quotes your searches, which means "find this entire string" to Google/DuckDuckGo, but only when you have multiple words | |
# but if we *don't* so patch then embedded quotes and other syntax characters will run into bash and crash the thing in unpredictable ways. | |
#XXX is there an elvi that combines W and S, the way the omnibar works in Chrome? | |
bindsym $mod+W exec dmenu_do "-p \\\\"Web:\\\\"" -- "sr W" | |
bindsym $mod+S exec dmenu_do "-p \\\\"Web Search:\\\\"" -- "sr S" | |
bindsym $mod+T exec dmenu_do "-p \\\\"Translate:\\\\"" -- "sr translate" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment