Useful Gits - Off topic

Users browsing this thread: 3 Guest(s)
DotDev
Long time nixers
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
kirby
Long time nixers
I haven't used it myself, but in browsing about I found ack, basically grep on steroids specifically for searching code, looks very nice.
DotDev
Long time nixers
I've always found LDM as a useful Git
z3bra
Grey Hair Nixers
I stumbled upon http://git.2f30.org the other day. Full of nice programs
BANGARANG, MOTHERFUCKER
Bones
Members
berk
Long time nixers
----- 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 -----
ajac
Members
http://git.suckless.org/ [awesome, useful, SIMPLE software]
http://github.com/baskerville/ [bspwm & sxhkd]
z3bra
Grey Hair Nixers
You made me discover `sxhkd`. How does it compare to `xbindkeys` ? Is that better ?
BANGARANG, MOTHERFUCKER
ajac
Members
@z3bra ive only used sxhkd, it works by reading a simple config file that has its own (relatively simple) syntax
z3bra
Grey Hair Nixers
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 :)
BANGARANG, MOTHERFUCKER
ajac
Members
@z3bra lol! nice comparison! i believe sxhkd is a dependency of bspwm which is why people use it
dkeg
Members
^that. @z3bra, great comparison tests! Thanks for that.
work hard, complain less