From 8801272c56e21baab775eb36095893b4e28388b7 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 4 Oct 2015 02:23:04 +0200 Subject: new dotfiles --- dot/Xresources | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ dot/xinitrc | 35 ++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 dot/Xresources create mode 100755 dot/xinitrc diff --git a/dot/Xresources b/dot/Xresources new file mode 100644 index 0000000..864d11a --- /dev/null +++ b/dot/Xresources @@ -0,0 +1,68 @@ + emacs.borderWidth: 0 +emacs.internalBorder: 0 + +! By setting the geometry, theoretically the window should be created +! at the right size rather than created and resized afterwards. +! Doesn''t seem to work for Xemacs, though. + +XEmacs.default.attributeForeground: white +XEmacs.default.attributeBackground: black + XEmacs.geometry: 92x44+2+6 + +! s/\( *\) xterm\(.*\)/\1UXTerm\2\r&/ + +! non-TrueType fonts: + xterm*Font: -*-fixed-medium-r-*-*-12-*-*-*-*-*-iso10646-1 + xterm*Font1: -*-fixed-medium-r-*-*-10-*-*-*-*-*-iso10646-1 + xterm*Font2: -*-fixed-medium-r-*-*-12-*-*-*-*-*-iso10646-1 + xterm*Font3: -*-fixed-medium-r-*-*-14-*-*-*-*-*-iso10646-1 + xterm*Font4: -*-fixed-medium-r-*-*-16-*-*-*-*-*-iso10646-1 + xterm*Font5: -*-fixed-medium-r-*-*-18-*-*-*-*-*-iso10646-1 + xterm*Font6: -*-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-1 + +! TrueType fonts: + xterm*faceSize: 12 + xterm*faceSize1: 10 + xterm*faceSize2: 12 + xterm*faceSize3: 14 + xterm*faceSize4: 16 + xterm*faceSize5: 18 + xterm*faceSize6: 20 + xterm*faceName: fixed + xterm*faceName1: fixed + xterm*faceName2: fixed + xterm*faceName3: fixed + xterm*faceName4: fixed + xterm*faceName5: fixed + xterm*faceName6: fixed + + xterm*cursorColor: blue + xterm*reverseVideo: true +xterm*metaSendsEscape: true + xterm*internalBorder: 0 +! xterm*borderWidth: 0 +! setting xterm geometry fucks up the mouse menu! +! xterm*geometry: 93x33-0-4 + xterm*cutNewline: false + +! urxvt -tr -rv +sb -fn "xft:Bitstream Vera Sans Mono:pixelsize=18" + +! URxvt.inheritPixmap: true +URxvt.inheritPixmap: false +URxvt.reverseVideo: true +URxvt.scrollBar: false +URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=18 + + xboard*boardSize: Large + xboard*searchTime: 0:2 +xboard*ponderNextMove: false + xboard*saveGameFile: xboard.pgn + +! xpdf has -fullscreen, but no corresponding resource. +! that''s OK. -fullscreen has a bug: it disables zoom. + xpdf*reverseVideo: true + xpdf*initialZoom: width + xpdf*viKeys: true + xpdf*urlCommand: "firefox '%s'" + xpdf*background: black +xpdf*continuousView: true diff --git a/dot/xinitrc b/dot/xinitrc new file mode 100755 index 0000000..4b44c5a --- /dev/null +++ b/dot/xinitrc @@ -0,0 +1,35 @@ +#!/bin/bash +set -x +USING_GNOME=1 +if [ -r "$XAUTHORITY" -a ! "$XAUTHORITY" -ef "$HOME"/.Xauthority ]; then + ln -sf "$XAUTHORITY" "$HOME"/.Xauthority + XAUTHORITY="$HOME"/.Xauthority +fi +warn() { xmessage ".xinitrc: Warning: $*" & } +xrdb -merge ~/.Xresources || warn "xrdb returned $?" + +# if [ "$USING_GNOME" ]; then +# xrdb -merge - <<'END' || warn "xrdb returned $?" +# ! apparently gnome is setting the bg/fg color of xterm using other things... +# xterm*reverseVideo: false +# END +# fi + +# no gnome: +setxkbmap -option terminate:ctrl_alt_bksp -option caps:super +# gnome: +gsettings set org.gnome.libgnomekbd.keyboard options "['terminate\tterminate:ctrl_alt_bksp', 'caps\tcaps:super']" + +( + cd $HOME/src/samizdat; + screen -d -m -S samizdat; + exec xterm -geometry 160x64+0+0 -e screen -xRR samizdat +) & +# xcompmgr -c & +if [ "$USING_GNOME" ]; then + exec gnome-session-xmonad +else + (exec xmonad || exec fluxbox) & +fi +exec perl -MPOSIX -e pause +xterm # if exec fails -- cgit v1.2.3