-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathup
More file actions
executable file
·61 lines (48 loc) · 1.4 KB
/
up
File metadata and controls
executable file
·61 lines (48 loc) · 1.4 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
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
if [ -f ~/display.sh ]; then
~/display.sh
fi
if [ -f ~/.fehbg ]; then
~/.fehbg
elif [ -x "$(command -v feh)" ]; then
feh --bg-scale $SCRIPTPATH/backgrounds/ign_outer_space.png
fi
if [ -x "$(command -v wal)" ]; then
wal --theme base16-nord
fi
if [ -x "$(command -v sxhkd)" ]; then
sxhkd -c $SCRIPTPATH/sxhkd/sxhkdrc &
fi
if [ -x "$(command -v nm-applet)" ]; then
nm-applet &
fi
if [ -x "$(command -v copyq)" ]; then
copyq &
fi
if [ -x "$(command -v flameshot)" ]; then
flameshot &> /dev/null &
fi
if [ -x "$(command -v picom)" ]; then
picom --config "$SCRIPTPATH"/picom/picom.conf &> /dev/null &
fi
if [ -x "$(command -v dunst)" ]; then
dunst -config "$SCRIPTPATH"/dunst/dunstrc &> /dev/null &
fi
if [ -x "$(command -v streamdeck)" ]; then
streamdeck --no-ui &> /dev/null &
fi
echo "LoadTheme $SCRIPTPATH/theme.toml" > $XDG_RUNTIME_DIR/leftwm/command-0.pipe
index=0
monitors=($(polybar -m | sed s/:.*//))
leftwm-state -q -n -t "$SCRIPTPATH"/leftwm/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