Compare commits

...

2 Commits

Author SHA1 Message Date
John Mertz fcf2b91b7b More even background padding 2024-02-22 22:50:00 -07:00
John Mertz 73501f0489 Daemonize swaylock to allow for subsequent actions 2024-02-22 11:06:07 -07:00
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ elif [[ $1 == "undim" ]]; then
$HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>-
elif [[ $1 == "lock" ]]; then
if [[ $IDLEMODE -gt 2 ]]; then
swaylock -c 00000000
swaylock -f -c 00000000
fi
elif [[ $1 == "unlock" ]]; then
kill -USR1 $(pgrep swaylock)

View File

@ -26,4 +26,4 @@ cd $1
HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/')
exec "./$(find ./ -executable -type f | sed -E 's/\.\///' | ${HOME}/.local/bin/tofi --prompt-text 'Power: ' --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml)" 2>/dev/null
exec "./$(find ./ -executable -type f | sed -E 's/\.\///' | ${HOME}/.local/bin/tofi --prompt-text 'Power: ' --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml --selection-background-padding='5,5,0,5')" 2>/dev/null