summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-11-06 19:30:56 +0100
committerJulian T <julian@jtle.dk>2020-11-06 19:30:56 +0100
commit5fd95daceb6663f78647358e232a6396ff385ed0 (patch)
treede92776c45daf94132c44c3217e0590a919ed315
parentda4b04592970b566a5a0019385363bd75a49fab1 (diff)
Added dwm launch things
-rw-r--r--dwm/.xinitrc4
-rwxr-xr-xdwm/Scripts/dwmsession17
-rwxr-xr-xxinit/.xprofile12
3 files changed, 33 insertions, 0 deletions
diff --git a/dwm/.xinitrc b/dwm/.xinitrc
new file mode 100644
index 0000000..9ad58f0
--- /dev/null
+++ b/dwm/.xinitrc
@@ -0,0 +1,4 @@
+
+source ~/.xprofile
+
+exec $HOME/Scripts/dwmsession
diff --git a/dwm/Scripts/dwmsession b/dwm/Scripts/dwmsession
new file mode 100755
index 0000000..5fde91a
--- /dev/null
+++ b/dwm/Scripts/dwmsession
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+PIDFILE=/var/run/user/$UID/dwm.pid
+
+kill $(<$PIDFILE)
+
+if [ "$1" = "-e" ]; then
+ exit
+fi
+
+echo $$ > $PIDFILE
+
+slstatus &
+
+while true; do
+ dwm >> /tmp/dwmsession.log
+ sleep 1
+done
diff --git a/xinit/.xprofile b/xinit/.xprofile
new file mode 100755
index 0000000..4ddff10
--- /dev/null
+++ b/xinit/.xprofile
@@ -0,0 +1,12 @@
+export _JAVA_AWT_WM_NONREPARENTING=1
+export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
+export TERM=termite
+export TERMINAL=termite
+
+# export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh
+
+export XKB_DEFAULT_LAYOUT=us
+export XKB_DEFAULT_VARIANT=altgr-intl
+
+export LOPTS="screensaver composer gnome-keyring"
+source $HOME/Scripts/xlaunchrc