You are not logged in.

#1 2015-02-02 22:43:19

egmram769
Member
Registered: 2015-02-02
Posts: 2

lighthouse - lightweight, scriptable launcher [xcb-based]

An extremely simple dialogue interface with the original intention of being a launcher, but it could feasibly be used in other ways.

Github with readme and gif showing functionality.

Offline

#2 2015-02-03 01:49:36

likytau
Member
Registered: 2012-09-02
Posts: 142

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

Glancing over it quickly, is it just me or is does this effectively work like a supercharged dmenu?
Looks good, except for issue 17. OTOH I don't actually need to input non-ascii characters but I do want to include non-ascii characters in the results list. Is that currently supported properly?

Edit: looks like it is -- providing, of course, that the font in question includes the specified glyph.

EDIT2: trying to do some basic multi-result stuff. The following modification to ~/.config/lighthouse/cmd does not work as expected and I don't understand why:

#!/usr/bin/env bash

while read L; do
  echo "{░▒▓█ $L █▓▒░|$L}"
  SUBBED=$(echo "$L" | sed s/f/z/g)
  echo "{░▒▓ $SUBBED ▓▒░|$SUBBED}"
done

My understanding was that, for example, if I type 'fff', this should show two results, 'fff' and 'zzz' (if you ignore the unicode characters). However, one result is what is actually shown -- 'zzz'.

EDIT3: It seems that the correct way to do the above is with both results on the same line.

EDIT4: I found a bug relating to working directory of child process and have filed it (issue #20)

Last edited by likytau (2015-02-03 03:17:02)

Offline

#3 2015-02-03 02:57:42

egmram769
Member
Registered: 2015-02-02
Posts: 2

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

the original intention was to replicate OS X's spotlight in a far more unix-y fashion.  Ended up looking a lot like a more featureful dmenu

nice catch on behavior in different directories.  I pushed a fix

Issue 17 has been causing me a lot of trouble.  I am not sure the best way to handle keyboard state with xcb and there is little documentation.

Offline

#4 2015-02-03 03:28:46

likytau
Member
Registered: 2012-09-02
Posts: 142

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

Yeah, I'm afraid I don't have much experience with xcb interaction myself either.

Currently, I am hopeful that I'll be able to use this instead of dmenu for most things. Once it's more robust for large numbers of results (cf. issue #21 ,  and a related bug that I haven't figured out a simple reproduction recipe for yet), I will definitely do so -- the ability to use unicode characters and images is a great boost to usability.

Offline

#5 2015-03-13 14:48:49

Franek
Member
Registered: 2010-05-16
Posts: 100

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

This looks very nice! The cmd.py script which is provided with the package crashed for me, complaining about the lack of the "pygoogle" module. As I don't want my launcher to access Google anyway, I just deleted everything google-related from cmd.py. Now it works. (It fails to grab the window focus though, but that may be due to some bug in my WM configuration.)

One downside of the provided cmd.py script compared to dmenu for me: It doesn't seem to compare input to $PATH in order to check for invalid commands, which could be used to indicate typos.

Offline

#6 2015-03-14 16:10:23

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

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

looks really nice but how can I change the order of results?
If I type in  mpv  I get in this order

run 'mpv' in a shell
/path/to/.config/mpv
mpv
execute 'mpv'

I have to use the arrow keys to go down to the 3rd option when I would like it to be the first in the list
the same happens for other apps like, geany or firefox
so at the moment I am typing  exec mpv
Is there a quicker way?

Last edited by chickenPie4tea (2015-03-14 16:11:52)


You can like linux without becoming a fanatic!

Offline

#7 2015-03-15 02:52:02

likytau
Member
Registered: 2012-09-02
Posts: 142

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

chickenPie4tea wrote:

so at the moment I am typing  exec mpv
Is there a quicker way?

Shouldn't 'e mpv' work? Or is there an 'e' in the name of your home directory so it picks that first?

On a different subject, I'm still experiencing the occasional segfault with lighthouse, always after deleting a character. This is on git 1fd7793. I've just upgraded to 8ec5af1 but from the look of the commit log, it's unlikely to change anything.
Just posting this in case anyone else has encountered it.

Offline

#8 2015-03-15 10:09:25

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

Re: lighthouse - lightweight, scriptable launcher [xcb-based]

@likytau    no 'e mpv' doesn't work so still using exec, Have tried putting a . in front was hoping there was a shorter way or that apps would just be first in the list by default instead of running it in a shell or the path to it's config, seems strange to me but maybe it's just working like that on my system?


You can like linux without becoming a fanatic!

Offline

Board footer

Powered by FluxBB