Remove obkey

This commit is contained in:
natemaia
2022-10-06 17:59:40 -07:00
parent 2bdabb3b84
commit 00ce6f6d6c
3 changed files with 39 additions and 17 deletions

View File

@ -20,6 +20,22 @@ if hash lemonbar bar >/dev/null 2>&1; then
bar 2>/dev/null &
fi
px=$(xrandr | grep ' connected' | tail -n1 | grep -o '[0-9]\+x[0-9]\+' | cut -d'x' -f2)
mm=$(xrandr | grep ' connected' | tail -n1 | grep -o '[0-9]\+mm' | tail -n1 | sed 's/mm//')
dpi=$(( (px / mm) * 25 ))
if (( dpi >= 140 )); then
:
elif (( dpi >= 120 )); then
:
elif (( dpi >= 100 )); then
:
else
:
fi
{ # compound command to redirect all output
# workspace settings