mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
updated X11 configs
This commit is contained in:
parent
5af55e6014
commit
e07631588c
5 changed files with 44 additions and 2 deletions
20
X11/Xresources
Normal file
20
X11/Xresources
Normal file
|
@ -0,0 +1,20 @@
|
|||
! General styling
|
||||
*background: #3d3d3d
|
||||
*foreground: #99aa99
|
||||
|
||||
! XTerm
|
||||
xterm*dynamiccolors: true
|
||||
xterm*utf8: 2
|
||||
xterm*geometry: WINDOWGEOMETRY
|
||||
xterm*visualBell: on
|
||||
xterm*highlightSelection: true
|
||||
!xterm*background: lightblack
|
||||
!xterm*foreground: lightblue
|
||||
!xterm*colorMode: on
|
||||
!xterm*colorBD: lightcyan
|
||||
!xterm*colorBDMode: on
|
||||
!xterm*colorUL: white
|
||||
!xterm*colorULMode: on
|
||||
!xterm*scrollTtyOutput: false
|
||||
!xterm*scrollKey: true
|
||||
!xterm*scrollBar: true
|
8
X11/user-dirs.dirs
Normal file
8
X11/user-dirs.dirs
Normal file
|
@ -0,0 +1,8 @@
|
|||
XDG_DESKTOP_DIR="$HOME/Desktop"
|
||||
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||
XDG_TEMPLATES_DIR="$HOME/Templates"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/Public"
|
||||
XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||
XDG_MUSIC_DIR="$HOME/Music"
|
||||
XDG_PICTURES_DIR="$HOME/Pictures"
|
||||
XDG_VIDEOS_DIR="$HOME/Videos"
|
74
X11/xinitrc
Normal file
74
X11/xinitrc
Normal file
|
@ -0,0 +1,74 @@
|
|||
#!/bin/sh
|
||||
#Standard Stuff
|
||||
. /etc/X11/xinit/xinitrc-common
|
||||
if [ -f $HOME/.Xclients ]; then
|
||||
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
|
||||
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
|
||||
elif [ -f /etc/X11/xinit/Xclients ]; then
|
||||
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
|
||||
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
|
||||
else
|
||||
# Failsafe settings. Although we should never get here
|
||||
# (we provide fallbacks in Xclients as well) it can't hurt.
|
||||
[ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
|
||||
[ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
|
||||
[ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
|
||||
[ -x /usr/bin/twm ] && /usr/bin/twm
|
||||
fi
|
||||
# ---------------------------------------------------------------
|
||||
# OWN
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
# Load Main Xresources
|
||||
[ -f ~/.Xresources ] && xrdb -merge $HOME/.Xresources
|
||||
|
||||
# Load specific Xresources
|
||||
XRESD="$HOME/.Xresources.d/"
|
||||
for f in "$XRESD*"
|
||||
do
|
||||
xrdb -merge "$f"
|
||||
done
|
||||
|
||||
numlockx on # turn on numlock
|
||||
setxkbmap -option caps:escape # caps lock works as escape
|
||||
|
||||
|
||||
# Load session
|
||||
DEFAULT_SESSION="awesome >> $HOME/.cache/awesome/stdout 2>> $HOME/.cache/awesome/stderr"
|
||||
XTERM=xterm
|
||||
case $1 in
|
||||
xfce4)
|
||||
RUN=startxfce4
|
||||
;;
|
||||
awesome)
|
||||
xscreensaver -nosplash &
|
||||
nm-applet &
|
||||
RUN=awesome
|
||||
;;
|
||||
enlightenment)
|
||||
RUN=enlightenment_start
|
||||
;;
|
||||
openbox)
|
||||
RUN=openbox
|
||||
;;
|
||||
cinnamon)
|
||||
RUN=cinnamon
|
||||
;;
|
||||
kde)
|
||||
RUN=startkde
|
||||
;;
|
||||
gnome)
|
||||
RUN=gnome-session
|
||||
;;
|
||||
unity)
|
||||
RUN=unity
|
||||
;;
|
||||
xterm)
|
||||
RUN=xterm
|
||||
;;
|
||||
*)
|
||||
RUN=$DEFAULT_SESSION
|
||||
;;
|
||||
esac
|
||||
|
||||
exec "$RUN" || exec "$XTERM"
|
5
X11/xsession
Normal file
5
X11/xsession
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $(command -v redshift) ]]; then
|
||||
redshift &
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue