-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·29 lines (24 loc) · 1.08 KB
/
.xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
cd "$HOME"
DURATION_UNTIL_SCREENSAVER=$(cat "$XDG_CONFIG_HOME/dotfiles/duration-until-screensaver")
XRANDR_DPI=$(cat "$XDG_CONFIG_HOME/dotfiles/xrandr-dpi")
export $(dbus-launch)
xhost localhost
xhost si:localuser:root
xrdb -merge .Xresources
xbindkeys
xcompmgr &
configure-screensaver
xrandr --dpi "$XRANDR_DPI"
set-background
ln -nsf "/sys/devices/platform/coretemp.0/hwmon/$(ls -1 "/sys/devices/platform/coretemp.0/hwmon"|head -n1)/temp1_input" "$HOME/.config/dotfiles/temperature"
nohup xautolock -time "$(echo $DURATION_UNTIL_SCREENSAVER/60|bc)" -detectsleep -locker lock-screen 1>/dev/null 2>&1 &
parcellite &
blueman-applet &
flameshot &
nohup bash -c 'while true; do sleep 5;[ -n "$(system battery|grep Charging)" ] && continue;A=$(system battery|grep Now|sed -e 's/Now://');[ "$((A))" -lt "$(cat ~/.config/dotfiles/battery_threshold)" ] && zenity --warning --text="Please connect charger, battery low" --no-wrap --timeout=5; done' 1>/dev/null 2>/dev/null &
/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1 &
dropbox start &
podcasts &
cd Desktop
i3