config and dotfiles
config and dotfiles
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
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
Re: config and dotfiles
Nice dkeg, also don't forget we have some goodies here as well which are mostly scripts.
Re: config and dotfiles
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
Re: config and dotfiles
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 :)
Re: config and dotfiles
yeah, good idea.
i3 conky config, using json method as described here
https://github.com/dkeg/bloat/blob/master/.conkyrc
i3 conky config, using json method as described here
https://github.com/dkeg/bloat/blob/master/.conkyrc
Work hard; Complain less
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: config and dotfiles
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.
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:
Don't touch fonts.conf here.
My Xdefaults, especially useful on minimal WMs where we have no GUI tools to adjust the font rendering:
My color script I always use.
My bash aliases
I see I still use sudo on Debian, bad habit. ;)
/ENOUGH for today.
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>
Now just put it into your root folder, in /etc/fonts and name it:
Code: Select all
local.conf
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 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'
/ENOUGH for today.
Re: config and dotfiles
OK, my dumb question for today -- why is this a bad habit on Debian?ivanovnegro wrote:I see I still use sudo on Debian, bad habit. ;)
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=
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: config and dotfiles
^ You should know me already, the smiley was obviously not enough. I am playing the Debian asshole card.
Re: config and dotfiles
Yes, thank you for this!ivanovnegro wrote:If your fonts are ugly...
Re: config and dotfiles
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
#
Re: config and dotfiles
You have way more in there than I do. Menus are bloat :)DebianJoe wrote:Sure, I'll share my .cwmrc.
Re: config and dotfiles
*golf clap*pidsley wrote:You have way more in there than I do. Menus are bloat :)DebianJoe wrote:Sure, I'll share my .cwmrc.
Yes, yes they are.
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: config and dotfiles
Thank you guys for the cwm configs.
Re: config and dotfiles
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
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
Re: config and dotfiles
just figured out you can utilize includes in Xresources. Cool.
most recent .cwmrc spec
Code: Select all
#include /path/to/colors
...
rest of stuff
...
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
bash prompts
some bash prompt share in the scrot thread, so figured add here.
(edit: removed unwanted spaces)
If interested, this is the breakdown
result
(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\]"
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\]
Work hard; Complain less