diff options
Diffstat (limited to 'Window_Manager/ratpoison/borderscript')
-rwxr-xr-x | Window_Manager/ratpoison/borderscript | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Window_Manager/ratpoison/borderscript b/Window_Manager/ratpoison/borderscript index 1495bec..9ac2113 100755 --- a/Window_Manager/ratpoison/borderscript +++ b/Window_Manager/ratpoison/borderscript @@ -1,11 +1,9 @@ -#!/bin/bash +#!/bin/sh frames=`ratpoison -c fdump | tr -d -C '(' | wc -c` -if [[ $frames == 1 ]];then +if [ $frames -eq 1 ];then ratpoison -c "hideborder" -ratpoison -c "hidepadding" else ratpoison -c "showborder" -ratpoison -c "showpadding" fi |