Checks that notify-send is available before running it
This commit is contained in:
parent
52795ad633
commit
908909c704
1 changed files with 1 additions and 1 deletions
|
@ -5,5 +5,5 @@
|
|||
|
||||
columns=$(stty -a < /dev/stdin | grep -oE 'columns [0-9]+' | cut -d' ' -f2)
|
||||
rows=$(stty -a < /dev/stdin | grep -oE 'rows [0-9]+' | cut -d' ' -f2)
|
||||
notify-send "Terminal dimensions" "Rows: $rows\nColumns: $columns\nstty command on clipboard"
|
||||
type notify-send > /dev/null 2>&1 && notify-send "Terminal dimensions" "Rows: $rows\nColumns: $columns\nstty command on clipboard"
|
||||
echo "stty rows $rows cols $columns" | xclip -i -selection clipboard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue