Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 18 Nov 2018, 21:55
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
xlunch
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2610
Location: UK

PostPosted: Mon 11 Sep 2017, 05:42    Post subject:  xlunch
Subject description: updated fork just for Puppy Linux :)
 

http://xlunch.org/

Quote:
This is xlunch, the coolest graphical app launcher for Xorg/X11. It requires only pure Xlib and Imlib2. It allows you to run programs, commands, or simply select something out of a list using your mouse, keyboard, or both! UTF8 is fully supported meaning you can have text of all kinds. The prompt allows you to run arbitrary commands, and it works to filter your entries as well. xlunch is also highly configurable, both in functionality and style, it can even be used as a desktop! See below for more




Features:

Quote:
Available Modes

One time launcher mode - this is default mode. There is no need to specify any command line parameter for this mode. In this mode, xlunch opens as a fullscreen application, and offers a screen with icons to select applications to run, plus command line which serves as a filter for the icons at the same time. Running any app or command ends the launcher. You can also cancel the launcher (by default) with the Esc key, or click with right mouse button.

Desktop mode - this mode is activated with -d. In this mode, xlunch sends itself to the lowest position in the window stack, so all other windows are above it. Your window manager will not have any control over it, so xlunch does not receive any input or focus and it cannot be raised to front. This emulates desktop with icons. In Desktop mode, applications start using fork (as another process) and don't terminate the launcher. xlunch in this mode cannot be terminated (except by killing it with SIGTERM).



By Tomas Matejicek - tomas [at] slax [dot] org

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Last edited by sc0ttman on Fri 31 Aug 2018, 22:14; edited 1 time in total
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12984
Location: Gatineau (Qc), Canada

PostPosted: Mon 11 Sep 2017, 06:47    Post subject:  

Hi scotman.

Does it come with a Coke or a Ginger Ale? Laughing

I tried it, and nah... it can't replace your WM. I can't find any use for it.
(That's just my opinion, of course.)

Although the author Tomaz Something, of Slax fame, is a top developer, he
must've woken up on the wrong side of the bed that day!!!

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2610
Location: UK

PostPosted: Fri 15 Sep 2017, 06:36    Post subject:  

Xlunch could be customised to be a simple, lightweight, searchable frontend for not only Linux apps, but for anything..

I am thinking of making xlunch into a fancy ROM loader for Puppy Arcade.
.. Just do 'for each ROM, make a .desktop file or text entry', put them/it in
a single dir, update xlunch to look in that dir, and viola.

In this way, xlunch could probably also be used as a very fast alternative to Kodi ..
Get a load of local media, videos, music etc, make .desktop files of them,
make xlunch look for those files (not only in /usr/share/applicatins) and ur done..

OR you *could* even write a script to put online streams/torrents into .desktop files,
each one loading the stream through vlc, mpv, (even PeerFlix) etc ...
Then xlunch can list the movies, streams, torrents etc...
You click it, it and the Exec= from te desktop file would play the stream..

Any of these uses would make xlunch the lightest, fastest Kodi alternative,
or Emulation ROM loading frontend there is!

Also, xlunch could serve as a really lightweight alternative to Spotlight,
with the right settings, scripts, hacks and stuff..

Just some ideas on what *could* be done with xlunch..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12984
Location: Gatineau (Qc), Canada

PostPosted: Fri 15 Sep 2017, 16:41    Post subject:  

Hi sc0ttman.

Maybe you can use this for a few things. But generalized? No.

For practical reasons, this concept is absurd if anyone is suggesting XLunch
can replace a window manager -- or a windows manager menu. (hehe)

You have about 250 items as *desktop entries,
plus
How many Internet TV channels?
How many Internet radio stations?
How many executables in /usr/bin?
and in the other "bin" directories.

Where will you put all the little squares on your screen? It just isn't practical.
Which is why I don't see XLunch as a general solution for managing your
box. You'll still need something more fine-tuned.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2610
Location: UK

PostPosted: Fri 31 Aug 2018, 21:09    Post subject: Fork of Xlunch, for Puppy Linux  

Fork of Xlunch, for Puppy Linux
(a work-in-progress)

https://gitlab.com/sc0ttj/xlunch

Install (requires devx installed):

Code:
mkdir -p ~/Gitlab/xlunch
cd ~/Gitlab/xlunch
git clone https://gitlab.com/sc0ttj/xlunch .
make
make install


Run it (with nice defaults):

Code:
xlunch --columns 4


Or use the custom loader script called xlunchr:

Code:
xlunchr --config   # setup all icons as needed (automatic)


Run as desktop background (runs under all windows, never exits):
Code:
xlunchr --desktop

(note, if ROX Pinboard running, click it to show the xlunchr desktop)



Run as a popup menu (runs on top of all windows, runs chosen cmd and exits):
Code:
xlunchr --menu



Run a nice logout menu:
Code:
xlunchr --logout


....

Note: I only tested it on Dpup Stretch 7.5 RC1

STILL TO DO:

Prevent need to click ROX desktop to show 'xlunchr --desktop': .. Fix it to auto disable ROX Pinboard while running, and reload it again once it has exited.

Fix and improve the --menu and --logout features of xlunchr.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12984
Location: Gatineau (Qc), Canada

PostPosted: Fri 31 Aug 2018, 22:29    Post subject:  

Speaking for myself: it's still an awful concept for anyone who likes to look
at inspiring photographs -- and a clean desktop!

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 854
Location: Connecticut, United States

PostPosted: Fri 31 Aug 2018, 22:36    Post subject:  

I have been using the xlunch fork with relatively good success...but not to replace the Rox pin board or menu system...but more of a layer on top using the same background as the jwm background and the use of all the available .desktop apps in one menu that can be sorted or isolated quickly via some text input. I am still experimenting with xlunch and looking for it's true nitch..at the moment it gets started via a desktop link/icon and gets used occasionally......xlunch is not handling the .svg icons very well
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2610
Location: UK

PostPosted: Sat 01 Sep 2018, 06:26    Post subject:  

Yeah I think, aside from a custom frontend for Media Player, Emulation Menus (etc), the best use for xlunch is as a 'spotlight' clone ... A popup menu that is loaded by a hotkey like Ctrl+SPACE, pops up, lets you run 1 command, and disappears again... That is the `xlunchr --menu` option ...

rockedge, If you use `xlunchr --config`, then `xlunchr --menu` (or `xlunchr --desktop`) do you not get ALL icons working? (Like in my screenshot?)

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3539
Location: holland

PostPosted: Sat 01 Sep 2018, 13:00    Post subject: Xlunch .pet packages
Subject description: Just a concept, can be improved !
 

Decided to move Xlunch .pet packages topic to it's own thread because it doesn't really fit with sc0ttman's project.
http://www.murga-linux.com/puppy/viewtopic.php?t=114208

Fred

_________________
Dog Linux website

Last edited by fredx181 on Sun 02 Sep 2018, 04:05; edited 4 times in total
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 854
Location: Connecticut, United States

PostPosted: Sat 01 Sep 2018, 13:09    Post subject:  

sc0ttman Thanks for the tips.
I pulled the latest xlunch-master and built it. Running on Bionic 18.05 with a kernel 4.17.9

Screenshot(2)-600px shows the desktop with xlunch being launched from the icon on the top left of the screen.

Screenshot-600px
Now I have all the icons displaying. This following screen is using the genentries from the latest version and xlunch-3.2.10. This displays nicely.
Code:
/root/my-applications/xlunch-3.2.10/xlunch -g /usr/share/backgrounds/BionicZM-A-logo.png --input /root/.config/xlunch/entries.dsv


Screenshot(1)-600px
now with the latest version of xlunch-master because the text is handled differently the text now bunches up and overlaps
Code:
 xlunchr --menu
Screenshot(2)-600px.png
 Description   
 Filesize   29.42 KB
 Viewed   292 Time(s)

Screenshot(2)-600px.png

Screenshot(1)-600px.png
 Description   
 Filesize   119.24 KB
 Viewed   303 Time(s)

Screenshot(1)-600px.png

Screenshot-600px.png
 Description   
 Filesize   104.01 KB
 Viewed   312 Time(s)

Screenshot-600px.png

Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2610
Location: UK

PostPosted: Sat 01 Sep 2018, 15:42    Post subject:  

rockedge wrote:
sc0ttman Thanks for the tips.

Screenshot(1)-600px
now with the latest version of xlunch-master because the text is handled differently the text now bunches up and overlaps
Code:
 xlunchr --menu

Add the --columns option to your xlunch command to reduce overlapping ...

That is a stop-gap, until I learn enough C (or the fix appears on GitHub) to choose whether or not to truncate the app names, and if so, at what length...

For now, my fork simply does not truncate app names... Which is ugly unless you set the --columns option ...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 854
Location: Connecticut, United States

PostPosted: Sat 01 Sep 2018, 15:58    Post subject:  

I have fixed most of it by reducing the font size --font and adjusting the descriptions in entries.dsv.

I like the --columns option and below is a view of it's use. I think a parser that runs a filter after the entries.dsv creation. The filter then shortens the description entry like this:
Code:
ISOMaster iso file editor;/usr/share/xlunch/svgicons/cdrom.png;isomaster

to
Code:
ISOMaster;/usr/share/xlunch/svgicons/cdrom.png;isomaster


but I am experimenting to see what happens all around.

Code:
xlunch -g /usr/share/backgrounds/BionicZM-A-logo.png --font /usr/share/fonts/default/TTF/FreeSans.ttf/9  --column 8 --input /root/.config/xlunch/entries.dsv
Screenshot(3).png
 Description   
 Filesize   69.36 KB
 Viewed   250 Time(s)

Screenshot(3).png

Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 3539
Location: holland

PostPosted: Sat 01 Sep 2018, 16:48    Post subject:  

sc0ttman wrote:
For now, my fork simply does not truncate app names... Which is ugly unless you set the --columns option ...


I tried by compiling your new xlunch.c, must say, not an improvement IMHO, but unfortunately don't have suggestion for how to truncate "at what length" (I'm really not a C programmer)
EDIT: Btw, isn't it better making changes maybe to co-operate with the author(s) of xlunch ?

Fred

_________________
Dog Linux website

Last edited by fredx181 on Sat 01 Sep 2018, 17:01; edited 2 times in total
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 854
Location: Connecticut, United States

PostPosted: Sat 01 Sep 2018, 16:55    Post subject:  

how does one page or scroll through the different pages of the icons/text? with the --columns set is there a way to reach the other apps page up or down don't do it only if I begin to add text at the prompt like an "x"
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 3539
Location: holland

PostPosted: Sat 01 Sep 2018, 17:16    Post subject:  

rockedge wrote:
how does one page or scroll through the different pages of the icons/text? with the --columns set is there a way to reach the other apps page up or down don't do it only if I begin to add text at the prompt like an "x"

If you mean how it could be possible to scroll, add option:
Code:
--scroll


Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0933s ][ Queries: 13 (0.0166s) ][ GZIP on ]