76 lines
1.8 KiB
Bash
Executable File
76 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# set background color
|
|
#xsetroot -solid "#222222"
|
|
#feh --bg-scale /home/jon/Pictures/tokyo-skyline-bg.png
|
|
feh --bg-scale /home/jon/Pictures/spaceship_construction_3840x1600.png
|
|
|
|
# fix trackball left and middle click
|
|
ELECOM_ID=$(xinput list | grep -E -i "elecom.*pointer" | sed -r 's/.*id=([0-9]+).*/\1/')
|
|
xinput set-button-map 8 1 2 3 4 5 6 7 8 1 10 11 2
|
|
|
|
# launch ime for typing in japanese
|
|
#ibus-daemon --xim &
|
|
|
|
#xrandr --output DP-2 --primary --auto \
|
|
# --output DP-3 --auto --right-of DP-2 \
|
|
# --output DP-1 --auto --left-of DP-2
|
|
|
|
|
|
# set default pulseaudio "sink" (output device) to index 21
|
|
#pacmd set-default-sink 21
|
|
pacmd set-default-sink alsa_output.usb-Audioengine_Audioengine_2_-00.iec958-stereo
|
|
|
|
#############################################
|
|
# Launch scripts
|
|
# Check if running first for idempotency
|
|
#############################################
|
|
|
|
# compositor - for true transparency
|
|
if pgrep -x -u $USERNAME "compton" > /dev/null
|
|
then
|
|
#already running - do nothing
|
|
echo "compton - Already Running ..."
|
|
else
|
|
# not running - launch
|
|
compton &
|
|
fi
|
|
|
|
# pasystray - volume control
|
|
if pgrep -x -u $USERNAME "pasystray" > /dev/null
|
|
then
|
|
#already running - do nothing
|
|
echo "pasystray - Already Running ..."
|
|
else
|
|
# not running - launch
|
|
pasystray &
|
|
fi
|
|
|
|
# clipboard manager
|
|
if pgrep -x -u $USERNAME "copyq" > /dev/null
|
|
then
|
|
#already running - do nothing
|
|
echo "copyq - Already Running ..."
|
|
else
|
|
# not running - launch
|
|
copyq &
|
|
fi
|
|
|
|
# launch menu bar status script
|
|
if pgrep -x "jstat" >/dev/null
|
|
then
|
|
echo "jstat - Already Running ..."
|
|
else
|
|
echo "jstat stopped - starting now"
|
|
jstat &
|
|
fi
|
|
|
|
# launch keepassxc
|
|
if pgrep -x "keepassxc" >/dev/null
|
|
then
|
|
echo "jstat - Already Running ..."
|
|
else
|
|
echo "jstat stopped - starting now"
|
|
keepassxc &
|
|
fi
|