Skip to content

Commit

Permalink
refactor: consistent “cut” syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev authored Nov 17, 2023
1 parent 8ef60ff commit 9ed7cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cutefetch
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ init() {
case "$(uname -s)" in
Linux*)
readonly wm="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep -m 1 "WM_NAME" | cut -f2 -d \")"
readonly kern="$(uname -r | cut -d '-' -f1)"
readonly kern="$(uname -r | cut -f1 -d '-')"
readonly shell=$(basename $SHELL)
readonly res="$(xdpyinfo | grep 'dimensions' | grep -oE '[0-9]+x[0-9]+' | head -n 1)"
readonly net="$(nmcli -g common | grep -m 1 connected | cut -f4- -d ' ')"
Expand Down

0 comments on commit 9ed7cd8

Please sign in to comment.