Minor style cleanups in userscripts implementation
This commit is contained in:
parent
933ef2b736
commit
e23f439b65
2 changed files with 67 additions and 44 deletions
|
@ -1,28 +1,39 @@
|
|||
#!/usr/bin/env sh
|
||||
# Env vars
|
||||
source /etc/profile
|
||||
which $TERM || export TERM=st
|
||||
which $BROWSER || export BROWSER=surf
|
||||
[ -z "$MOZ_USE_XINPUT2" ] && export MOZ_USE_XINPUT2=1
|
||||
[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME=~/.config
|
||||
|
||||
# Setup audio and a few sensible X defaults
|
||||
alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore
|
||||
xmodmap /usr/share/sxmo/xmodmap_caps_esc
|
||||
xsetroot -mod 3 2 -fg '#000000' -bg '#888888'
|
||||
xset s off -dpms
|
||||
alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore
|
||||
#xset r off
|
||||
|
||||
# Xresources
|
||||
xrdb /usr/share/sxmo/xresources_xcalc.xr
|
||||
|
||||
# E.g. for PBP
|
||||
synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25
|
||||
keynav &
|
||||
|
||||
pkill lisgd
|
||||
# Kill old hanging daemons
|
||||
pkill lisgd && pkill conky
|
||||
|
||||
# Start daemons
|
||||
conky -c /usr/share/sxmo/conky.conf -d
|
||||
autocutsel & autocutsel -selection PRIMARY &
|
||||
keynav &
|
||||
autocutsel &
|
||||
autocutsel -selection PRIMARY &
|
||||
sxmo_statusbar.sh &
|
||||
exec dbus-run-session sh -c "dunst -conf /usr/share/sxmo/dunst.conf & lisgd &
|
||||
[ -d "~/.sxmo" ] && notify-send -t 0 -u critical '~/.sxmo is deprecated. To preserve your modem logs, please move the contents of the ~/.sxmo folder into the $XDG_CONFIG_HOME/sxmo/modem/ folder' &
|
||||
dwm 2> ~/.dwm.log"
|
||||
|
||||
# Start dunst, lisgd (after dunst so it's in dbus path) and dwm
|
||||
LEGACYSXMOFOLDERWARNING="
|
||||
Warning: ~/.sxmo is deprecated since sxmo-utils 1.1.5.
|
||||
Modem call logs/texts location have moved.
|
||||
Please move the contents of the ~/.sxmo/ folder to $XDG_CONFIG_HOME/sxmo/modem/
|
||||
"
|
||||
|
||||
exec dbus-run-session sh -c "
|
||||
dunst -conf /usr/share/sxmo/dunst.conf &
|
||||
lisgd &
|
||||
[ -d "/home/$USER/.sxmo" ] && notify-send -t 0 -u critical '$LEGACYSXMOFOLDERWARNING' &
|
||||
dwm 2> ~/.dwm.log
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue