mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-11 23:14:22 -05:00
61 lines
1.6 KiB
Bash
Executable File
61 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#------------------------------------------------------------------------------
|
|
# Path - /usr/bin/lemonbar_launch
|
|
# GitHub - https://github.com/The-Repo-Club/
|
|
# Author - The-Repo-Club [wayne6324@gmail.com]
|
|
# Start On - Tue 07 Dec 14:36:53 GMT 2021
|
|
# Modified On - Mon 31 January 2022, 10:36:09 pm (GMT)
|
|
#------------------------------------------------------------------------------
|
|
# shellcheck disable=all
|
|
|
|
killall -q lemonbar
|
|
killall -q lemonbar_config
|
|
|
|
topleft() {
|
|
lemonbar_config -tl | lemonbar -p -g 1920x18+0+0 -F "#e5e9f0" -B "#283036" -U "#434c5e" -o -3 -f "Hack Nerd Font:size=10" -o -2 -f "Noto Sans CJK JP" | $SHELL
|
|
}
|
|
|
|
bottomleft() {
|
|
lemonbar_config -bl | lemonbar -p -b -g 1920x18+0+0 -F "#e5e9f0" -B "#283036" -U "#434c5e" -o -3 -f "Hack Nerd Font:size=10" -o -2 -f "Noto Sans CJK JP" | $SHELL
|
|
}
|
|
|
|
topright() {
|
|
lemonbar_config -tr | lemonbar -p -g 1920x18+1920+0 -F "#e5e9f0" -B "#283036" -U "#434c5e" -o -3 -f "Hack Nerd Font:size=10" -o -2 -f "Noto Sans CJK JP" | $SHELL
|
|
}
|
|
|
|
bottomright() {
|
|
lemonbar_config -br | lemonbar -p -b -g 1920x18+1920+0 -F "#e5e9f0" -B "#283036" -U "#434c5e" -o -3 -f "Hack Nerd Font:size=10" -o -2 -f "Noto Sans CJK JP" | $SHELL
|
|
}
|
|
|
|
if [ "$1" ]; then
|
|
case $1 in
|
|
-tl | --topleft)
|
|
topleft
|
|
wait
|
|
;;
|
|
-bl | --bottomleft)
|
|
bottomleft
|
|
wait
|
|
;;
|
|
-tr | --topright)
|
|
topright
|
|
wait
|
|
;;
|
|
-br | --bottomright)
|
|
bottomright
|
|
wait
|
|
;;
|
|
-all)
|
|
lemonbar_launch -tl &
|
|
lemonbar_launch -bl &
|
|
lemonbar_launch -tr &
|
|
lemonbar_launch -br &
|
|
wait
|
|
;;
|
|
*)
|
|
wait
|
|
;;
|
|
esac
|
|
fi
|