Remove obkey
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user