Skip to content

Commit

Permalink
Switch from dwm to stwm.
Browse files Browse the repository at this point in the history
Keeping the dwm config as fallback (but maybe I'll switch to openbox as
fallback, since my girlfriend is soon about to use openbox soon).
  • Loading branch information
ayekat committed Dec 28, 2013
1 parent d18139d commit 83d83e0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
14 changes: 0 additions & 14 deletions .local/bin/dwbcsstoggle

This file was deleted.

6 changes: 3 additions & 3 deletions .vimrc
Expand Up @@ -152,7 +152,7 @@ au FileType c,java,php,sh au BufWritePre <buffer> :call StripTrailingWhitespaces
set linebreak " wrap at words (does not work with list)

" Physically wrap lines for certain file types:
au FileType tex,html,php set textwidth=80
au FileType tex,html,php,markdown set textwidth=80
au FileType gitcommit set textwidth=72

" Remove delay for leaving insert mode:
Expand Down Expand Up @@ -239,8 +239,8 @@ if $TERM != "linux"

" Diffs:
hi DiffAdd ctermfg=46 ctermbg=22
hi DiffChange ctermfg=51 ctermbg=24
hi DiffDelete ctermfg=52 ctermbg=52
hi DiffChange ctermfg=45 ctermbg=24
hi DiffDelete ctermfg=52 ctermbg=232
hi DiffText ctermfg=226 ctermbg=94 cterm=none

" Syntax:
Expand Down
22 changes: 15 additions & 7 deletions .xinitrc
Expand Up @@ -29,17 +29,16 @@ fi
export XDG_CONFIG_HOME=$HOME/.config


# MONITOR OPTIONS --------------------------------------------------------------
# OUTPUT -----------------------------------------------------------------------

# Activate (LCD) monitor color calibration:
lcdadjust start


# DWM --------------------------------------------------------------------------
# INPUT ------------------------------------------------------------------------

# Some Java applications refuse to work correctly when they don't know the WM.
# Set the WM name to a known value to fix that:
wmname LG3D
# Load swiss keyboard layout and swap Escape and Caps Lock:
setxkbmap -layout ch -option 'caps:swapescape' &


# SERVICES ---------------------------------------------------------------------
Expand Down Expand Up @@ -79,7 +78,16 @@ urxvtd &
scratchpad &


# SESSION ----------------------------------------------------------------------
# WM ---------------------------------------------------------------------------

# Some Java applications refuse to work correctly when they don't know the WM.
# Set the WM name to a value known to Java to fix that:
wmname LG3D

exec dwm > /tmp/dwm-$USER.log
# Start WM:
case "$WM" in
dwm|stwm|openbox) ;;
*) WM=stwm;; #default to stwm
esac
exec "$WM" > /tmp/xorg-"$USER".log 2>&1

0 comments on commit 83d83e0

Please sign in to comment.