Files
unix-scripts/System/focusMode.sh
2023-04-03 17:47:42 +02:00

12 lines
249 B
Bash
Executable File

#!/bin/bash
state=$(cat ~/Scripts/.focusState)
if test $state -eq 0; then
polybar-msg cmd hide
i3-msg gaps inner all set 0
echo 1 > ~/Scripts/.focusState
else
polybar-msg cmd show
i3-msg gaps inner all set 30
echo 0 > ~/Scripts/.focusState
fi