Skip to content

Commit

Permalink
Improve launcher.sh script (#155)
Browse files Browse the repository at this point in the history
Use grep with -c flag instead of wc -l command.
Additionally, change quotation of path pointing to cryo_utilities
binary.

Signed-off-by: skaluzka <[email protected]>
  • Loading branch information
skaluzka authored Oct 10, 2023
1 parent 1c80d08 commit 531681d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launcher.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
if [ "$(xrandr | grep ' connected' | wc -l)" -eq 1 ]; then
# Author: CryoByte33 and contributors to the CryoUtilities project

if [ "$(xrandr | grep -c ' connected')" -eq 1 ]; then
export FYNE_SCALE=0.25
fi

"$HOME"/.cryo_utilities/cryo_utilities gui
"$HOME/.cryo_utilities/cryo_utilities" gui

0 comments on commit 531681d

Please sign in to comment.