LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2013, 06:40 PM   #2116
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.0, 13.1, 13.37, 14.0, 64-14, -current
Posts: 1,506

Rep: Reputation: 499Reputation: 499Reputation: 499Reputation: 499Reputation: 499

Quote:
Originally Posted by GazL View Post
Yep, its a shame non of the terminals support this without having to resort to tricks like using background images: which was never going to be efficient anyway.
I have been following you guy's discussion about the striped background and it brought to my attention that the task manager I mentioned above provides a similar effect in some (but not all) contexts. I had noticed it but never thought much about it. It is obviously done with alternating background colors (ANSI colors) as it renders to the terminal.

Attached is a screenshot example. In the screenshot you will see that those in the upper lines are as wide as the terminal, while those in the lower part are only as wide as the report columns.

Obviously this is done by the software so is probably not applicable to terminals generally, but it might be interesting to think about how they do it. (And it gives me another excuse to play with the LQ attachments feature )

stripes.png
 
Old 11-30-2013, 11:49 AM   #2117
GazL
Senior Member
 
Registered: May 2008
Posts: 3,231

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
The program is probably just outputting ansi background colour sequences to makes the stripes. That's not too hard to do:
Code:
function stripes
{
  local i=1
  nobg='\033[m'
  altbg='\033[40m'

  while read line
  do
    if (( i )) ; then
      echo -e "$( printf "%s%-${COLUMNS}s%s" "$altbg" "$line" "$nobg" )"
      i=0
    else
      echo -e "$line"
      i=1
    fi
  done
}

which works fine for a stdout stream (as long as it doesn't contain escape sequences itself: one would need to intercept and translate them) but sadly that approach isn't going to work with interactive apps like those that use a curses interface.

Note: the above has a problem with leading whitespace due to the use of read. A sed/awk script is probably a better option.

Last edited by GazL; 11-30-2013 at 12:00 PM.
 
Old 11-30-2013, 04:11 PM   #2118
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,297
Blog Entries: 7

Rep: Reputation: 152Reputation: 152
Thought i'd quickly share mine.
Attached Images
File Type: jpg snapshot1-2.jpg (48.8 KB, 196 views)
 
Old 12-07-2013, 09:39 AM   #2119
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,281

Rep: Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802
I just discovered this patch for WindowMaker. When added to $HOME/GNUstep/Defaults/WMRootMenu it allows you to have a dynamically generated menu entry for applications on your system.
Attached Images
File Type: png wmaker_open_plmenu.png (130.4 KB, 155 views)
 
Old 12-07-2013, 12:47 PM   #2120
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 405

Rep: Reputation: 42
Quote:
Originally Posted by allend View Post
I just discovered this patch for WindowMaker. When added to $HOME/GNUstep/Defaults/WMRootMenu it allows you to have a dynamically generated menu entry for applications on your system.
That would be nice to have on Fluxbox. I wonder if there is a way. Although I like my concise abbreviated menus, I also think I'm not experimenting as much when something new is added to my distribution. Something like this would be nice for exploring around once in a while. I guess firing up KDE is an option, but who wants to do that :-)
 
Old 12-07-2013, 05:58 PM   #2121
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,281

Rep: Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802
Quote:
That would be nice to have on Fluxbox. I wonder if there is a way.
Have you looked at wmconfig?
 
1 members found this post helpful.
Old 12-07-2013, 06:45 PM   #2122
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.0, 13.1, 13.37, 14.0, 64-14, -current
Posts: 1,506

Rep: Reputation: 499Reputation: 499Reputation: 499Reputation: 499Reputation: 499
Quote:
Originally Posted by allend View Post
Have you looked at wmconfig?
Thanks, I was unaware of that.

I have long managed my Fluxbox menus myself and was not really looking for an alternative. But at times I think it would be nice to supplement with an auto generated list.

I just built wmconfig from SBo and ran an example, seems to work well enough! The manpage seems a little confusing and some of the paths are not as advertised, I think, but easy enough to figure out.

I would not replace my self-managed menus with it, but have included the output as a sub-menu for now. Maybe after I become more familiar with it I will adapt.

Thanks!
 
Old 12-07-2013, 08:06 PM   #2123
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 405

Rep: Reputation: 42
Quote:
Originally Posted by allend View Post
Have you looked at wmconfig?
Yeah, it's on my TODO list to try out. Figures someone here would know of something like that. Thanks!
 
Old 12-08-2013, 08:04 AM   #2124
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 119

Rep: Reputation: 27
Quote:
Originally Posted by meetscott View Post
That would be nice to have on Fluxbox. I wonder if there is a way.
Not sure if you are aware, fluxbox will reread menu files if the file is modified. So you can do something similar by creating/changing a menu file using a script and submit it in cron and rebuild the menu on a scheduled basis.

Also it is even possible to create a "last run" menu in fluxbox using a script. Change your menu items to execute programs through the new 'run script'. The 'run script' will execute the object then add that object to a 'last run' menu if it is not already in the file.

EDIT: My complex 'last run menu' scripts for fluxbox http://www.jmcunx.com/data/lastrun.tar.gz
Attached Images
File Type: png fbmenu.png (43.6 KB, 81 views)

Last edited by jmccue; 12-08-2013 at 08:53 AM. Reason: added link to "complex" setup
 
Old 12-08-2013, 12:34 PM   #2125
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 405

Rep: Reputation: 42
Quote:
Originally Posted by jmccue View Post
Not sure if you are aware, fluxbox will reread menu files if the file is modified. So you can do something similar by creating/changing a menu file using a script and submit it in cron and rebuild the menu on a scheduled basis.

Also it is even possible to create a "last run" menu in fluxbox using a script. Change your menu items to execute programs through the new 'run script'. The 'run script' will execute the object then add that object to a 'last run' menu if it is not already in the file.

EDIT: My complex 'last run menu' scripts for fluxbox http://www.jmcunx.com/data/lastrun.tar.gz
Yep, I leverage that Fluxbox feature of rereading menus. I probably won't utilize the script except on occasion. I like having my customized menus that have exactly what I need and use regularly. Nice work though. I'll try it and see where it takes me. Maybe I'll change my mind. Thanks!
 
Old 12-10-2013, 10:22 PM   #2126
dxtrpn
LQ Newbie
 
Registered: Oct 2011
Location: New York
Distribution: Slackware64
Posts: 20

Rep: Reputation: Disabled
Hello, new slackware user here, would like to share my desktop.
Attached Images
File Type: jpg snapshot4.jpg (161.8 KB, 131 views)
 
Old 12-11-2013, 06:02 AM   #2127
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,686
Blog Entries: 51

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Nowt special, but might as well post it:
Attached Images
File Type: jpg snapshot2.jpg (60.9 KB, 118 views)
 
Old 12-11-2013, 08:01 AM   #2128
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,404
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Quote:
Originally Posted by brianL View Post
Nowt special, but might as well post it:
Simple is good

One day I need to find out what the 'activities' mean in the context of KDE.
 
Old 12-11-2013, 08:55 AM   #2129
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 14.1
Posts: 43

Rep: Reputation: 4
Kiss

XFCE on Slackware64-14.1
Attached Images
File Type: jpg sw14.1.jpg (135.6 KB, 125 views)
 
Old 12-11-2013, 12:15 PM   #2130
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,236

Rep: Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299
OpenBox, Tint2 and Conky.

I wrote the application pipe menu and the exit dialog.

Tint2 is built from git, and uses Crunchbang's tint2 config, with some changes to the fonts and colors.

Wallpaper is from Konachan.

And no, the text is not actually that fuzzy; the forum software downscaled the image or something.
Attached Images
File Type: jpg 2013-12-11-100405_1920x1080_scrot.jpg (226.0 KB, 128 views)

Last edited by dugan; 12-11-2013 at 12:17 PM.
 
  


Reply

Tags
background, cwm, dwm, framebuffer, gui, i3, ion3, kde, monitor, screenshot, tmux, wallpaper, xfce4, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Desktop on Slackware? darkhatter Slackware 3 10-10-2006 12:26 PM
Slackware 10.0 with NO Desktop NiPP Linux - Newbie 2 01-02-2006 10:43 AM
3d desktop on Slackware k1ll3r_x Linux - Software 1 09-20-2005 10:47 PM
Desktop Slackware s0no Slackware 5 12-04-2004 11:20 AM
I can't get my desktop in Slackware 10 DraGoNsLaYeR Linux - Newbie 1 06-27-2004 02:00 PM


All times are GMT -5. The time now is 02:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration