-
Notifications
You must be signed in to change notification settings - Fork 2
/
up
executable file
·47 lines (40 loc) · 1.24 KB
/
up
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
export QT_QPA_PLATFORMTHEME="qt5ct"
autorandr -c
# Down the last running theme
if [ -f "/tmp/leftwm-theme-down" ]; then
/tmp/leftwm-theme-down
rm /tmp/leftwm-theme-down
fi
ln -s "$SCRIPTPATH"/down /tmp/leftwm-theme-down
# Boot picom or compton if it exists
if [ -x "$(command -v picom)" ]; then
picom --experimental-backends --config "$SCRIPTPATH"/picom/picom.conf &> /dev/null &
elif [ -x "$(command -v compton)" ]; then
compton &> /dev/null &
fi
# Set the theme.toml config
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
# Set background
if [ -x "$(command -v feh)" ]; then
feh --no-fehbg --bg-fill "$SCRIPTPATH"/background.jpg
fi
#Applications to 2run at startup
#eww daemon
emacs --daemon &
dunst -conf "$SCRIPTPATH"/dunst/dunstrc &
blueman-applet &
nm-applet &
lxqt-policykit-agent &
xfce4-power-manager &
numlockx on
#Start Polybar
export index=0
monitors=($(polybar -m | sed s/:.*//))
leftwm-state -q -n -t "$SCRIPTPATH"/liquid/sizes.liquid | sed -r '/^\s*$/d' | while read -r width x y
do
barname="mainbar$index"
monitor=${monitors[index]} width=$(( width - 16 )) polybar -c "$SCRIPTPATH"/polybar/polybar.config $barname &> /dev/null &
let index=index+1
done