config and dotfiles

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

config and dotfiles

Unread post by dkeg » Mon Jul 29, 2013 9:16 pm

I changed the name of the original thread with this title because that thread had more to do with storing, backing up etc.

This thread I thought would be good for actually physcally sharing some of these, like wm configs, xresources, bash, aliases, etc.

Some of us link to our stuff in our signatures or whatever, but it should be nice to explicitly share here, for references or ideas. Either can be shared with zerobin or pastebin, with code tags, or ....

I'll start, since I've been playing with cwm lately, I'll share that.

https://github.com/dkeg/bloat/blob/master/.cwmrc

Work hard; Complain less

User avatar
swftech
Sobe
Posts: 160
Joined: Wed Oct 17, 2012 12:40 pm
Location: S Florida

Re: config and dotfiles

Unread post by swftech » Mon Jul 29, 2013 9:22 pm

Nice dkeg, also don't forget we have some goodies here as well which are mostly scripts.

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

Re: config and dotfiles

Unread post by dkeg » Mon Jul 29, 2013 9:33 pm

That's right Mike, I think I even have some stuff there. With the direction things are going, I thought we should have something like this here. Looks like this is finally becoming the main. Its hard to manage multiple forums.

Work hard; Complain less

User avatar
swftech
Sobe
Posts: 160
Joined: Wed Oct 17, 2012 12:40 pm
Location: S Florida

Re: config and dotfiles

Unread post by swftech » Mon Jul 29, 2013 9:35 pm

Probably wouldn't hurt to copy paste anything you at noob there to here as well so it's in one place. Anyway, I'm sure this will be a nice thread :)

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

Re: config and dotfiles

Unread post by dkeg » Mon Jul 29, 2013 9:45 pm

yeah, good idea.

i3 conky config, using json method as described here

https://github.com/dkeg/bloat/blob/master/.conkyrc

Work hard; Complain less

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: config and dotfiles

Unread post by ivanovnegro » Mon Jul 29, 2013 11:27 pm

If your fonts are ugly, I have a fix for you, especially when you use Webkit browsers on Debian based distros.
Make a .fonts.conf into your /home/pensiface, it is an old trick.

Code: Select all

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
  </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>
Voilà, healed the eye cancer. If you like the shitty sharpness of Debian, don't do it.

Now just put it into your root folder, in /etc/fonts and name it:

Code: Select all

local.conf
Don't touch fonts.conf here.

My Xdefaults, especially useful on minimal WMs where we have no GUI tools to adjust the font rendering:

Code: Select all

Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
My color script I always use.

My bash aliases

Code: Select all

alias pl='apt-cache policy'
alias nc='ncmpcpp'
alias tv='~/.tv'
alias ps='apt-cache search'
alias rts='vlc mmsh://rts.videostreaming.rs/rts'
alias ncm='cd ~/.ncmpcpp'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get dist-upgrade'
alias purge='sudo apt-get --purge autoremove'
alias clean='sudo apt-get clean'
alias nb='newsbeuter'
alias de='setxkbmap -layout de'
alias es='setxkbmap -layout es'
alias rs='setxkbmap -layout rs -variant latin'

I see I still use sudo on Debian, bad habit. ;)

/ENOUGH for today.

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

Re: config and dotfiles

Unread post by pidsley » Mon Jul 29, 2013 11:31 pm

ivanovnegro wrote:I see I still use sudo on Debian, bad habit. ;)
OK, my dumb question for today -- why is this a bad habit on Debian?

on-topic, my (boring) .cwmrc : http://linuxbbq.org/zerobin/?27566478ef ... u4jHANsSg=
my (also boring) .ratpoisonrc : http://linuxbbq.org/zerobin/?0695ca1ff8 ... eBw0IrAK4=
and .ratpoisonkeys (rp key defs) : http://linuxbbq.org/zerobin/?74bacef778 ... 9qUIKZWLE=

(edit) and .sithwmrc : http://linuxbbq.org/zerobin/?5ee79d2e73 ... g78lQehE4=

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: config and dotfiles

Unread post by ivanovnegro » Mon Jul 29, 2013 11:36 pm

^ You should know me already, the smiley was obviously not enough. I am playing the Debian asshole card.

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: config and dotfiles

Unread post by bones » Mon Jul 29, 2013 11:45 pm

ivanovnegro wrote:If your fonts are ugly...
Yes, thank you for this!

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: config and dotfiles

Unread post by DebianJoe » Mon Jul 29, 2013 11:51 pm

Sure, I'll share my .cwmrc. Due to stock binds on emacs, I've got a few unbound options set. Still, not a lot here, which is how I think it should be.

Code: Select all

#Font for Menu
fontname "standard 07_57 caps:pixelsize=10"

#Borders
color activeborder grey
color inactiveborder black

#Colors
color menubg '#1a1b1c'
color font '#808080'

#App Menu
command urxvt		urxvt
command tmux+urxvt	"urxvt -e tmux"
command emacs		emacs
command htop		"urxvt -e htop"
command mixer		"urxvt -e alsamixer"
command moc		"urxvt -e mocp"
command MC		        "urxvt -e mc -b"
command links2		"urxvt -e links2"

#use urxvt as terminal
command term "urxvt"

bind CS-Left unmap
bind CS-Right unmap
bind CS-Up unmap
bind CS-Down unmap
bind C-Left unmap
bind C-Right unmap
bind C-Up unmap
bind C-down unmap
mousebind M-2 unmap

mousebind M-3 window_resize
#
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

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

Re: config and dotfiles

Unread post by pidsley » Mon Jul 29, 2013 11:53 pm

DebianJoe wrote:Sure, I'll share my .cwmrc.
You have way more in there than I do. Menus are bloat :)

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: config and dotfiles

Unread post by DebianJoe » Mon Jul 29, 2013 11:54 pm

pidsley wrote:
DebianJoe wrote:Sure, I'll share my .cwmrc.
You have way more in there than I do. Menus are bloat :)
*golf clap*
Yes, yes they are.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: config and dotfiles

Unread post by ivanovnegro » Mon Jul 29, 2013 11:57 pm

Thank you guys for the cwm configs.

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

Re: config and dotfiles

Unread post by dkeg » Tue Aug 06, 2013 4:39 am

enjoy them. I am still using as my main wm right now. I actually installed before i3 when re-installing my system this w/e.

Anyway, I wanted to share a nice vimrc addition. Open man page inside vim with split window for word cursor is over with shift k

Code: Select all

let $GROFF_NO_SGR=1
source $VIMRUNTIME/ftplugin/man.vim
nmap K :Man <cword><CR>

Work hard; Complain less

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

Re: config and dotfiles

Unread post by dkeg » Sat Aug 10, 2013 8:39 pm

just figured out you can utilize includes in Xresources. Cool.

Code: Select all

#include /path/to/colors
...
rest of stuff
...
most recent .cwmrc spec

Code: Select all

## Key bindings

	bind CM-Return unmap
	bind 4-Return urxvt 
	bind CM-x unmap
	bind 4-q delete
	bind M-r unmap
	bind 4-r exec
	bind 4-p /home/dkeg/scripts/dmenu.sh
	bind CMS-l label
	bind CM-f unmap
	bind 4-f maximize 
	bind 4-t "urxvt -e mutt"
	bind 4-e "urxvt -e vi .cwmrc"
	bind 4S-m menusearch
	bind 4S-plus "amixer set Master 5.0%+"
	bind 4S-minus "amixer set Master 5.0%-"
	bind MS-F8 "amixer set Master toggle"
	bind 4S-x /home/dkeg/scripts/screenlock.sh

	bind 4-o unmap
	bind CM-equal unmap	
	bind 4-backslash vmaximize
	bind CMS-equal unmap	
	bind 4-minus hmaximize
	bind M-1 grouponly1
	bind M-2 grouponly2
	bind M-3 grouponly3
	bind MS-1 movetogroup1
	bind MS-2 movetogroup2
	bind MS-3 movetogroup3

## Application menu

	command file "urxvt -g 92x18+50-5 -e mc" 
	command music "urxvt -g 92x18+50+270 -e cmus" 
	command irc "urxvt -g 92x18-50-5 -e irssi"
	command mail "urxvt -g 92x18-50+15 -e mutt"
	command htop "urxvt -g 92x18+50+15 -e htop"
	command news "urxvt -g 92x18+50+270 -e newsbeuter"
	command browser iceweasel	
	command clib "xlinks2 -g www.duckduckgo.com"
           
## Fonts, Style, Color

	fontname "terminus:8"
	color menubg "#252525"
	color font "#d7d7d7"

	borderwidth 1	
	color activeborder "#424242"
	color inactiveborder "#313131"  
	gap 15 5 5 5  #[T,B,L,R] 
          
## Ignore programs; no borders

	ignore xclock

## Groups predefined 

	autogroup 2 "Navigator,Iceape"
	autogroup 2 "Navigator,Iceweasel"
	autogroup 3 "urxvt"
	autogroup 3 "xterm"	

Work hard; Complain less

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

bash prompts

Unread post by dkeg » Mon Sep 02, 2013 8:53 pm

some bash prompt share in the scrot thread, so figured add here.
(edit: removed unwanted spaces)

Code: Select all

PS1="\[\033[0;37m\]\[[\033[0;36m\]\u\[\033[0;37m\]]\342\224\200[\[\033[0;31m\]\h\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200\342\225\274\[\033[0m\]"
If interested, this is the breakdown

Code: Select all

[username] - \[\033[0;37m\]\[[\033[0;36m\]\u\[\033[0;37m\]]

dash - \342\224\200

[hostname] - [\[\033[0;31m\]\h\[\033[0;37m\]]

dash - \342\224\200

[working directory] - [\[\033[0;32m\]\w\[\033[0;37m\]]

newline - \n

line - \[\033[0;37m\]\342\224\224\342\224\200\342\224\200\342\225\274

entered command - \[\033[0m\]
result
Image

Work hard; Complain less

Post Reply