You are not logged in.
Pages: 1
Just started using interrobang
https://bbs.archlinux.org/viewtopic.php?id=160182
anyone willing to post their config file to share ideas on usage, basically so I can see how I can get more out of it!
so far I use it to
launch websites
launch apps
do various web searches of imbd archwiki etc
my config:
## COMMON BANGS AND COMPLETION OPTIONS
bang term = urxvt -e %s
bang ww = google-chrome-beta %s
bang ws = google-chrome-beta "www.google.com/search?q=%s"
bang movie = google-chrome-beta 'http://www.imdb.com/find?q=%s'
#bang movie = google-chrome-beta 'http://www.imdb.com/find?s=all&q=%s'
bang rotten = google-chrome-beta "http://www.rottentomatoes.com/search/?search=%s"
bang archwiki = google-chrome-beta "https://wiki.archlinux.org/index.php?search=%s"
#bang ddg = firefox https://duckduckgo.com/?q=%s
bang calc = echo "interrobang ignored \"%s\""
bang ? = echo "interrobang ignored \"%s\""
bang yt = google-chrome-beta "www.youtube.com"
bang funny = leafpad '/home/dka/text-files/funnysymbols.txt'
# tab completions
tab default = percontation "%s" %s | sort -u
#below tab completion also works but percontation seems better
#tab default = compgen -P "%s" -cf %s
# below linked to calc bang,remember to change the bang from ! to ; or whatever before the word calc(twice)
tab calc = str="%s%s"; echo ";calc $(echo ${str#\;calc} | bc -l)"
# below is linked to the tab bang above so you type ;? to see a list of your bangs
tab ? = ignore="%s%s"; awk '/^bang/ {print "!"$2" ";}' ~/.config/interrobang/config
You can like linux without becoming a fanatic!
Offline
Great idea! I found out about interrobang recently and I like the concept. Haven't had time to create some bangs though...
Maybe an addition to this thread: How do you launch interrobang?
I currently launch interrobang with a single customizable button on my key-board.
At first I launched it from terminal, which made me wonder why I would need the !term bang at all...
Offline
I have sxhkd running all the time for all my keybindings so I run it with a keybinding AltGR-o
You can like linux without becoming a fanatic!
Offline
Hi,
I just recently stubled upon this quite useful piece of software and was in need of a really really simple timer.
So here is my first contribution:
bang tt = sleep $(echo "%s" | bc) ; beep -f 3000 -d 250 -r4
Obviuosly, this requires beep to be installed.
»A keystroke is worth a thousand clicks«
Offline
I'm glad you find it useful lino - and I'm happy it still works. I still use interrobang daily, but I haven't done any code maintenance in quite a long time. I actually have a full rewrite to fix a few nagging issues that has been "half done" for a very long time.
In addition to beep, that bang would also require bc. I'm not experienced with bc, so I may be missing something, but I'm not really sure what it is doing in this case. Wouldn't the following be equivalent:
bang tt = sleep %s ; beep ...
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes, you are right, bc is needed too.
But I'm lazy, and if I want my timer to sleep for 7 minutes I enter 7*60 so bc does the calculating for me.
Thats the only reason.
I've discovered interrobang just a week ago and I like it very much! I used to use dmenu, but yesterday I changed the hotkey from dmenu to interrobang!
Looking forward to any additions you may be planning. I'll also have a look at the source. I'm a webdeveloper, but I've had some encounters with C in the past. So if I'm getting some free time, maybe i could contribute a little..
Have a nice day!
»A keystroke is worth a thousand clicks«
Offline
if I want my timer to sleep for 7 minutes I enter 7*60 so bc does the calculating for me.
That makes sense, except you are underestimating `sleep', the following do what they look like they should:
sleep 7m
sleep 1d 3h 5m
sleep 2m 45s
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
That makes sense, except you are underestimating `sleep'
Bummer! I wasnt aware of that. You never stop learning..
Thank you for that nudge in the right direction!
»A keystroke is worth a thousand clicks«
Offline
I'm bored at work (selfemployed), so I did this little fella to actually let me know WHY I needed this timer.
bang tn = ARG="%s"; TIME=$(echo ${arg} | cut -d'|' -f1) ; MSG=$(echo ${arg} | cut -d'|' -f2) ; sleep $TIME && ( notify-send 'Timer vorbei:' $MSG;beep -f 3000 -d 100 -r 3 )
With this one I type a string like "7m|Your tea is ready", get a beep AND a notification. Nice one!
My shell-skills are not top of the show, but hey, I've got plenty of fun with your program!
Thanks a lot for that!
»A keystroke is worth a thousand clicks«
Offline
Pages: 1