Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #185881

Re: which display manager would you suggest for Stretch?

From kamaraju kusumanchi <raju.mailinglists@gmail.com>
Newsgroups linux.debian.user
Subject Re: which display manager would you suggest for Stretch?
Date 2017-08-25 07:20 +0200
Message-ID <uifcd-8iW-1@gated-at.bofh.it> (permalink)
References <uhTbI-2lw-15@gated-at.bofh.it> <uhTY6-2SA-11@gated-at.bofh.it> <uhWMi-4E5-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 24, 2017 at 5:35 AM, Michael Lange <klappnase@freenet.de> wrote:
> Hi Raju,
>
> On Thu, 24 Aug 2017 02:37:41 -0400
> kamaraju kusumanchi <raju.mailinglists@gmail.com> wrote:
>
> (...)
>> The popsort.py utility is written by me. It can be downloaded from
>> https://gitlab.com/d3k2mk7/rutils/blob/master/bin/popsort.py  and is
>> documented at
>> http://raju.shoutwiki.com/wiki/Sort_output_of_apt-cache_search_by_popularity .
>> I would appreciate if you have any feedback/comments/criticism on this
>> script (no matter how small you think it is).
>
> very nice indeed, thanks for sharing!

You are welcome.

> Only (very small) "criticism" (just because you were asking): I think the
> output would be more "intuitive" to read if the most popular package
> appears in the output first. I think adding a "sorted_lines.reverse()" in
> sort_lines() just before the "return" statement would do that. But maybe
> this is only my personal preference at all and other people like it
> better the way it is.

Thanks for the feedback. I added this under a new option,
--most-popular-first. So, if you do

% apt-cache search display manager --names-only | popsort.py
--most-popular-first
1595 gdm3 - GNOME Display Manager
1999 lightdm - simple display manager
4337 sddm - modern display manager for X11
9363 xdm - X display manager
10218 slim - desktop-independent graphical login manager for X11
18484 lxdm - LXDE display manager
21307 wdm - WINGs Display Manager - an xdm replacement with a WindowMaker look
22060 nodm - automatic display manager

it will list the most popular package first. However, I left the
default as is. I prefer having the most popular package at the bottom
as it minimizes "the eyeball movement". Consider, for example, a
command that produces multiple pages of output such as

% apt-cache search "^vim-" --names-only | popsort.py

To look at a few of the famous packages in this, one has to either
scroll up or pipe the output to head. With the current sorting method,
you can keep eyes closer to the command line and still get all the
important information.

raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

which display manager would you suggest for Stretch? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-08-24 07:50 +0200
  Re: which display manager would you suggest for Stretch? Felix Miata <mrmazda@earthlink.net> - 2017-08-24 08:10 +0200
  Re: which display manager would you suggest for Stretch? kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-08-24 08:40 +0200
    Re: which display manager would you suggest for Stretch? <tomas@tuxteam.de> - 2017-08-24 10:40 +0200
    Re: which display manager would you suggest for Stretch? Michael Lange <klappnase@freenet.de> - 2017-08-24 11:40 +0200
      Re: which display manager would you suggest for Stretch? kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-08-25 07:20 +0200
        Re: which display manager would you suggest for Stretch? Michael Lange <klappnase@freenet.de> - 2017-08-25 11:20 +0200
        Re: which display manager would you suggest for Stretch? rhkramer@gmail.com - 2017-08-25 13:00 +0200
          Re: which display manager would you suggest for Stretch? rhkramer@gmail.com - 2017-08-25 14:40 +0200
            Re: which display manager would you suggest for Stretch? Hans <hans.ullrich@loop.de> - 2017-08-25 14:50 +0200
            Re: which display manager would you suggest for Stretch? Michael Lange <klappnase@freenet.de> - 2017-08-25 19:00 +0200
            Re: which display manager would you suggest for Stretch? kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-08-25 19:50 +0200
    Re: which display manager would you suggest for Stretch? solitone <solitone@mail.com> - 2017-08-26 07:30 +0200

csiph-web