f
This commit is contained in:
parent
dbec5e10d0
commit
09708c2646
1 changed files with 3 additions and 11 deletions
14
install.sh
14
install.sh
|
@ -222,14 +222,6 @@ __dep__() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
__monitors__() {
|
|
||||||
if [ ! -e "$HOME/.monitors.conf" ]; then
|
|
||||||
res="$(hyprctl monitors | grep -oP '\d+x\d+@\d+\.\d+' | head -n 1)"
|
|
||||||
touch "$HOME/.monitors.conf"
|
|
||||||
echo "monitor = eDP-1, ${res}, 0x0, 1" >"$HOME/.monitors.conf"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_optional() {
|
pkg_optional() {
|
||||||
_ops=(
|
_ops=(
|
||||||
"cowsay"
|
"cowsay"
|
||||||
|
@ -287,11 +279,11 @@ main() {
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
[ "$__optional__" -eq "true" ] &&
|
[ "$__optional__" == 'true' ] &&
|
||||||
pkg_optional
|
pkg_optional
|
||||||
|
|
||||||
__monitors__
|
# __monitors__
|
||||||
echo_note "found resolution ${res}"
|
# echo_note "found resolution ${res}"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue