#!/bin/zsh if [ "$1" = "lock" ];then #synclient TouchpadOff=1 MOUSE=$(xinput list | grep Mouse | sed -e 's/.*id=//' | cut -f 1) TRACK=$(xinput list | grep 'TouchPad' | sed -e 's/.*id=//' | cut -f 1) xinput set-prop $MOUSE "Device Enabled" 0 xinput set-prop $TRACK "Device Enabled" 0 while [ ! "$PASSWORD" = "a" ];do export PASSWORD=$((rofi -dmenu $(i3-color-rofi))