summaryrefslogtreecommitdiffstats
path: root/.xprofile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-27 13:40:58 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-27 13:40:58 -0400
commit782e66df1a5161ec165206e1865ed4e3574927a6 (patch)
treea6114784701c880f3688f94e497c48f0c97588a6 /.xprofile
parente1ccd14331d66168937f5e6c03c204aa85c73af6 (diff)
downloadeibhear-782e66df1a5161ec165206e1865ed4e3574927a6.tar.gz
eibhear-782e66df1a5161ec165206e1865ed4e3574927a6.tar.zst
eibhear-782e66df1a5161ec165206e1865ed4e3574927a6.zip
xprofile distinct for DM users
Diffstat (limited to '.xprofile')
-rw-r--r--[l---------].xprofile27
1 files changed, 26 insertions, 1 deletions
diff --git a/.xprofile b/.xprofile
index aa7da3a..bd4be7a 120000..100644
--- a/.xprofile
+++ b/.xprofile
@@ -1 +1,26 @@
-.profile \ No newline at end of file
+#!/bin/sh
+
+# This file runs when a DM logs you into a graphical session.
+# If you use startx/xinit like a Chad, this file will also be sourced.
+
+setbg & # set the background with the `setbg` script
+xcompmgr & # xcompmgr for transparency
+dwmbar & # script for updating the status bar
+dunst & # dunst for notifications
+sxhkd & # Bind keys with sxhkd
+xset r rate 300 50 & # Speed xrate up
+unclutter & # Remove mouse when idle
+
+# Switch to US international with Caps as Mod/Escape
+setxkbmap -option caps:super -variant altgr-intl && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
+# Properties button extra Mod/Escape
+xmodmap -e 'keycode 135 = Super_R' &
+
+xrandr -q | grep "DP2 con" >/dev/null 2>&1 && xrandr --output DP1 --auto --output LVDS1 --off
+
+# This loop will run the `refbar` script to refresh the statusbar whenever a
+# command changes the music player's status.
+while : ; do
+ mpc idle >/dev/null 2>&1
+ refbar
+done &