Skip to content

Latest commit

 

History

History
210 lines (186 loc) · 7.77 KB

thinkpad.xprofile.org

File metadata and controls

210 lines (186 loc) · 7.77 KB

thinkpad xprofile

fileheader

#------------------------------------------------------------------
# THIS FILE IS GENERATED (To edit please open file from link above)
#------------------------------------------------------------------

xprofile

path

  • ensure that path is set before initializing guix
# make sure that custom scripts are reachable
export PATH=${HOME}/bin:${HOME}/bin/bin:${HOME}/.local/bin:$PATH

set guix profile(s)

  • make sure that the path is not modified after guix profile init
source $HOME/bin/guix-set-profiles

guix configuration for ssl certificates

# with the installation of nss-cert the following env vars are useful otherwise
# I get 'tls_process_server_certificate:certificate verify failed' errors
export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export GIT_SSL_CAINFO="$SSL_CERT_FILE"

guix locale

export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale

exwm - java / configuration

# Make Java applications aware this is a non-reparenting window manager.
export _JAVA_AWT_WM_NONREPARENTING=1

DISABLED compositor

  • is actually loaded by emacs during startup
# compositor
# pgrep compton || compton & # start only if wanted (e.g. for window effects and watching videos)

DISABLED kmonad

  • done by systemd (configured in configuration.nix)
# keyboard configuration (now done via systemctl)
# $HOME/bin/kmonad-0.3.0-linux $HOME/.kmonad/thinkpad.internal.kbd &
# $HOME/bin/kmonad-0.3.0-linux $HOME/.kmonad/filco.kbd &

set powersave to silence cpu fan a bit

# power consumption
power-save.sh

set common environment variables (editor, wine)

# Themes, etc
# gnome-settings-daemon &

# export EMACS_SOCKET="/run/user/1000/emacs/server" # `lsof -w -c /.*emacs.*/ | grep 'server type' | tr -s " " | cut -d' ' -f9`
export VISUAL=emacsclient
export EDITOR="$VISUAL" #  -s $EMACS_SOCKET
export TERM=dumb-emacs-ansi
export LC_COLLATE="C" # sort dot files by ls first
export WINEPREFIX="${HOME}/.wine32"

start polybar

# bar
polybar-launch

fallback cursor, keyboard repeat rate

# Fallback cursor
xsetroot -cursor_name left_ptr

# Keyboard repeat rate
xset r rate 500 60  # r rate delay (ms) (repeats/second)
# xset r off # switch repeat off

configure powermanager for lid-close

# make sure that lid closed will actually do what is configured (currently hibernate on battery, suspend on ac)
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false

start ssh-agent and preload some keys

# make sure ssh has all (default) keys loaded
pkill ssh-agent
eval `ssh-agent -s`
for i in ${HOME}/.ssh/preload/*; do ssh-add $i; done

enable screensaver i3lock

# enable screen saver
xset 300 60
xss-lock -n ~/bin/dim-screen.sh -- i3lock -c 000000 &

DISABLED configure touchpad (to be not too touchy)

  • synclient synaptics (and thus synclient) was disabled because on the thinkpad it regularly lost connection to the touchpad => touchpad was no longer usable now libinput is used instead, which cannot be configured like this and has some shortcomings :-(
       
    # touchpad tweaks
    # ---------------
    syndaemon -i 0.5 -k -R -d   # wait 1 seconds after typing until touchpad works again
    synclient VertTwoFingerScroll=1   # allow two finger scrolling
    synclient HorizTwoFingerScroll=1
    synclient PalmDetect=1 PalmMinZ=0 PalmMinWidth=7   # allow palm detection
    synclient VertScrollDelta=50
    synclient HorizScrollDelta=200
    synclient MinSpeed=2
    synclient AccelFactor=0.03
    synclient MaxSpeed=10
    synclient AreaRightEdge=5000 AreaLeftEdge=2000 AreaTopEdge=2000 AreaBottomEdge=5000   # limit area of touchpad to initial gesture detection
    # list all options with 'synclient -l'
        

configure wacom tablet

# wacom tablet tweaks
# -------------------
xsetwacom set "Wacom BambooPT 2FG 4x5 Pen stylus" RawSample 9 # reduce jitter when using the pen/stylus
xsetwacom set "Wacom BambooPT 2FG 4x5 Pen stylus" Suppress 10 #
xsetwacom set "Wacom BambooPT 2FG 4x5 Pad pad" AbsWheelUp 0   #
xsetwacom set "Wacom BambooPT 2FG 4x5 Pad pad" AbsWheelDown 0 #
xsetwacom set "Wacom BambooPT 2FG 4x5 Pen stylus" Threshold 600 # make sure that pen needs some pressure before actully painting

disable middle mouse button

# disable middle mouse button
xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24"

mx ergo mouse speed adjustments

# make adjustments to mx ergo mouse
xinput --set-prop 21 "Device Accel Constant Deceleration" 0.5
xinput --set-prop 21 "Evdev Scrolling Distance" 1 1 1

DISABLED imwheel configuration (disabled)

# allow for application specific scroll speed (currently experiencing problems with google-chrome-stable watching netflix and eclipse [cpu load going up])
# -g: Disable the use of Focus Events for button grabs
# imwheel # configured in ~/.imwheelrc

start xfce power manager

# Programs to start upon startup
xfce4-power-manager &

udiskie

# pasystray --include-monitors &   # Pulseaudio volume control from tray, started via emacs init.el
pgrep udiskie || udiskie -t &      # Disk mount utility

redshift

# add red to color on night hours (location = berlin/hamburg)
pgrep redshift || redshift -l 52.5:13.4 &

altr2hyper

  • map altr to hyper
# now completely covered by kmonad!
# swap windows and alt left, used to be configured in nix configuration, now kmonad takes care of that!
# sleep 10s && ~/bin/switchAltWin &

# make altgr functions as hyper key
# TODO: this does not function all the time
# disable for gaming
altr2hyper &

DISABLED experimentals (disabled)

# now completely covered by kmonad!
# switched off for gaming {
# make space function as ctrl if pressed in conjunction with another key
# sleep 10s && ~/bin/space2ctrl &
# } end of switched off for gaming

# disabled
#export XMODIFIERS=@im=exwm-xim
#export GTK_IM_MODULE=xim
#export QT_IM_MODULE=xim
#export CLUTTER_IM_MODULE=xim