aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2020-01-29 17:37:06 -0800
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2020-01-29 17:37:06 -0800
commitc8e2c9269f1211841069754a22e85ade0b9da9f1 (patch)
tree0e3cc8852da91a4cd15268932330a0fdd21edca8
parent72fe4a83b581e7e6b26453360272bbe1073462c6 (diff)
downloaddotfiles-c8e2c9269f1211841069754a22e85ade0b9da9f1.tar
dotfiles-c8e2c9269f1211841069754a22e85ade0b9da9f1.tar.gz
dotfiles-c8e2c9269f1211841069754a22e85ade0b9da9f1.tar.bz2
dotfiles-c8e2c9269f1211841069754a22e85ade0b9da9f1.zip
feat(i3): use startx instead of lxdm
-rw-r--r--i3/.config/i3/config4
-rw-r--r--i3/.xinitrc40
2 files changed, 43 insertions, 1 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index d5ac0e4..857598d 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -160,5 +160,7 @@ exec --no-startup-id flock -n "/tmp/barrier.lck" -c /usr/bin/barrier
exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/
# Wallpaper
-exec feh --randomize --bg-scale ~/Pictures/Wallpapers/*
+# without --no-startup-id will make cursor remain in waiting mode.
+# This only appears with startx rather tha lxdm
+exec --no-startup-id feh --randomize --bg-scale ~/Pictures/Wallpapers/*
bindsym $mod+Shift+w exec feh --randomize --bg-scale ~/Pictures/Wallpapers/*
diff --git a/i3/.xinitrc b/i3/.xinitrc
new file mode 100644
index 0000000..b5bcab3
--- /dev/null
+++ b/i3/.xinitrc
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+
+fi
+
+if [ -f $sysmodmap ]; then
+ xmodmap $sysmodmap
+fi
+
+if [ -f "$userresources" ]; then
+ xrdb -merge "$userresources"
+
+fi
+
+if [ -f "$usermodmap" ]; then
+ xmodmap "$usermodmap"
+fi
+
+# start some nice programs
+
+if [ -d /etc/X11/xinit/xinitrc.d ] ; then
+ for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+# Why .xprofile is not called?
+xrandr --dpi 144
+
+exec i3-with-shmlog