Tiny Core Linux

Tiny Core Base => TCB Tips & Tricks => Topic started by: roberts on December 31, 2008, 10:41:21 AM

Title: Maximize Screen Real Estate with borderless windows.
Post by: roberts on December 31, 2008, 10:41:21 AM
If you are running TC on an eeePC or say a TP240, or otherwise have a small screen here is what I run.

I edit the first <Width> and <Height> tags of .jwmrc-theme. They are defaulted to 4 and 20. I change both to 2  Then restart the window manager from the right-click popup system menu.

This provides nearly  borderless windows, an almost MAC like experience, in that all window operations are controlled from the top taskbar by right-click on the selected area.

I like it for I can just jam my mouse to the top to manipulate the window in many ways.

It also gives more screen real estate which is nice on the smaller screens of "netbooks".

And of course you can still use the keyboard to control various window operations, see .jwmrc-keys.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: tobiaus on December 31, 2008, 11:50:51 AM
hehe, fun. alt+f2 gives you a menu also, and you may find it's a lot easier to get at the top (if not as perfectly minimal) by setting height to 3, 4, or 5.

even at 2, if you move the mouse to juuuuuust the right pixel, you can click "close."
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: florian on December 31, 2008, 12:43:21 PM
Thanks for sharing those, Roberts. I have installed TC on my eee pc 701 (800x480 resolution only!) and thus will try those tips.

By the way, I like curaga's tiny "watcher" program which I used docked in jwm. I wish there could be an option to make it even smaller by not showing the swap statistics (no swap may be common on netbooks with flash drive)
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: curaga on December 31, 2008, 12:55:39 PM
Thanks :)

As it's open source, you can easily modify it. To remove the swap printing, you'd only need to edit three printf lines. I might add an option later if this feature would be popular.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: josephg on January 10, 2009, 06:15:20 PM
If you really want to maximise your screen real estate, use a window manager like ratpoison, which I would highly recoomend. My 840x600 looks too small, if I use any other window manager...
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: pme127 on April 05, 2009, 01:48:55 AM
Is it possible to move the task-bar to the bottom of the screen (which is where I am used to seeing it) and get rid of that MAC-like dashboard altogether.

I started with a 10” Toshibe with a mouse-point, so quickly learnt to use key-strokes instead, therefore, I don t need button-bars, scroll-bars and in some apps, menu-bars, all maximising screen real estate.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: curaga on April 05, 2009, 01:58:26 AM
Sure. Remove the two lines containing wbar.sh from your .jwmrc, and then set the y component of the tray to "-1" in .jwmrc-tray.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: roberts on April 05, 2009, 12:52:10 PM
On my netbooks, I now use flwm.
I compiled to use the shared fltk libs already in TC so it is way smaller than jwm.

No wasted screen space. The menu, pager, and task indicator are always available as a popup, either by right click desktop, or it is is covered by open window(s), then right click on any window title bar.

It really helps on the smaller screens of netbooks and being both physically smaller and runtime smaller is also a plus.

Hmmm, maybe I should make jwm an extension and use flwm?  ::)
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: tobiaus on April 05, 2009, 03:04:14 PM
Hmmm, maybe I should make jwm an extension and use flwm?  ::)

if you're a sadist. actually i think you're making a joke, but at that point you don't need a gui to make a first impression or help new users, just go to microcore and make everything an extension (including aterm and rxvt.)

flwm is a cool window manager if you're feeling adventurous, but i'd rather talk someone through using the command line than through the flwm interface.

now i love a good text-user-interface, especially if it supports the mouse. otherwise you've got the text-only appbrowser with 100 selections and scrolling through them isn't that bad. you can either type out the whole name, use search or just keep scrolling until you get there.

and after all that's only until you've got networking up, installed a gui, and downloaded the graphical appbrowser. from there it's pretty straightforward, no matter what level of hardcore linuxy geekiness you like, just short of lfs i mean.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: josephg on April 06, 2009, 12:59:02 AM
just go to microcore and make everything an extension

i thought that was the ethos of tinycorelinux. and i agree with this. let people pick and choose what they (don't) want.

i agree with roberts on flwm too. smaller and more efficient on all counts - screenspace, memory, footprint, etc.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: pme127 on April 06, 2009, 02:37:24 AM
Sure. Remove the two lines containing wbar.sh from your .jwmrc, and then set the y component of the tray to "-1" in .jwmrc-tray.

Where is .jwmrc (absolute path), and does TCL have a file manager?

If file managers are TCEs which one is recommended?

It is not possible to  search App browser by type, so if you don't know the name of the extention you can't find it.

Many/most program names are enigmatic eg Opera, Wine. A search by type would be useful.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: josephg on April 06, 2009, 02:50:55 AM
.jwmrc is in your home. ~ or $HOME. use cd with either. but, i'm getting a feeling that you shouldn't be trying this, if you can't use the commandline.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: tobiaus on April 06, 2009, 03:19:57 AM
Quote
i thought that was the ethos of tinycorelinux. and i agree with this. let people pick and choose what they (don't) want.

in general it is, and in general i agree. the only place i would differ is that tc is a minimal "desktop" based distro, was from conception. remove the gui and it's a command line distro that allows gui installation. no problem for people that already know and for peope that are already online- they can just type "load desktop" and they're off. but for anyone struggling to get tc to work they just got one less incentive, they now only see a cli giving them trouble, they've never seen how blazing fast tc's gui is so they think maybe don't ever bother instaling the gui on a old machine, really fast lowram installs use cli (ubuntu proves it right?)

they don't have the friendly app installer so they think they'll always have to type the name of the apps they're installing, or download them one at a time. it's not true but less familiar setting breed more misconceptions. they try to get wireless working before they ever see the gui, i'd rather experiment with that in a nice term in a gui (where i can open a nice browser to look up more info in and cut/paste without fiddling with the 2-button simulation of 3-button mice to copy/paste in the cli.)

tinycore had a balance of comfort and style out of the box and i can see it's going to lose that over an obsession with making it more "hardcore." there are actually a lot of people it won't affect (including everyone already familiar with it, who won't be affected much because they know all the tips and tricks) but it will nt just trash first impressions, it will create obstacles for new users that didn't exist before.

that was my stance anyway. as more obstacles are introduced and tc goes from balanced and friendly to slightly more complicated and more eccentric, it won't even matter if there's a gui because we'll have already given up on trying to impress, welcome or entice any users that don't want the hassle of setting up every-single-option befre they can even look up the forums or use the graphical appbrowser in other words, forget it, carry on, let's strip it down to the kernel and hope everyone likes waiting to see some kind of result after booting to the command line until they've set up pppoe, downloaded and setup the gui, instead of just making it easy to remove the gui let's make them work just to see it (that's a reasonable expectation in a modern distro.) it's microcore, and the law of diminishing returns be damned- let's get tedious! getting it from 10mb to 5 will be well worth it.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: pme127 on April 06, 2009, 03:21:44 AM
.jwmrc is in your home. ~ or $HOME. use cd with either. but, i'm getting a feeling that you shouldn't be trying this, if you can't use the commandline.

I am learning to use the command line (via linuxcommand.org).

If it is white (opened with less, how do I get in to edit it with vim.

Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: pme127 on April 06, 2009, 07:25:37 AM
.jwmrc is in your home. ~ or $HOME. use cd with either. but, i'm getting a feeling that you shouldn't be trying this, if you can't use the commandline.

Thanks, done, found Mastering the VI (VIM) editor at the University of Hawaii.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: Tidux on April 06, 2009, 12:16:12 PM
I have a different suggestion for a tiling window manager: dwm.  A single C file with a single header file, less than 2k lines of code between them. 
./configure --prefix=/home/foo && make install

and you're set.  I recommend NOT doing system-wide installs because adjusting dwm requires a recompile.   Of course, with a persistent /home, using -pipe as a CFLAG prevents nasty temporary files from cropping up.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: Roberto A. Foglietta on April 07, 2009, 05:10:56 AM
Try this:

Code: [Select]
--- .jwmrc      Sat Apr  4 14:06:30 2009
+++ /home/tc/.jwmrc     Tue Apr  7 13:50:26 2009
@@ -63,7 +63,7 @@
 
    <!-- Virtual Desktops -->
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
-   <Desktops count="4">
+   <Desktops count="2">
 
       <!-- Default background. Note that a Background tag can be
            contained within a Desktop tag to give a specific background
--- .jwmrc-tray Sat Apr  4 14:06:30 2009
+++ /home/tc/.jwmrc-tray        Tue Apr  7 14:05:17 2009
@@ -1,12 +1,13 @@
 <JWM>
    <!-- Additional tray attributes: autohide, width, border, layer, layout -->
-   <Tray  x="0" y="0" height="20">
+   <Tray x="0" y="0" height="20" autohide="true" border="0">
 
      <!-- Additional TaskList attribute: maxwidth -->
      <TaskList/>
 
      <!-- Additional TrayButton attribute: label -->
      <TrayButton label="_">showdesktop</TrayButton>
+     <TrayButton label="$">exec:aterm</TrayButton>
 
       <!-- Additional Pager attributes; width, height -->
       <Pager/>
@@ -21,4 +22,11 @@
 
      <TrayButton label="X">exec:exittc</TrayButton>
    </Tray>
+
+<!-- Decomment this one if you like to see the wbar always -->
+<!--
+   <Tray autohide="false" layer="12" border="0" height="0" y="-69" halign="center">
+      <Swallow name="wbar" width="0" height="0"></Swallow>
+   </Tray>
+ -->
 
+
+<!-- Decomment this one if you like to use wbar even with maximized windows -->
+<!--
+   <Tray autohide="false" layer="12" border="0" height="0" y="-21" halign="center">
+      <Swallow name="wbar" width="0" height="0"></Swallow>
+   </Tray>
+ -->

</JWM>

UPDATED: 09 April 2009
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: Roberto A. Foglietta on April 09, 2009, 03:04:29 PM
If you, like me, choose to reserve the lat 21 pixels in order to use wbar even when a windows is maximized then you should appreciate this patch to wbar:

http://code.google.com/p/wbar/issues/detail?id=23

Obviously /usr/bin/wbar.sh should modified in order to cal wbar with -noreload option. In case you need to reload wbar you can restart the jwm or restart  wbar from jwm menu.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: magerlab on May 01, 2009, 12:39:17 PM
jwm is very underrated, i think
it's so small but has so much inside - multiple tray, dock, supports background an newest versions support also rounded edges and transparency
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: tobiaus on May 01, 2009, 02:48:44 PM
jwm is very underrated, i think
it's so small but has so much inside

me too, i use it in xubuntu instead of xfce. performs like a completely different distro.
Title: Re: Maximize Screen Real Estate with borderless windows.
Post by: oso2k on May 11, 2009, 02:07:22 PM
YeahWM & TinyWM are window managers that also use less real estate in their window decorations.