Skip to content

Commit

Permalink
Enhanced Xresources (for FHD screen) and Xsession
Browse files Browse the repository at this point in the history
  • Loading branch information
geektophe committed Jul 3, 2015
1 parent 7a3f752 commit fa588f2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
20 changes: 17 additions & 3 deletions Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,20 @@ URxvt.depth: 32
!URxvt*loginShell: true

! Font
!-- Xft settings -- !
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
!URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true
URxvt.font: xft:DejaVu Sans Mono-9,xft:DejaVu Sans Mono for Powerline-9
!URxvt.font: xft:DejaVu Sans Mono-11,xft:PowerLineSymbols-11
URxvt.font: xft:DejaVu Sans Mono:style=Book:pixelsize=12,xft:DejaVu Sans Mono for Powerline
!URxvt.font: xft:DejaVu Sans Mono-10,xft:DejaVu Sans Mono for Powerline
URxvt*letterSpace: -1

! Cut chars

! Scroll bar
URxvt*scrollBar: true
URxvt*scrollBar_right: true
Expand Down Expand Up @@ -118,10 +128,14 @@ URxvt.iso14755: false
URxvt.iso14755_52: false

! Plugins
URxvt.perl-ext-common: default,matcher
URxvt.perl-ext-common: default,matcher,font-size
URxvt.matcher.button: 3
URxvt.url-launcher: /usr/bin/firefox

URxvt.keysym.C-plus: perl:font-size:increase
URxvt.keysym.C-minus: perl:font-size:decrease
URxvt.keysym.C-S-plus: perl:font-size:incglobal
URxvt.keysym.C-S-minus: perl:font-size:decglobal
URxvt.keysym.C-equal: perl:font-size:reset

!
! XScreensave settings
Expand Down
31 changes: 14 additions & 17 deletions Xsession
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

# Starts user dbus daemon
eval $( /usr/bin/dbus-launch --sh-syntax --exit-with-session )

# Configures screen on identified hostname
case $(hostname) in
thor) xrandr --output DVI-1 --right-of DVI-0 ;;
thor) /usr/local/bin/screen-config;;
esac

# Disables speaker
Expand All @@ -12,9 +15,6 @@ xset -b
/usr/bin/xrdb -load ~/.Xresources
/usr/bin/setxkbmap fr bepo

# Starts user dbus daemon
eval $( /usr/bin/dbus-launch --sh-syntax --exit-with-session )

# Starts gnome-keyring-daemon and exports its variables
eval $( /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL
Expand All @@ -28,26 +28,23 @@ export SSH_AUTH_SOCK
/usr/bin/compton -b
/usr/bin/parcellite &
/usr/bin/dropbox &
#/usr/bin/xscreensaver -no-splash &
#~/.config/awesome/bin/mcabber-watch-xscreensaver &
/usr/bin/xautolock -detectsleep -time 10 -locker "i3lock -i ~/.lockscreen.png" &
/usr/bin/xautolock -detectsleep -time 10 -locker "i3lock -i -t $HOME/.lockscreen.png" &

# Starts polkit server
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

# Starts polkit dependant services
/usr/bin/nm-applet &
#/usr/bin/blueman-applet &

# Starts autossh tunnel to honir
if [ -f ~/.ssh/config ]; then
if grep -q 'Host honir-tunnel$' ~/.ssh/config; then
/usr/bin/autossh -xaNf -M 20000 honir-tunnel
fi
if [ -d ~/.config/lsync ] && grep -q 'Host honir$' ~/.ssh/config; then
/usr/bin/lsyncd ~/.config/lsync/etc/lsyncd-client.conf
~/.config/lsync/bin/lsync &
fi
fi
#if [ -f ~/.ssh/config ]; then
# if grep -q 'Host honir-tunnel$' ~/.ssh/config; then
# /usr/bin/autossh -xaNf -M 20000 honir-tunnel
# fi
# if [ -d ~/.config/lsync ] && grep -q 'Host honir$' ~/.ssh/config; then
# /usr/bin/lsyncd ~/.config/lsync/etc/lsyncd-client.conf
# ~/.config/lsync/bin/lsync &
# fi
#fi

exec /usr/bin/awesome

0 comments on commit fa588f2

Please sign in to comment.