xdotool key 'super+2' && sleep 0.1
xdotool key 'super+1' && sleep 0.1
-if acpi | grep -q '[0-9]%' &>/dev/null; then
+if iconf islaptop; then
export ISLAPTOP="true"
echo "laptop detected"
else
addenv -f "QT_QPA_PLATFORMTHEME" "qt5ct"
addenv -f "PAGER" "less"
-command -v nvim &>/dev/null && addenv -f "EDITOR" "$(which nvim)"
+addenv -f "EDITOR" "$(which nvim)"
# needed for instantLOCK
if grep -q 'nobody' </etc/groups || grep -q 'nobody' </etc/group; then
if acpi | grep -q '[0-9]%' &>/dev/null; then
# config file to indicate being a laptop
echo "device appears to be a laptop"
- touch .cache/islaptop
+ iconf islaptop 1
fi
# needed for nm-applet start
if lspci | grep -Eiq '(wifi|wireless)'; then
echo "device has wifi capabilities"
- touch .cache/haswifi
+ iconf haswifi 1
fi
cd