You are not logged in.

#1 2015-10-25 09:32:46

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Interrobang(share config?)

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

#2 2015-11-25 13:46:12

LCvanDinteren
Member
From: Netherlands
Registered: 2015-10-27
Posts: 153

Re: Interrobang(share config?)

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

#3 2015-11-25 13:50:17

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: Interrobang(share config?)

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

#4 2016-03-20 16:07:58

lino
Member
From: Wanne-Eickel
Registered: 2009-04-06
Posts: 16

Re: Interrobang(share config?)

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

#5 2016-03-20 16:12:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Interrobang(share config?)

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

#6 2016-03-21 09:54:08

lino
Member
From: Wanne-Eickel
Registered: 2009-04-06
Posts: 16

Re: Interrobang(share config?)

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. smile

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! smile


»A keystroke is worth a thousand clicks«

Offline

#7 2016-03-21 11:16:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Interrobang(share config?)

lino wrote:

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

#8 2016-03-21 14:05:05

lino
Member
From: Wanne-Eickel
Registered: 2009-04-06
Posts: 16

Re: Interrobang(share config?)

Trilby wrote:

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

#9 2016-03-21 15:32:18

lino
Member
From: Wanne-Eickel
Registered: 2009-04-06
Posts: 16

Re: Interrobang(share config?)

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! smile
Thanks a lot for that!


»A keystroke is worth a thousand clicks«

Offline

Board footer

Powered by FluxBB