about summary refs log tree commit diff
path: root/configs/shared/x_server
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T14·14+0000
commitf7b3e0a7a92903307ef1f4c66992721be6e01e08 (patch)
tree11f1959ee6dc34d2f8b20e6425cbb85700b55c63 /configs/shared/x_server
parentbf33edaa6efbf3572d9335bb07b530af249de0d2 (diff)
Drop OSX support; support desktop, laptop, cloudtop
Dropping support for OSX. Moving forward these dotfiles will depend on Linux
systems. Furthermore, since I'm support a ~/bin, the machines that consume these
dotfiles depend on i386 architectures. Linux and i386 are two dependencies that
I'm okay with since the leverage this assumption provides, makes their existence
tolerable.

There is some Google leakage herein, which includes aliases, functions, and
mentions of cloudtop. For now, this is okay. I may break the Google specific
code into its own repository, but for now, this is less maintenance.

This also introduces a ~/.profile instead of erroneously defining environment
variables in my zshrc file, which was unadvised.

This is a large commit and also introduces new aliases, variables, functions
that I accumulated over the past week or so while migrating away from OSX and
onto my new setup. Hopefully in the future I'll be more precise with my commits.
Diffstat (limited to 'configs/shared/x_server')
-rw-r--r--configs/shared/x_server/.Xmodmap7
-rw-r--r--configs/shared/x_server/.Xresources2
-rw-r--r--configs/shared/x_server/.xsessionrc28
3 files changed, 37 insertions, 0 deletions
diff --git a/configs/shared/x_server/.Xmodmap b/configs/shared/x_server/.Xmodmap
new file mode 100644
index 000000000000..518793b86705
--- /dev/null
+++ b/configs/shared/x_server/.Xmodmap
@@ -0,0 +1,7 @@
+! remap caps-lock to escape
+remove Lock = Caps_Lock
+keysym Caps_Lock = Escape
+
+! swap ctrl and super (similar to OSX) -- currently not working
+! remove mod4 = Super_L
+! add control = Super_L
diff --git a/configs/shared/x_server/.Xresources b/configs/shared/x_server/.Xresources
new file mode 100644
index 000000000000..f29eb2945110
--- /dev/null
+++ b/configs/shared/x_server/.Xresources
@@ -0,0 +1,2 @@
+! value for laptop
+Xft.dpi: 200
diff --git a/configs/shared/x_server/.xsessionrc b/configs/shared/x_server/.xsessionrc
new file mode 100644
index 000000000000..062293bf5a47
--- /dev/null
+++ b/configs/shared/x_server/.xsessionrc
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+source ~/.profile
+
+export DESKTOP_SESSION=cinnamon  # gnome for trusty.
+
+# NOTE: This may break your compose key.
+# See http://g/i3-users/YBexXGbik7E for more details.
+export GTK_IM_MODULE=xim
+
+# Desktop background color.
+xsetroot -solid "#333333"
+
+# start the urxvt daemon
+urxvtd -q -f -o
+
+# set kbds
+xmodmap -e 'remove Lock = Caps_Lock'
+xmodmap -e 'keysym Caps_Lock = Escape'
+
+# set key repeat preferences
+xset r rate 250 60
+
+# setup OSX style scrolling for gLinux Mouse
+xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Natural Scrolling Enabled' 1
+
+# increase mouse speed
+xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Accel Speed' 1