suckless-tools [fixed]

Forum rules
Please supply only the affected package name as title, with bugreport number (bugs.debian.org) or other sources. This feed can be subscribed to and piped into your RSS reader or conky: http://linuxbbq.org/bbs/feed.php?mode=news
User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

suckless-tools [fixed]

Unread post by GekkoP » Fri Dec 13, 2013 3:17 pm

Updated Elektra this morning, and came in a new version of suckless-tools. Only issue I had was with dwm and dmenu. Basically, couldn't open dmenu from dwm anymore using win_key+p shortcut.

So, after looking at logs, in dwm/config.h I changed this line

Code: Select all

static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
making it looking like this

Code: Select all

static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
And now I got my dmenu_run shortcut back working.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: suckless-tools

Unread post by dkeg » Mon Dec 16, 2013 1:35 pm

anyone else notice that dmenu seems to now list out processes in pstree differently?

Applications opened through keybindings or menus (how it used to be)

Code: Select all

init
     |
     |
     |__startx_______cwm
     |                         |___browser
     |                         |___urxvt
     |                         |___other stuff
     |
     |____stuff
now and seemingly ofter the update

Code: Select all

init___________________browser
    |___________________urxvt
    |___________________urxvt
    |
    |______startx________cwm
    |                                  |____urxvt (opened from keybinding)
    |                                  |____same
    |
    |____stuff
could just be my ocd, no issues, just curious if anyone else noticed? seend the same? cares :) ?

Work hard; Complain less

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: suckless-tools

Unread post by GekkoP » Mon Dec 16, 2013 4:52 pm

No difference on Elektra, just dist-upgraded.
Image
Sylpheed was opened using dmenu, emacs and tabbed+surf via keybinding.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: suckless-tools

Unread post by dkeg » Mon Dec 16, 2013 4:59 pm

hmm, interesting. Will be interesting to look a bit further. Thanks for posting back. FWIW, I am on colin. I look into it tonight so more if I have extra time

Work hard; Complain less

User avatar
xaos52
The Good Doctor
Posts: 190
Joined: Thu Aug 15, 2013 11:59 am
Location: Eernegem, Belgium

Re: suckless-tools

Unread post by xaos52 » Mon Dec 16, 2013 5:20 pm

^ Looks like it is init vs system-d making the difference?
Connected. Take this REPL, brother, and may it serve you well.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: suckless-tools

Unread post by dkeg » Tue Dec 17, 2013 4:18 am

I checked, systemd or init, same difference. I went into buffalo which had not yet updated suckless and pstree displayed the old way.

I'm curious what changed.

Work hard; Complain less

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: suckless-tools

Unread post by dkeg » Tue Dec 17, 2013 5:55 am

okay, fixed. Could I really be the only one? If not, navigate to /usr/bin/dmenu_run. See if your code resembles the sloppy pstree code. Yes? replace with nice pstree code

sloppy pstree code

Code: Select all

#!/bin/sh
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
	cache=$cachedir/dmenu_run
else
	cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
fi
(
	IFS=:
	if stest -dqr -n "$cache" $PATH; then
		stest -flx $PATH | sort -u | tee "$cache" | dmenu "$@"
	else
		dmenu "$@" < "$cache"
	fi
) | ${SHELL:-"/bin/sh"} &
nice pstree code

Code: Select all

#!/bin/sh
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cachedir" ]; then
	cache=$cachedir/dmenu_run
else
	cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
fi
exec $(
	IFS=:
	if stest -dqr -n "$cache" $PATH; then
		stest -flx $PATH | sort -u | tee "$cache" | dmenu "$@"
	else
		dmenu "$@" < "$cache"
	fi
)
before

Code: Select all

init-+-bash---urxvt---bash
     |-bash---urxvt---bash---pstree
     |-bash---iceweasel---47*[{iceweasel}]
     |-dbus-daemon
     |-dbus-launch
     |-dhclient
     |-getty
     |-login---bash---startx---xinit-+-Xorg
     |                               `-cwm
     |-udevd
     `-wpa_supplicant
after

Code: Select all

init-+-dbus-daemon
     |-dbus-launch
     |-dhclient
     |-getty
     |-login---bash---startx---xinit-+-Xorg
     |                               `-cwm-+-iceweasel---35*[{iceweasel}]
     |                                     |-2*[urxvt---bash]
     |                                     `-urxvt---bash---pstree
     |-udevd
     `-wpa_supplicant

Work hard; Complain less

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: suckless-tools

Unread post by pidsley » Tue Dec 17, 2013 8:23 am

Thank you. I don't use dmenu_run much, so I really didn't notice this change. Your fix worked for me.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: suckless-tools

Unread post by dkeg » Tue Dec 17, 2013 7:31 pm

^great, glad to hear. Thanks for the feedback

Work hard; Complain less

Post Reply