Skip to content

Commit

Permalink
Bump version, small cleanup of bar script
Browse files Browse the repository at this point in the history
  • Loading branch information
natemaia committed Apr 7, 2024
1 parent afd281b commit 02b1ce7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions doc/scripts/bar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ workspaces()
typeset name="" title="" layout="" focused=false active=false

WS=""
while IFS=$'\n' read -r l; do
while read -r l; do
eval "$l"
if [[ $l == title=* ]]; then
if [[ $l =~ ^title=* ]]; then
# default foreground, background, and underline colours
# changing the foreground and underline based on
# the active and focused state
Expand All @@ -171,8 +171,7 @@ workspaces()
fi
# turn the dk JSON output into lines that can be `eval`ed one by one,
# filling out the following fields: name, focused, active, layout, title
done < <(dkcmd -p <<< "$1" | sed '/.*\[\|]/d; /[{}],\?/d; s/^\s*\|,$//g; /"monitor":\|"number":\|"id":/d; s/"\(.*\)": /\1=/')

done < <(dkcmd -p <<< "$1" | sed '/.*\[\|]/d; /[{}],\?/d; s/^\s*\|,$//g; /"monitor":\|"number":\|"id":/d; s/"\(.*\)": /\1=/; s/\$(/\\\$(/g')
WS="$WS $sep $lyt"
}

Expand Down
2 changes: 1 addition & 1 deletion src/dk.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif

#ifndef VERSION
#define VERSION "2.1"
#define VERSION "2.2"
#endif

#define NAN (0.0f / 0.0f)
Expand Down
2 changes: 1 addition & 1 deletion src/dkcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "util.h"

#ifndef VERSION
#define VERSION "2.1"
#define VERSION "2.2"
#endif

#ifndef INDENT
Expand Down

0 comments on commit 02b1ce7

Please sign in to comment.