Skip to content

Commit

Permalink
Update version number only
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwax committed Aug 9, 2023
1 parent 2b98036 commit ce10e17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG


### v1.4.1

* Update version number within script

### v1.4

* Replace if/then blocks for debug statements with debug_text function to provide the same functionality. The code is simpler and cleaner this way.
Expand Down
12 changes: 6 additions & 6 deletions position
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#
# 2019-10-29 maxcode@maxwellspangler.com

VERSION="1.3.0"
VERSION_DATE="2023-01-10"
VERSION="1.4.1"
VERSION_DATE="2023-08-08"

function available_display_configs {
#
Expand Down Expand Up @@ -61,11 +61,11 @@ function scan_for_monitor_config {

debug_text "scan_for_monitor_config Looking for |${1}|"

DISPLAY_LINE_COUNT=$(grep '^monitor-config:' $CONFIG_FILE | egrep -v "^#" | grep ${1}| wc -l)
DISPLAY_LINE_COUNT=$(grep '^monitor-config:' $CONFIG_FILE | grep -E -v "^#" | grep ${1}| wc -l)

if [[ $DISPLAY_LINE_COUNT -gt 0 ]]
then
DISPLAY_LINE=$(grep '^monitor-config:' $CONFIG_FILE | egrep -v "^#" | grep ${1})
DISPLAY_LINE=$(grep '^monitor-config:' $CONFIG_FILE | grep -E -v "^#" | grep ${1})
debug_text "Monitor config is |$DISPLAY_LINE|"

POSITION_RULE=$(echo $DISPLAY_LINE | awk '{print $2}')
Expand Down Expand Up @@ -98,7 +98,7 @@ function find_monitor_config {

function check_for_window_rules {

POSITION_COUNT=$(grep $POSITION_RULE $CONFIG_FILE | grep -v 'monitor-config:' | egrep -v "^#" | wc -l)
POSITION_COUNT=$(grep $POSITION_RULE $CONFIG_FILE | grep -v 'monitor-config:' | grep -E -v "^#" | wc -l)

if [[ $POSITION_COUNT -gt 0 ]]
then
Expand All @@ -111,7 +111,7 @@ function check_for_window_rules {

function position_windows {

POSITION_LINES=$(grep $POSITION_RULE $CONFIG_FILE | grep -v 'monitor-config:' | egrep -v "^#")
POSITION_LINES=$(grep $POSITION_RULE $CONFIG_FILE | grep -v 'monitor-config:' | grep -E -v "^#")

echo "$POSITION_LINES" | while read LINE
do
Expand Down

0 comments on commit ce10e17

Please sign in to comment.