nixers
Useful Gits - Printable Version
+- nixers (https://nixers.net)
+-- Forum: General (https://nixers.net/Forum-General)
+--- Forum: Off topic (https://nixers.net/Forum-Off-topic)
+--- Thread: Useful Gits (/Thread-Useful-Gits)


Useful Gits - DotDev - 10-11-2013

Have you ever found or used a Git that catered to your needs, but didn't have a place to tell anyone about it ... well now there's a thread for that, post your useful gits that you would like people to know about or that would benifit others.

(Music)
Poor Man's Spotify
Description: Search and stream music


RE: Useful Gits - kirby - 10-11-2013

I haven't used it myself, but in browsing about I found ack, basically grep on steroids specifically for searching code, looks very nice.


RE: Useful Gits - DotDev - 15-02-2014

I've always found LDM as a useful Git


RE: Useful Gits - z3bra - 17-02-2014

I stumbled upon http://git.2f30.org the other day. Full of nice programs


RE: Useful Gits - Bones - 02-04-2014

https://github.com/pidsley
https://github.com/dkeg
https://github.com/wuxmedia
https://github.com/machinebacon
https://github.com/DebianJoe


RE: Useful Gits - berk - 02-04-2014

----- BEGIN SHAMELESS PLUG BLOCK -----

If you work with MPD, Last.fm, or ii (the irc client) quite often, you'll find some useful tools in here:

https://github.com/berkoz

----- END SHAMELESS PLUG BLOCK -----


RE: Useful Gits - ajac - 02-04-2014

http://git.suckless.org/ [awesome, useful, SIMPLE software]
http://github.com/baskerville/ [bspwm & sxhkd]


RE: Useful Gits - z3bra - 03-04-2014

You made me discover `sxhkd`. How does it compare to `xbindkeys` ? Is that better ?


RE: Useful Gits - ajac - 03-04-2014

@z3bra ive only used sxhkd, it works by reading a simple config file that has its own (relatively simple) syntax


RE: Useful Gits - z3bra - 03-04-2014

xbindkeys seems to have exactly the same syntax. Hence the question, how is sxhkd better ? does it re-read the file when you update it ? Or use less resources ? I can't see anything on the repo

For reference, my.xbindkeysrc looks like this:

Code:
"urxvt"
    Mod4 + Return

"dwb"
    Mod4 + w

Okay I finally tested it. Here is the comparition:

Code:
# config files complexity:
$ wc *rc
23  34 333 sxhkdrc
24  36 373 xbindkeysrc
47  70 706 total
# pretty much the same. sxhkd does not need quotations when
# passing arguments to the command. That's the only advantage

# resources used by each program
$ ./xbindkeys -f xbinkeysrc
$ ps -eo pcpu,pmem,size,vsize,args | grep xbindkeys
0.0  0.0   312  15868 ./xbindkeys -n -f xbindkeysrc

$ ./sxhkd -c sxhkdrc
$ ps -eo pcpu,pmem,size,vsize,args | grep sxhkd
0.0  0.0   308  15656 sxhkd -c sxhkdrc
# nothing interresting here. They use (almost :P) exactly the same resources

# last point: doing their job
# here are the config file used:
$ cat xbindkeysrc
"urxvt"
    Mod4 + Return
"dwb"
    Mod4 + w

"~/bin/menu.sh"
    Menu

"amixer set Master toggle"
    XF86AudioMute

"~/bin/popup volume"
    XF86AudioMute

$ cat sxhkdrc
mod4 + Return
    urxvt

mod4 + w
    dwb

Menu
    ~/bin/menu.sh

XF86AudioMute
    amixer set Master toggle

XF86AudioMute
    ~/bin/popup volume

# They both start the first four command without problem.
# BUT, only xbindkeys start the last command. It means that sxhkd can't bind
# multiple functions to the same hotkey.

Winner is: `xbindkeys` !

I use the "double function" a lot. Because I use multiple computers, some have media hotkeys, some don't.
So I need a fallback key on those systems.

Also, I use this feature to pop a notification while I'm performing an action. Some that I can level the volume up, and display a nice text in a corner to see the current value.

Sorry sxhkd ! Nice try though :)


RE: Useful Gits - ajac - 04-04-2014

@z3bra lol! nice comparison! i believe sxhkd is a dependency of bspwm which is why people use it


RE: Useful Gits - dkeg - 05-04-2014

^that. @z3bra, great comparison tests! Thanks for that.