-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathup
executable file
·35 lines (26 loc) · 868 Bytes
/
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
#!/bin/bash
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
$SCRIPTPATH/down
#boot compton if it exists
if [ -x "$(command -v compton)" ]; then
compton &> /dev/null &
fi
#set the theme.toml config
echo "LoadTheme $SCRIPTPATH/theme.toml" > $XDG_RUNTIME_DIR/leftwm/commands.pipe
#set background
if [ -x "$(command -v feh)" ]; then
feh --bg-scale $SCRIPTPATH/background.jpg
fi
#find the primary monitor
monitor="$(polybar -m | grep +0+0 | sed s/:.*// | tac)"
#TOP BAR
polybar -c $SCRIPTPATH/polybar_top.ini topbar &> /dev/null &
#LEFT BAR
conky -c $SCRIPTPATH/conky.config &> /dev/null
##BOTTOM BARS
index=0
leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' | while read -r width x y
do
monitor=$monitor offsetx=$x offsety=$y width=$width polybar -c $SCRIPTPATH/polybar_bottom.ini mainbar0 &> /dev/null &
let index=index+1
done