Compare commits
2 Commits
7c3ba7cad8
...
fcf2b91b7b
Author | SHA1 | Date |
---|---|---|
John Mertz | fcf2b91b7b | |
John Mertz | 73501f0489 |
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue