xinitrc - replace with systemd stuffs
This commit is contained in:
parent
da7c0c65db
commit
f6b0e63042
1
config/systemd/user/default.target.wants/dunst.service
Symbolic link
1
config/systemd/user/default.target.wants/dunst.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/dunst.service
|
1
config/systemd/user/default.target.wants/feh.service
Symbolic link
1
config/systemd/user/default.target.wants/feh.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/feh.service
|
1
config/systemd/user/default.target.wants/redshift.service
Symbolic link
1
config/systemd/user/default.target.wants/redshift.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/redshift.service
|
1
config/systemd/user/default.target.wants/xautolock.service
Symbolic link
1
config/systemd/user/default.target.wants/xautolock.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/xautolock.service
|
1
config/systemd/user/default.target.wants/xcape.service
Symbolic link
1
config/systemd/user/default.target.wants/xcape.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/xcape.service
|
1
config/systemd/user/default.target.wants/xset.service
Symbolic link
1
config/systemd/user/default.target.wants/xset.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/felix/dotfiles/config/systemd/user/xset.service
|
10
config/systemd/user/dunst.service
Normal file
10
config/systemd/user/dunst.service
Normal 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
|
11
config/systemd/user/feh.service
Normal file
11
config/systemd/user/feh.service
Normal 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
|
10
config/systemd/user/redshift.service
Normal file
10
config/systemd/user/redshift.service
Normal 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
|
10
config/systemd/user/xautolock.service
Normal file
10
config/systemd/user/xautolock.service
Normal 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
|
10
config/systemd/user/xcape.service
Normal file
10
config/systemd/user/xcape.service
Normal 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
|
10
config/systemd/user/xset.service
Normal file
10
config/systemd/user/xset.service
Normal 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
45
xinitrc
@ -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
|
|
Loading…
Reference in New Issue
Block a user