Welcome Guest ( Log In | Register )

4 Pages  1 2 3 > » Bottom

Outline · [ Standard ] · Linear+

 The Great Tiling WM Adventure + Some Wireless Stuf, Hosted by G-17

views
     
G-17
post Mar 3 2011, 12:22 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Farkinid
Did you try reinstalling GDM first?
Also, while in a TTY, what does gdmstart tell you?

Also, if you're the only user on the computer, the basic startx should suffice.
If you're willing to try it, just uninstall or disable gdm, then creat a ~/.xinitrc and put this line in it;
CODE
exec ck-launch-session gnome-session

then you can start it manually each time you boot with "startx"

I'm not on Ubuntu/Gnome, nor do I use GDM, but maybe the Ubuntu forums has threads about GDM-related problems, or maybe there's some PPA somewhere with a fixed/updated version of GDM?
G-17
post Mar 4 2011, 11:55 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Sorry I wasn't here (too much work) and sorry for misunderstanding you're earlier question. I thought it was just GDM. If I had know it was more serious, I'd have checked in here more often.

It would be good if you remembered what it is you updated. Might have helped narrow it down earlier. It's most probably Xorg-related.

What specs are your computer? fglrx is ATI, right? (sorry, never used that card before, so I'm unfamiliar)If that's the case, I think the problem might stem from either ATI or Xorg devs always moving certain models of cards from main to legacy, though I could be mistaken here. for ATI, this might help = http://wiki.x.org/wiki/radeonhd

If you haven't moved distro or upgraded to a more recent Ubuntu yet, you could post your xorg.conf and your /etc/X11/XF86Config here, to help us understand what goes on in your system normally. I think "Screen" section on either might give some clues, based on the last error message you posted.

BTW, I didn't know you used ScrotWM. If you're looking for another distro, you could do a minimal Ubuntu (mini.iso or command-line install from alternate iso) and just add what you need, or maybe a Debian netinstall of Squeeze (and upgrade your sources to Testing if desired), or Crunchbang (good community, relatively light distro) if you want Apt. Other options are Arch or Crux if you can find the time (though they're not the "install and forget" types and require a bit of care).

One note if you plan to upgrade your existing install. I think for Ubuntu yu can only upgrade to the next version (10.04 in your case) each time. so if you plan to get the latest version (11.04), you'll need to download each iso and upgrade version by version. It'd be better to just save your configs and home folder in an ext-HDD and do a clean install of whatever version/distro you desire.

I'll check back in later after I get home from work.
G-17
post Mar 4 2011, 07:44 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
That's your lshw output isn't it, dear?
Do you have a /etc/X11/XF86Config file? If yes, could you post the contents as well, or that of an equivalent xorg.conf if you have one.

This might be risky, but you could add a Debian mirror to your sources list, and have it point to its unstable branch, and then upgrade your xorg and video drivers, but it could break everything further, so I advice against it, but it is an option. I'm not quite sure how Ubuntu configures Apt these days, but you might have to do some apt-pinning if you do upgrade xorg via Debian Unstable sources, since it might default back to downgrading the Ubuntu 9.10 version on the next update/upgrade.

Also, it looks like a AMD-Turion laptop with an ATI gfx chipset that shares your physical memory. If that's true, than you initial attempt at getting the mesa stack working would have obviously failed since mesa is for Intel chipsets, which your laptop's motherboard most probably does not have. AMD systems usually don't have any Intel graphics/wireless/controller chipsets on board, whether desktop or laptop, as far as I know.


QUOTE(farkinid @ Mar 4 2011, 12:13 PM)
As for ScrotWM, I only started when my GDM + GDE + drivers broke. Decided its time for a new adventure in Linux (eventhough my iptables transparent firewall isn't ready). So far I'm really liking Scrot + dwm although I haven't really found the line that separates the two. And I still haven't figured out how to customize it.
I think howtoforge has/had some good articles on iptables... you might want to check em out in future.

I think I once posted a 'template' scrotwm.conf file somewhere on these forums, which members liek Acid_RuleZ sorta liked (I hope). I could help you make a simple one as a starting point if you want. Also have some old DWM config.h files, though these were for very specialized behavious, so I doubt a DWM-virgin would find wm useful. I could also cook-up a template DWM config for you, but it might take some time, as I've been a bit out of touch with it.

ScrotWM and DWM have a similar feel to them, but Scrot (imho) is much more sensible. It's also a tad faster (noticeable only on old hardware prolly, I doubt there'll be a difference on a modern multi-core processor) and doesn't require you to recompile everytime you change the config file like you need to for DWM. They're both written in C mostly, but Scrot is configured in plain human syntax (English), while DWM is configured in C. DWM has been around longer, so it's better on the stability front, and there are a lot of patches available that give specialized tiling layouts like a spiralled or Fibonacci sequence inspired view. There are also special forks of it like the Dwm-Sprinkles mod. I personally prefer ScrotWM for my tiling (I was a long time DWM user, even contributed patches directly to Suckless) these days, since it's all I need. I might be a tad biased, since ScrotWM is originally BSD based, and I'm a long time user of Free and Open BSD. BSD apps tend to be higher quality than Linux projects, in my experience. Just compare BSD manuals next to Linux man pages side-by-side and you'll understand.

Other tilers you might want to look at are Musca (another favourite of mine), Xmonad (if you like Haskell), WMFS (window manager from scratch), AwesomeWM (awfulWM in my opinion, but lots of people like it), Wmii (DWM's big sister) and Subtle (requires Ruby)

I wouldn't recommend you install a tiling WM and use it as your primary, since there's usually a learning curve involved. A perfect compromise would be a lightweight stacking/floating WM like Openbox or Fluxbox, or if you want a DE then maybe Xfce, and then a tilingWM that doesn't require a lot of dependencies, like DWM, Wmii or ScrotWM...and then you switch between them via GDM, Slim or xinitrc, depending on what work you wanna do.



QUOTE
Distro-wise, I want to move to something that will is just install + 1st configuration and then forget. This lappy has waaaaay to much sensitive data. I like the idea of Debian or Crunchbang. I've been looking at both (also i haz preference for apt).
If it's Debian, I personally do a netinstall or start from GRML, but that might not be your thing.

If it's apt, Crunchbang (either the Openbox or Xfce version) might be a good fit for you. It should have most codecs out of the box, plus it has an awesome "CB-Welcome-Script" that runs the first time you boot into it after a HD install, where it asks you if you want additional apps/libs/daemons like, O.Office, samba, dev-tools...etc. Plus, it defaults to Squeeze which is more reliable than most things. You can upgrade to testing or Sid later to make it a rolling-release, at the expense of some stability.

Another good candidate would be Linux Mint Debian (LMDE) which is based on Debian Testing. It's your typical Mint Gnome environment in terms of feel, which most Ubuntu users will find familiar, I think.

Only thing I'm a bit worried about with regards to your hardware and Debian is your ATI gfx chipset. I can't say I'm that familiar with ATI, but some people have had problems with various cards. I guess it's sorta like dying your hair ... you won't know until you try for yourself.

This post has been edited by G-17: Mar 4 2011, 07:52 PM
G-17
post Mar 5 2011, 01:54 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Farkinid
Check post #122 of this page. I included a scrotwm.conf and a couple more there.
Read what's typed out in that post carefully, since it requires you to download some stuff.

As for Debian,
The netinstall will ask what kind of install you want, and you can select an environment if desired (shouldn't be too long if your Unifi gives the speed it advertised) or you can install to command-line only (base system) and then add what you need. If you take the latter route, first thing you'll have to do is edit your sources.list to enable non-free and contrib repos. Basically just modify every source to have "main" "contrib" and "non-free" ... sorta like this if you're on Squeeze;

CODE
## Official Debian Repositories:
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
# deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main
# deb-src http://security.debian.org/ squeeze/updates main


and apt-get update/upgrade

If you want testing or unstable, just replace the "squeeze" with "testing" or "unstable" ... won't be as rock-solid as Squeeze, obviously, but Debian Testing is still much more stable than 99% of distros out there.

Then (again, if you installed the base system only) you'll need to install xorg (or xserver-xorg) and your preferred DE or WM. I'm not sure if Xterm comes included in a base install, but you should install it (it can serve as a backup terminal if nothing else). Install drivers if required (your Atheros Wifi should work out of the box... I think) and wicd / wicd-curses to get wireless working. You can then create a file called .xinitrc (https://wiki.archlinux.org/index.php/Xinitrc) to startX, or just install GDM if you're more comfy with that. Then additional stuff (like urxvt, terminus, a file manager like thunar or pcmanfm, conky if desired, htop).

It should be pretty straightforward if you're just taking a standard Debian route. I doubt you'll wanna do advanced symlinking and scripting this soon into your install.

Hope this helps.

P.S ... Sorry for any typos you find. It's Friday night / Saturday morning and I just got back from some moderate drinking =P
G-17
post Mar 5 2011, 02:53 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 5 2011, 02:36 AM)
Fuah, so late still awake.

Hah... first time I installed Gentoo years ago, I didn't sleep the whole weekend, and went to work on Monday looking like a heroin-addicted refugee ... and I still broke the install after all that >_<

QUOTE
I already got past the installation. Lets see what I've done so far :-



  1. x-server = installed

  2. WM = ScrotWM (installed)

  3. Graphical Login = SLIM (can't find it yet)

  4. file manager = Midnight Commander (installed YEEEEaaaaah)

  5. wireless = down (dunno how to set this up yet)

Thats pretty much as far as I have gotten. Oh also.. just installed sudo

Forgot to tell you that you'll need alsa (or alsa-base) for sound.

Never used SLIM before. It's always been standard startx or XDM for me. Try this;
http://rustyshacklefordslibrarycard.wordpr...debian-squeeze/

For wireless, install wicd. Then type "wicd-curses" to set up your wireless.


QUOTE
Oh also, 1 more thing... I don't know why but everytime i press backspace too much, i get an annoying buzz from my speakers. How do i kill that?
*

I dunno. I remember reading something about it (you'll have to blacklist your pc-beep speaker), I'll search for the solution tomorrow.... I cannot stay awake already... very tired X_X

This post has been edited by G-17: Mar 8 2011, 09:04 PM
G-17
post Mar 6 2011, 12:40 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 5 2011, 03:05 AM)
Alright, I'm stumped. I can't get transparent xterm on scrotwm. What other x-terminal-emulator is there which supports transparency?
*

I use URxvt (rxvt-unicode package in Debian repos) which can easily do pseudo-transparency. The scrotwm.conf I shared is configured to open URxvt, and the .Xdefaults are configured for URxvt also. If you want something a bit easier to configure (as in right-click and use the GUI) then xfce4-terminal is pretty decent.

Note: If you decide to go for URxvt, then download them via apt-get for your system, and then go here and grab the package available for Sid/Unstable;
http://packages.debian.org/sid/rxvt-unicode
That version has support for 256-colors (good for certain VIM themes) as well as real transparency if you have compositing installed and enabled in your WM/DE. Just scroll down to the bottom of the page and grab the deb package for your architecture. You'll need gdebi installed to extract .deb files, obviously. Dependencies should be satisfied already if you installed the prior version via apt.

This post has been edited by G-17: Mar 6 2011, 12:41 AM
G-17
post Mar 6 2011, 02:08 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
Gaah ... sorry... just realized I didn't actually post the link >_<

http://forum.lowyat.net/topic/1637124/+121
Read, download and place the config where it's supposed to go.
Also includes a basic .Xdefaults with one of my colorschemes to match the .scrotwm.conf colors, and also a .bashrc if you want (it's pretty basic though ... I haven't used a bashrc in a while since I migrated to zsh)

Edit: you might need to modify some of the quirks that control the floating behaviour, since I configured it for other people who use Nautilus as their primary FM.


Added on March 6, 2011, 5:18 amEdit2: Regarding that speaker beep you mentioned yesterday, I found I had a similar issue on my old ThinkPad earlier today. This was in Gentoo, but should work universally on any Linux system.

As root, open up your /etc/modprobe.d/blacklist.conf with your desired editor.

Then add this to the end;
CODE
#disable annoying pc speaker beep
blacklist pcspkr


Save.

Fire up your terminal and do this to unload the pcspkr module.
CODE
rmmod pcspkr


Worked for me, and I hope it does the trick for you too.

This post has been edited by G-17: Mar 6 2011, 07:49 AM
G-17
post Mar 6 2011, 05:04 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 6 2011, 03:25 PM)
As for the scrotwm.conf, I wonder whats going to happen since I already chose to use Midnight Commander as my file manager. Its pretty lightweight and highly configurable but really configuration heavy.
*

Well, you just comment out the Nautilus quirk (I think I only put 1 in there), since you'll usually start MC in a term, or if you want a keycombo to launch it, you can do "urxvt -e mc" (if you're using urxvt, that is).

As for Midnight Commander, it all depends on the user's level of comfort. I used to be a huge fan or Norton Commander (which MC is based on), so transitioning to MC was natural for me. Recently, I've gotten more mileage with Ranger (you'll have to install from source) with it's Vi keybindings and simple layout. Other CLI file managers you can try are Vifm and FDclone, both are in standard Debian repos. I prefer CLI, but one disadvantage some people might not be able to live with is the lack of USB/SD-card hotplugging support. Depends on the user.

There's nothing wrong with using a graphical file manager, but most people who use lightweight window managers tend to prefer lighter types like Thunar, Gentoo or PCmanFM.

If you need any other assistance with regards to ScrotWM (or any other WM, for that matter), feel free to ask. smile.gif Some people have had trouble getting their startup apps and wallpaper to when when starting ScrotWM, for example. It's just a matter of creating a simple script, making it executable, and have your GDM/SLIM/.xinitrc config point to it.

Cheers~

This post has been edited by G-17: Mar 6 2011, 07:56 PM
G-17
post Mar 7 2011, 10:34 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE
Oh crap, need some help with midnight commander. I can't seem to open .zip files. I'm not sure what software to use. For .tar.gz files MC uses utar. Oh wai... i got it..... nvm...

Huh what?! laugh.gif
Can or not?

QUOTE
On a side note, Arch users are called Archers. Slackware guys are called Slackers, what about debian guys then?

Human beings. Debian is the "Universal Operating System" after all.
I tend to use Archtards and Debtards (from Retard) and Slackbums.
I have no idea what I am, though... seeing as I have all these (and more) installed on various systems.... Maybe B*stard or Pariah laugh.gif

QUOTE
Oh great, another problem. I just realized my touchpad is either scroll enabled or tap-click enabled. On default installation, the scroll on the touchpad was working. But after I managed to get my tap-click, the scroll has been disabled.

Tried using gpointing-device-settings to enable both at the time but it doesn't seem to find the touchpad. 'sudo tpconfig' shows that Synaptic touchpad found, firmware 8.96. Pretty confused now.

Hmm ... I'm unfamiliar with gpointing device (been years since I used that syntax).
I mostly use synclient (not sure if your touchpad supports it or not, but should be since you said it found Synaptics pointing device on your system) and have the variables in a script I use to start ScrotWM (or relevant autostart files for other wm)

For example, I have my power manager, screensaver, touchpad synclient variables, wallpaper (with feh) and thunar daemon (for when I need USB drag n drop) included to start right before I start scrotwm. I name the script "scrotwm.sh", put it in my $PATH (/bin in my case) and make it executable, and have an "exec scrotwm.sh" line in my .xinitrc (you can do the same for SLIM or GDM, though I'm not sure if the 'exec' is required)

Here's an example;
CODE
#!/bin/bash

#Power Settings
xfce4-power-manager &

#Wallpaper
feh --bg-scale /home/farkinid/wallpapers/Packy-X-Bota-Yaoi-Hentai.jpg &

#US keymap
setxkbmap us &

#Thunar File Manager Hot-plugging/Mounting
thunar --daemon &

#Touchpad
synclient TapButton1=1 &
synclient VertEdgeScroll=1 &
synclient HorizEdgeScroll=1 &

#Screensaver
xscreensaver -no-splash &

sleep .2
scrotwm


You don't really need this script if you can just figure out how to insert the relevant synclient variables in your SLIM config. I just posted that for future reference, just in case.

You can do "synclient -l" in terminal to see what variables are enabled/disabled. There's also the more modular method of editing the synaptics.conf file. See here; https://wiki.archlinux.org/index.php/Touchpad_Synaptics

TBH, I don't really bother with touchpad functionality, since one can almost completely forget about the mouse in Tiling WMs ..... except for browsing certain sites that aren't Pentadactyl/Vimperator compatible, or apps like Gimp/Inkscape/etc.

________________________________________________________________________________________________________

Btw, you might want to rename the thread title (if possible), since it's morphed from "Ubuntu GDM Login Broken" to "Farkinid's Adventures With Debian & Tiling WMs" wink.gif

This post has been edited by G-17: Mar 8 2011, 03:02 AM
G-17
post Mar 8 2011, 12:32 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 8 2011, 09:58 AM)

Added on March 8, 2011, 11:22 amOh, 1 more thing. I'm stumped. How do I take a screenshot? (stop laughing at me). I tried using screenshot.sh and put it in ~/bin. But when I do that, instead of getting a screenshot, I get the same buzz I used to get before I blacklisted pcspkr.
*

Why would I laugh at you?
» Click to show Spoiler - click again to hide... «


Are you sure your ~/bin is in your $PATH

To see what's in your current $PATH, do this in terminal;
CODE
echo $PATH


...and to add your~/bin to $PATH, do this;
CODE
PATH=$PATH:/home/xxxx/bin

Replace 'xxxx' with your user name

With regards to screenshots, I don't use ScrotWM's included screenshot script. I prefer simple scrot.
Note: scrot and scrotwm are totally different packages. the former is a screenshot taking tool and the latter is the wm.

just "apt-get install scrot" and then use it from terminal

Examples:
scrot = takes instant screenshot
scrot -d x = takes screenshot after x delay (replace x with a number for seconds)
scrot -cd x = same as above, but it displays a visual countdown for you. (see my last screenshot in the screenshot thread here)

You can do "man scrot" in terminal for more variables, or refer here = http://pwet.fr/man/linux/commandes/scrot

smile.gif

P.S
Could you remove the "Hosted by" part from the thread title. Very embarassing/paiseh/malu lah. sweat.gif

This post has been edited by G-17: Mar 8 2011, 12:42 PM
G-17
post Mar 8 2011, 08:58 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
^ Wah!! ... that's a very serious looking desktop, girl!!

Now you should start theming it.
Start with your .Xdefaults
https://bbs.archlinux.org/viewtopic.php?id=51818&p=1
http://crunchbanglinux.org/forums/topic/99...ith-screenshot/

I assume you're on the default bash/dash shell (rather than zsh or ksh)
Look here: https://wiki.archlinux.org/index.php/Color_Bash_Prompt

Edit: to theme MC, look here:
http://plug-and-pray.blogspot.com/2009/09/...ders-color.html

Also try these wonderful Term Apps;

IRC: Weechat, Irssi

IM : CenterIM, Finch

RSS/Atom Feeds: Newsbeuter, Snownews, Raggle

Mail: Alpine, Mutt
Alpine is easier to set up. Mutt can be a b*tch, but is highly customizable

Browser: Elinks, W3m, Links2

Audio: MoC, MPD/Ncmpcpp, Cmus, Orpheus
I personally use MoC because of it's in-built EQ, but many people like Ncmpcpp

Video: Mplayer. use "mplayer -msgcolor -msgmodule file.extension" to get colored output like this. You can set an alias for it in your ~/.bashrc

Editor: Vim

Here's a great blog by a friend from the Arch/Ubuntu forums.
http://kmandla.wordpress.com/

This post has been edited by G-17: Mar 8 2011, 09:56 PM
G-17
post Mar 9 2011, 01:09 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(Acid_RuleZz @ Mar 9 2011, 04:44 AM)
3. I had to put "cpufreq-set -g ondemand" in my startup script to set my cpu scaling to Ondemand. Default is Performance.

This is actually a vety good suggestion. Thanks for pointing this out.
I thought most recent versions of Debian came with cpufreq defaulting to "ondemand" via Kernel parameters. "cpufreq-info" in terminal has always showed "ondemand" being selected for most Debian installs I've done this past year or so.
Maybe it doesn't default for AMD processors... Hmmm hmm.gif

QUOTE
@farkinid
do you have dmenu installed?
Doesn't apt automatically pull in dmenu when you install the scrotwm (or dwm) package? It would be strange if it didn't, seeing as the default scrotwm.conf already has a dmenu launching entry in it, and scrotwm's bar is designed to seamlessly transition to dmenu.

___________________________________________________________________________

BTW, since this is tilingWM thread, I have some old DWM, Awesome and Xmonad configs lying around. I don't use these WMs anymore, but I can post them if anyone wants to try em out one day. I offer no support though, especially for Awesome (cos it's a pain in the a**)

Cheers.

G-17
post Mar 9 2011, 08:34 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 9 2011, 07:02 PM)
OK, you guys have been a great help. But I have to ask a really really really really noob question now. I've been trying to get
CODE
synclient Tapbutton1=1 &

to run on boot the last 4 days with no luck. What am I missing?

I'm a little confused with xinit, xsession and slim.
*

It's not a noob question. Nothing to be embarassed about, dear.

xinit usually means .xinitrc ..... It's a file people create to start X manually via typing "startx" in your tty upon boot.

xsession usually means /usr/share/xsession directory. here you create relevant .desktop files for GDM to pick up. If you had GDM installed before you installed scrotwm, then apt would most probably create a scrotwm.desktop entry there for you.

slim, I'm not so sure, as I've never used it before (I'm mostly a .xinitrc guy)
Maybe you can paste your slim config file here and I'll see what I can do.
You remember the script I showed a few posts above. You can try creating one and put your relevant start daemons in it like I showed you (make sure you end with the sleep and scrotwm lines) and make it executable and put it in /bin (or anywhere, actually) and then set your slim to start that script instead of the scrotwm executable.

G-17
post Mar 10 2011, 11:32 AM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Okay, I have a very busy day ahead of me, so I'll make this quick and will try to check in whenever I have time.

Firstly,
Do you have a file called "login" (probably a script) in your /bin? If yes, what's inside? if it contains stuff other than your personal details (username, password) can you paste the contents here (after removing your personal details, obviously)

Also, try to see if you have a /bin/bash -login /etc/X11/Xsession %session and paste contents here.

A temporary thing you can try for now;
Install "rcconf" from repos and run it (as root or sudo) and disable slim. Then create a ~/.xinitrc and put in whatever you need followed by "&" for each, except for the final exec line...

Example:
CODE
#!/bin/sh

#Enable uim at startup
export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

#US Keyboard
setxkbmap us &

#Touchpad Tap-2-Click
synclient Tapbutton1=1 &

#Wallpaper
feh --bg-scale /home/farkinid/wallpapers/smile.jpg &

exec scrotwm


Make executable (just in case)

Save and reboot. If it works, you should boot into a TTY and asked for your username and password. Then you launch scrotwm by typing 'startx'

if it fails, from tty, delete the ~/.xinitrc, run rcconf again and enable back slim and reboot, and you should go back to square-1, and I'll try to help some more after work or during tea-time if I can escape for a bit.

Sorry if you find typos .. I'm in a rush

This post has been edited by G-17: Mar 10 2011, 11:35 AM
G-17
post Mar 11 2011, 08:44 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Sorry for the delay.
Did you try what I posted previously, and did it work?
Any other developments?


Added on March 12, 2011, 9:16 pmOn a side note, I'm posting some of my old configs from other tiling WMs, in case anyone wants to play with em.

This one is for AwesomeWM 3.4.4.
Awesome uses Lua, whic I find very tedious. Plus it tends to change syntax from version to version, so what you see here (3.4.4) might not work for later version. I've lost interest in AwesomeWM, tbh, it tries too hard to be a DE, and it has other "features" that I'm not too fond of... I think it should be renamed AwfulWM, honestly.

Anyways, enough ranting, here's my old ~/.config/awesome/rc.lua

I offer no support whatsoever. If you have questions, search Google or the Awesome/Debian/Ubuntu/Arch forums. I can't be bothered with the sh*t WM anymore, an I take no responsibility over anything that happens.

Pastebin with syntax highlighting = http://pastebin.com/xZNcm76R

Same posted below without highlighting;

CODE
— Standard awesome library
   require("awful")
   require("awful.autofocus")
   require("awful.rules")
   — Theme handling library
   require("beautiful")
   — Notification library
   require("naughty")

   — Load Debian menu entries
   require("debian.menu")

   — {{{ Variable definitions
   — Themes define colours, icons, and wallpapers
   beautiful.init("/usr/share/awesome/themes/default/theme.lua")
   — This is used later as the default terminal and editor to run.
   terminal = "urxvtc"
   editor = os.getenv("EDITOR") or "gvim"
   editor_cmd = terminal .. " -e " .. editor
   — editor_cmd = gvim

   awful.util.spawn(os.getenv('HOME').."/scripts/")

   — Default modkey.
   — Usually, Mod4 is the key with a logo between Control and Alt.
   — If you do not like this or do not have such a key,
   — I suggest you to remap Mod4 to another key using xmodmap or other tools.
   — However, you can use another modifier like Mod1, but it may interact with others.
   modkey = "Mod4"

   — Table of layouts to cover with awful.layout.inc, order matters.
   layouts =
   {
   awful.layout.suit.floating,
   awful.layout.suit.tile,
   awful.layout.suit.tile.left,
   awful.layout.suit.tile.bottom,
   awful.layout.suit.tile.top,
   awful.layout.suit.fair,
   awful.layout.suit.fair.horizontal,
   awful.layout.suit.spiral,
   awful.layout.suit.spiral.dwindle,
   awful.layout.suit.max,
   awful.layout.suit.max.fullscreen,
   awful.layout.suit.magnifier
   }
   — }}}

   — { Tags
   — Define a tag table which hold all screen tags.
   tags = {}
   for s = 1, screen.count() do
   — Each screen has its own tag table.
   tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
   end
   — }

   — {{{ Menu
   — Create a laucher widget and a main menu
   myawesomemenu = {
   { "manual", terminal .. " -e man awesome" },
   { "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
   { "restart", awesome.restart },
   { "quit", awesome.quit }
   }

   mymainmenu = awful.menu({ items = { { "Terminal", terminal },
   { "Firefox", ("firefox") }, { "Home", ("thunar") },
   { "Chromium", ("chrome") },
   { "Thunderbird", ("thunderbird") },
   { "awesome", myawesomemenu, beautiful.awesome_icon },
   { "Debian", debian.menu.Debian_menu.Debian },
   { "Exit", ("/home/moogerfooger/.config/awesome/exit") }
   }
   })
   awful.util.spawn(os.getenv("PATH"))

   awful.util.spawn_with_shell("urxvtd -q -o -f")
   awful.util.spawn_with_shell("mocp -S")
   awful.util.spawn_with_shell("gnome-setting-deamon")
   awful.util.spawn_with_shell("xbindkeys")
   awful.util.spawn_with_shell("xcompmgr")
   awful.util.spawn_with_shell("volwheel")
   awful.util.spawn_with_shell("nm-applet")
   —awful.util.spawn_with_shell("feh —bg-scale /home/moogerfooger/pic/dusk.png")
   awful.util.spawn_with_shell("/home/moogerfooger/.config/conky/start.sh")
   awful.util.spawn_with_shell("fcitx -d")

   mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
   menu = mymainmenu })
   — }}}

   — {{{ Wibox
   — Create a textclock widget
   mytextclock = awful.widget.textclock({ align = "right" })

   — Create a systray
   mysystray = widget({ type = "systray" })

   — Create a wibox for each screen and add it
   mywibox = {}
   mypromptbox = {}
   mylayoutbox = {}
   mytaglist = {}
   mytaglist.buttons = awful.util.table.join(
   awful.button({ }, 1, awful.tag.viewonly),
   awful.button({ modkey }, 1, awful.client.movetotag),
   awful.button({ }, 3, awful.tag.viewtoggle),
   awful.button({ modkey }, 3, awful.client.toggletag),
   awful.button({ }, 4, awful.tag.viewnext),
   awful.button({ }, 5, awful.tag.viewprev)
   )
   mytasklist = {}
   mytasklist.buttons = awful.util.table.join(
   awful.button({ }, 1, function (c)
   if not c:isvisible() then
   awful.tag.viewonly(c:tags()[1])
   end
   client.focus = c
   c:raise()
   end),
   awful.button({ }, 3, function ()
   if instance then
   instance:hide()
   instance = nil
   else
   instance = awful.menu.clients({ width=250 })
   end
   end),
   awful.button({ }, 4, function ()
   awful.client.focus.byidx(1)
   if client.focus then client.focus:raise() end
   end),
   awful.button({ }, 5, function ()
   awful.client.focus.byidx(-1)
   if client.focus then client.focus:raise() end
   end))

   for s = 1, screen.count() do
   — Create a promptbox for each screen
   mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
   — Create an imagebox widget which will contains an icon indicating which layout we're using.
   — We need one layoutbox per screen.
   mylayoutbox[s] = awful.widget.layoutbox(s)
   mylayoutbox[s]:buttons(awful.util.table.join(
   awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
   awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
   awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
   awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
   — Create a taglist widget
   mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)

   — Create a tasklist widget
   mytasklist[s] = awful.widget.tasklist(function(c)
   return awful.widget.tasklist.label.currenttags(c, s)
   end, mytasklist.buttons)

   — Create the wibox
   mywibox[s] = awful.wibox({ position = "top", screen = s })
   — Add widgets to the wibox - order matters
   mywibox[s].widgets = {
   {
   mylauncher,
   mytaglist[s],
   mypromptbox[s],
   layout = awful.widget.layout.horizontal.leftright
   },
   mylayoutbox[s],
   mytextclock,
   s == 1 and mysystray or nil,
   mytasklist[s],
   layout = awful.widget.layout.horizontal.rightleft
   }
   end
   — }}}

   — { Mouse bindings
   root.buttons(awful.util.table.join(
   awful.button({ }, 3, function () mymainmenu:toggle() end),
   awful.button({ }, 4, awful.tag.viewnext),
   awful.button({ }, 5, awful.tag.viewprev)
   ))
   volbar.widget:buttons(awful.util.table.join(
   awful.button({ }, 1, function () exec("kmix") end),
   — awful.button({ }, 2, function () exec("amixer -q sset Master toggle") end),
   — awful.button({ }, 4, function () exec("amixer -q sset PCM 2dB+", false) end),
   — awful.button({ }, 5, function () exec("amixer -q sset PCM 2dB-", false) end)
   )) — Register assigned buttons
   volwidget:buttons(volbar.widget:buttons())
   — }

   — {{{ Key bindings
   globalkeys = awful.util.table.join(
   awful.key({ modkey, }, "Left", awful.tag.viewprev ),
   awful.key({ modkey, }, "Right", awful.tag.viewnext ),
   awful.key({ modkey, }, "Escape", awful.tag.history.restore),

   awful.key({ modkey, }, "j",
   function ()
   awful.client.focus.byidx( 1)
   if client.focus then client.focus:raise() end
   end),
   awful.key({ modkey, }, "k",
   function ()
   awful.client.focus.byidx(-1)
   if client.focus then client.focus:raise() end
   end),
   awful.key({ modkey, }, "w", function () mymainmenu:show(true) end),

   — Layout manipulation
   awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
   —dmenu
   awful.key({modkey }, "p", function()
   awful.util.spawn_with_shell( "exe=‘dmenu_path | dmenu -nf ’#888888' -nb '#222222' -sf '#ffffff' -sb '#285577'` && exec $exe")
   end),

   awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
   awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
   awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
   awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
   awful.key({ modkey, }, "Tab",
   function ()
   awful.client.focus.history.previous()
   if client.focus then
   client.focus:raise()
   end
   end),

   — Standard program
   awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
   awful.key({ modkey, "Control" }, "r", awesome.restart),
   awful.key({ modkey, "Shift" }, "q", awesome.quit),

   awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
   awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
   awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
   awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
   awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
   awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
   awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
   awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),

   — Prompt
   awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),

   awful.key({ modkey }, "x",
   function ()
   awful.prompt.run({ prompt = "Run Lua code: " },
   mypromptbox[mouse.screen].widget,
   awful.util.eval, nil,
   awful.util.getdir("cache") .. "/history_eval")
   end)
   )

   clientkeys = awful.util.table.join(
   awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
   awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
   awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
   awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
   awful.key({ modkey, }, "o", awful.client.movetoscreen ),
   awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
   awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
   awful.key({ modkey, }, "m",
   function (c)
   c.maximized_horizontal = not c.maximized_horizontal
   c.maximized_vertical = not c.maximized_vertical
   end)
   )

   — Compute the maximum number of digit we need, limited to 9
   keynumber = 0
   for s = 1, screen.count() do
   keynumber = math.min(9, math.max(#tags[s], keynumber));
   end

   — Bind all key numbers to tags.
   — Be careful: we use keycodes to make it works on any keyboard layout.
   — This should map on the top row of your keyboard, usually 1 to 9.
   for i = 1, keynumber do
   globalkeys = awful.util.table.join(globalkeys,
   awful.key({ modkey }, "#" .. i + 9,
   function ()
   local screen = mouse.screen
   if tags[screen][i] then
   awful.tag.viewonly(tags[screen][i])
   end
   end),
   awful.key({ modkey, "Control" }, "#" .. i + 9,
   function ()
   local screen = mouse.screen
   if tags[screen][i] then
   awful.tag.viewtoggle(tags[screen][i])
   end
   end),
   awful.key({ modkey, "Shift" }, "#" .. i + 9,
   function ()
   if client.focus and tags[client.focus.screen][i] then
   awful.client.movetotag(tags[client.focus.screen][i])
   end
   end),
   awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
   function ()
   if client.focus and tags[client.focus.screen][i] then
   awful.client.toggletag(tags[client.focus.screen][i])
   end
   end))
   end

   clientbuttons = awful.util.table.join(
   awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
   awful.button({ modkey }, 1, awful.mouse.client.move),
   awful.button({ modkey }, 3, awful.mouse.client.resize))

   — Set keys
   root.keys(globalkeys)
   — }}}

   — { Rules
   awful.rules.rules = {
   — All clients will match this rule.
   { rule = { },
   properties = { border_width = beautiful.border_width,
   border_color = beautiful.border_normal,
   focus = true,
   keys = clientkeys,
   buttons = clientbuttons } },
   { rule = { class = "MPlayer" },
   properties = { floating = true } },
   { rule = { class = "pinentry" },
   properties = { floating = true } },
   { rule = { class = "gimp" },
   properties = { floating = true } },
   { rule = { class = "Kicad" },
   properties = { floating = true } },
   { rule = { class = "Dia" },
   properties = { floating = true } },
   { rule = { class = "Feh" },
   properties = { floating = true } },
   { rule = { class = "gpicview" },
   properties = { floating = true } },
   — Set Firefox to always map on tags number 2 of screen 1.
   — { rule = { class = "Firefox" },
   — properties = { tag = tags[1][2] } },
   }
   — }

   — {{{ Signals
   — Signal function to execute when a new client appears.
   client.add_signal("manage", function (c, startup)
   — Add a titlebar
   — awful.titlebar.add(c, { modkey = modkey })

   — Enable sloppy focus
   c:add_signal("mouse::enter", function(c)
   if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
   and awful.client.focus.filter(c) then
   client.focus = c
   end
   end)

   if not startup then
   — Set the windows at the slave,
   — i.e. put it at the end of others instead of setting it master.
   — awful.client.setslave(c)

   — Put windows in a smart way, only if they does not set an initial position.
   if not c.size_hints.user_position and not c.size_hints.program_position then
   awful.placement.no_overlap(c)
   awful.placement.no_offscreen(c)
   end
   end
   end)

   client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
   client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
   — }}}


This post has been edited by G-17: Mar 12 2011, 09:18 PM
G-17
post Mar 16 2011, 04:37 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
QUOTE(farkinid @ Mar 16 2011, 03:53 PM)
But how do you get specific types of applications to run on boot? In arch, there is alot of documentation but for Debian, there doesn't seem to be much.

Seem like Debian + SLiM is rare combination
*

I'm a bit confused here (I'm really tired right now... busy days)
It's strange that running rcconf under root gave a permissions error, especially since you're not actually trying to remove SLIM but just disable it. It might help if you posted the full error message.
Also, I must again stress that I'm never run SLIM on Debian before. I've always found slim to be neither here or there, if I wanted simple, I did startx and if I wanted a full-featured login manager, I'd install GDM.

Anyways, I suspect there's some problem between SLIM and the way Debian symlinks process links/chains. I'll have to do some digging later.

Debian uses SysV scripts for controlling boot, as opposed to the more simple BSD style init process that Arch uses, which is why there might not be much documentation for SLIM on Debian outside dev mailing-lists. SysV brings the advantage of flexibility, security and scalability, but the downside is it's complexity.

SysV decentralizes the startup process, with most startup scripts loaded individually and located all over the /etc directory, and explaining it to you might prove too long for this thread (and even I don't fully know all the ins and outs, tbh), considering all the run-levels I'll need to go through. For a start, most startup services/daemons/whatever *should* have a script located in /etc/init.d .... try to see if you have a one related to SLIM in there, and check the contents to see what file it looks for.

Sorry I can't really help much right now. It's been a hectic few days for me, as I have a lot of work plus a lot of close acquaintances in Japan whom I'm calling daily to check the situation. sad.gif

In the meantime, you can do some reading here:
http://www.debian.org/doc/user-manuals
Part 11 or the FAQ section might give you some idea of how stuff works in Debian (way clearer than I can explain to you, definitely), but I highly recommend you read as much of the manual as you can, particularly the FAQ and Reference sections. There's a wealth of info in there, and sometimes I go back there to refresh myself even though I've used Debian for so long. It's a complex distro, I admit, but reading those bits might give you a reason of why the devs do what they do.

Edit: Just found this. http://www.comptechdoc.org/os/linux/startupman/index.html
Looks interesting. I'll have to give it a good read when I find enough time. See, I'm no guru!! laugh.gif


Added on March 16, 2011, 4:50 pm
QUOTE(Acid_RuleZz @ Mar 16 2011, 03:45 PM)
sorry for you  sweat.gif  sweat.gif

i've succesfully install arch into my usb and run scrotwm via slim.  drool.gif

but its bloated tho.. gonna spoil more and learn about arch then start again from scratch  laugh.gif
*

LOL ... I've heard many people say many things about Arch, but "bloated" was never one of them laugh.gif ... unless you're comparing to something like Slitaz, Crux or GRML unsure.gif

Arch is pretty nice. Just keep in mind that Arch doesn't actually teach you a lot about Linux as a whole, most of the stuff in the wiki teaches you how to maintain an Arch system, so don't try applying it to other distros. Also, beware of the breakage-heaven called AUR.
I like Arch, but I wouldn't use it on a mission-critical box, mainly due to AUR and the fact that there's no clear roadmap for package signing. You should try GRML one day. It's light, fast (faster in some cases) and secure thanks to still being Debian based, plus I can have have Gnuffy's Spaceman installed on GRML for signed Arch packages. cool2.gif .... Or you should try Gentoo one day if you really wanna learn about Linux, but preferably when you're on holiday or unemployed, cos you'll be spending a lot of time. tongue.gif

This post has been edited by G-17: Mar 16 2011, 08:19 PM
G-17
post Apr 28 2011, 05:10 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@farkinid
Sorry for the lateness. I've been overseas for the past week and only got back today morning.

I don't use baraction.sh, and prefer to pipe good ol' conky into the scrotwm bar. Reason is; older versions of scrotwm had the bar flickering when I used baraction.sh, plus it's just easier to use conky. Note: if you havent installed conky yet, just grap the conky-cli package instead of the heavier conky-all one, since the cli version is all you need for the scrotwm bar.

You can set the scrotwm bar to pipe conky by doing
CODE
bar_action     = conky
in your scrotwm.conf

then you create a .conkyrc and place it in your /home. You don't need to specify fonts or colors, since it can only default to the font and color you specified for the scrotwm bar. Most important is that you keep all the info in 1 single line. Here's a simple example.
CODE
# Conky configuration for ScrotWM Bar

##############################################
#  Settings
##############################################
out_to_x no
background no
out_to_console yes
update_interval 1
total_run_times 0
use_spacer none
#no_buffers yes
#cpu_average_samples 1
#net_average_samples 1
TEXT
   CPU - ${cpu cpu0}.00%   RAM - ${memperc}.00%   Temperature - ${hwmon temp 1}'C   Battery - ${battery_percent BAT0}%   WiFi - ${wireless_link_qual wlan0}%   Uploads - ${upspeedf wlan0}kb/s   Downloads - ${downspeedf wlan0}kb/s

Note: the 'hwmon' part for temperature requires lm-sensors to be installed from your repo (just install and then run 'sensors-detect' as root, and answer yes to everything, and reboot). Again, make sure the line that comes after "TEXT" is all one single line (the LYN forum seems to split the lines when it gets too long)

As for MoC "Now Playing" output in conky, I've personally never done it before, but this should help:
http://blog.mindlesstechie.net/2009/01/12/...rts-moc-player/
http://crunchbanglinux.org/forums/topic/99...-in-your-conky/
In any case, try adding something like "${execpi 2 mocp -Q %title}" to your conky.
I've heard MoC support in conky is a bit buggy, though, so remember to watch your CPU load and temperatures for any memory leaks or throttled scheduling.

Apologies for not being much help with the actual baraction.sh script. Truth be told, I've only ever used dzen2 or conky in most of my tiling WMs, and I've only ever piped MPD output when it comes to wanting to show currently playing tracks. Never personally felt the need to with MoC.

Edot:
Oh, almost forgot. The ScrotWM bar can't show degree symbols ° . You might want to take note

This post has been edited by G-17: Apr 28 2011, 05:24 PM
G-17
post Jun 15 2011, 08:55 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
Necrobumping this thread.

If anyone's interested in trying out Ratpoison (one of the all-time great WM's, imho), here's an old config I have:

CODE
nextscreen
unmanage panel
escape C-t

#I use conky piped to dzen2. Uncomment the line bellow if you want the same.
#exec conky | dzen2 -bg '#101010' -fn -*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-* -ta r -y 0 -x 0
#exec rpws init 3 -k

# Layouts [ ] [|] [|= [-] [+]
bind F1 exec ratpoison -c "select -" -c "only" -c "next"
bind F2  exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next"
bind F3 exec ratpoison -c "select -" -c "only" -c "hsplit" -c "next" -c "focusright" -c "next" -c "vsplit" -c "next"
bind F4 exec ratpoison -c "select -" -c "only" -c "vsplit" -c "next"
bind F5 exec ratpoison -c "select -" -c "only " -c "hsplit" -c next -c "vsplit" -c next -c "focusright" -c next -c "vsplit" -c "next"

banish

#uncomment this in case you want to use Caps Lock as escape. I just have it here for reference, I despise the idea
#exec xmodmap -e 'clear Lock' -e 'keycode 66 = F13'
#escape F13

#Set up the workspace stuff
gnew one
gnewbg two
gnewbg three
gnewbg four
gnewbg five
gnewbg six
gnewbg seven
gnewbg eight
gnewbg nine
gmerge default
gdelete default
#ALT + F* for workspace switching
definekey top M-F1 exec ratpoison -c "gselect 1" -c "select -" -c "only" -c "next" -c "echo one"
definekey top M-F2 exec ratpoison -c "gselect 2" -c "select -" -c "only" -c "next" -c "echo two"
definekey top M-F3 exec ratpoison -c "gselect 3" -c "select -" -c "only" -c "next" -c "echo three"
definekey top M-F4 exec ratpoison -c "gselect 4" -c "select -" -c "only" -c "next" -c "echo four"
definekey top M-F5 exec ratpoison -c "gselect 5" -c "select -" -c "only" -c "next" -c "echo five"
definekey top M-F6 exec ratpoison -c "gselect 6" -c "select -" -c "only" -c "next" -c "echo six"
definekey top M-F7 exec ratpoison -c "gselect 7" -c "select -" -c "only" -c "next" -c "echo seven"
definekey top M-F8 exec ratpoison -c "gselect 8" -c "select -" -c "only" -c "next" -c "echo eight"
definekey top M-F9 exec ratpoison -c "gselect 9" -c "select -" -c "only" -c "next" -c "echo nine"


msgwait 2
rudeness 12
set winname title
set winfmt %n %s %t
set fgcolor #6495ed
set bgcolor #040404
set font "-*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-*"
set winliststyle column
set inputwidth 400
set waitcursor 1
set padding 1 14 1 1
set fwcolor #040404
set bwcolor #191919
set barpadding 0 0
set wingravity nw
set transgravity center
set bargravity ne
set border 1
set barborder 1
set inputwidth 800


definekey top M-S-Return exec urxvt
definekey top M-m exec $(dmenu_path | dmenu -nb "#3f3f3f" -nf "#dcdccc" -sb "#1e2320" -sf "#f0dfaf" -fn '-*-montecarlo-medium-r-*-*-11-*-*-*-*-*-*-*')
bind k kill
bind R remove
bind u undo
bind d dedicate
definekey top M-Tab focusprev
definekey top M-C-Left exchangeleft
definekey top M-C-Right exchangeright
definekey top M-C-Up exchangeup
definekey top M-C-Down exchangedown
definekey top M-Left resize -20 0
definekey top M-Right resize 20 0
definekey top M-Up resize 0 20
definekey top M-Down resize 0 -20
#definekey top M-d exec "/home/gacchinko/Programs/ratinfo.sh"
definekey top M-w windows
bind o exec ratpoison -c "only" -c "set border 0"
bind v exec ratpoison -c "hsplit" -c "set border 10"
bind h exec ratpoison -c "vsplit" -c "set border 10"
bind s swap
bind n nextscreen

G-17
post Jul 10 2011, 03:07 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Zai
The color chart is just a means to show your terminal colorscheme People who use a lot of CLI apps usually customize the apps to suit their colorscheme as well.

For example, I see you have mocp running. Do you know that you can change it's look. Press Shift+T and you'll be able to choose themes. Also, open your ~/.moc folder and create a folder called "themes". Then, create a document and paste this inside;

CODE
# Replaces the default configuration: Slob Custom 7
background             = default default
frame                  = magenta   default    
window_title       = blue          default bold    
directory         = yellow         default    
selected_directory     = cyan       default  bold
playlist         = default       default    bold
selected_playlist     = red          default bold
file             = green       default    
selected_file         = white         default  
marked_file         = red        default  bold    
marked_selected_file    = yellow    default   bold
info             = black      default  bold  
selected_info         = white          default    
marked_info         = red        default   bold
marked_selected_info    = yellow        default    bold
status            = blue          default      
title             = red         default   bold  
state             = red           default  
current_time            = cyan    default bold
time_left         = yellow           default  bold  
total_time         = magenta          default          
time_total_frames     = magenta         default    
sound_parameters     = magenta          default    bold
legend             = default       default
disabled         = black         default    
enabled             = blue          default    bold
empty_mixer_bar         = yellow       default
filled_mixer_bar     = yellow       default    reverse
empty_time_bar          = yellow       default
filled_time_bar         = yellow       default    reverse
entry             = red           default
entry_title             = green         default
error                   = red           default    bold
message             = yellow        default    bold
plist_time              = blue         default    
and save and name the file to whatever name you want.

Then select that theme with the same Shift+T action (you can specify what theme to start with in Moc's config file. do a "man mocp" in terminal for the man page) ... cool, right?

You can basically customize all your term apps like that, though the syntax might be different depending on the app.

If you use terminals like URxvt or Xterm, your term colors are controlled by the ~/.Xdefaults file. If you prefer Gnome-terminal or xfce4-terminal, you just right click to bring up the preferences dialog for the GUI color changer (I think)

Edit: BTW, that colorscheme display script is configured tp only align properly with 3 letter words. If you use longer words (like Gaga i n your case) the horiz alignment gets screwed (look at the to line... 47m is supposed to be above the white bar)

This post has been edited by G-17: Jul 10 2011, 03:11 PM
G-17
post Jul 10 2011, 06:10 PM

Securely Paranoid
******
Senior Member
1,748 posts

Joined: Mar 2010
@Zai-Zai
Yeah, Ubuntu tends to bring in a LOT of unwanted dependencies. Even if you do a minimal install from it's mini.iso, it'll still pull all sorts of unwanted stuff the moment you install xorg.

Both Debian and Arch are equally good. It's just a matter of preference, really. Arch isn't as hard to install as people make it out to be. Arch-fanboys think they're experts just because they followed the guide and managed to install it, but seriously, you'll do fine as long as you're patient. Debian is probably faster to install than Arch, but it's harder to dig at the internals, since it's init-based scripts are far more complex than Arch's single rc file. Debian is more secure thanks to having signed packages, but I wouldn't call Arch insecure either. The steps the guide teaches you will encourage you to practice good security.

If you want to set-up something fast and want an out-of-the-box distro that's officially declared stable, try CrunchBang (Openbox version). It's based on Squeeze, so it's as solid as anything out there, at the expense of having an older kernel and packages. If you want something a bit more bleeding edge but still apt based, go for Aptosid Xfce. It's got the fastest installation of any distro (as long as you understand partitioning) and it's as light as an Arch install; 32bit i686 Xfce aptosid takes up around 50mb-55mb RAM at boot, a bit more if you have extra daemons/drivers loaded. You can install ScrotWM in either Crunchbang or Aptosid quite easily and switch via GDM. Edit: There's also Zenix, which is supposed to be very good. It already comes with OpenBox and AwesomeWM out-of-the-box, so you might wanna give that a try.

Of course, if you want ultimate lightness, you either do an Arch install and start X via xinitrc, or do a Debian netinstall or GRML small/medium. Nothing beats these two for lightness, though it does take some time to get a fully functioning system up and running.

The choice is yours. smile.gif

This post has been edited by G-17: Jul 10 2011, 06:16 PM

4 Pages  1 2 3 > » Top
 

Change to:
| Lo-Fi Version
0.0420sec    0.61    7 queries    GZIP Disabled
Time is now: 16th December 2025 - 06:42 AM