xinitrc - replace with systemd stuffs

This commit is contained in:
Felix Van der Jeugt 2015-04-18 13:50:14 +02:00
parent da7c0c65db
commit f6b0e63042
13 changed files with 67 additions and 45 deletions

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/dunst.service

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/feh.service

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/redshift.service

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/xautolock.service

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/xcape.service

View File

@ -0,0 +1 @@
/home/felix/dotfiles/config/systemd/user/xset.service

View File

@ -0,0 +1,10 @@
[Unit]
Description=Dunst Notification Daemon
After=display-manager.service
Wants=display-manager.service
[Service]
ExecStart=/usr/bin/dunst
[Install]
WantedBy=default.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Feh Background Image Loader
After=display-manager.service
Wants=display-manager.service
[Service]
Type=oneshot
ExecStart=/usr/bin/feh --bg-scale '/home/felix/Pictures/lain.png'
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Redshift
After=display-manager.service
Wants=display-manager.service
[Service]
ExecStart=/usr/bin/redshift
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=X Autolocker
After=display-manager.service
Wants=display-manager.service
[Service]
ExecStart=/usr/bin/xautolock -time 1 -locker xsecurelock
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=XCape Modifier Key Modifier
After=display-manager.service
Wants=display-manager.service
[Service]
ExecStart=/usr/bin/xcape -d -t 100 -e 'Super_L=Scroll_Lock;Shift_L=Escape'
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Set screen timeout properties
After=display-manager.service
Wants=display-manager.service
[Service]
ExecStart=/usr/bin/xset dpms 0 0 50 s off
[Install]
WantedBy=default.target

45
xinitrc
View File

@ -1,45 +0,0 @@
#!/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
# For now, start stuff here
redshift &
dunst &
xcape -t 100 -e 'Super_L=Scroll_Lock;Shift_L=Escape'
feh --bg-scale '/home/felix/Pictures/lain.png' &
# screen locking
xset dpms 0 0 50 &
xset s off &
xautolock -time 1 -locker xsecurelock &
# Start herbstluftwm in locked mode. Is unlocked after autostart.
exec xmonad