Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
b9ade822
Unverified
Commit
b9ade822
authored
Dec 22, 2019
by
dylan
Committed by
GitHub
Dec 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1375 from arisinfenix/term_font
Fixes and updates for Konsole font detection
parents
8de31f07
6e69a718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
neofetch
neofetch
+7
-2
No files found.
neofetch
View file @
b9ade822
...
@@ -3102,6 +3102,8 @@ END
...
@@ -3102,6 +3102,8 @@ END
# Get Process ID of current konsole window / tab
# Get Process ID of current konsole window / tab
child="$(get_ppid "$$")"
child="$(get_ppid "$$")"
QT_BINDIR="$(qtpaths --binaries-dir)" && PATH+=":$QT_BINDIR"
IFS=$'\n' read -d "" -ra konsole_instances \
IFS=$'\n' read -d "" -ra konsole_instances \
<<< "$(qdbus | awk '/org.kde.konsole/ {print $1}')"
<<< "$(qdbus | awk '/org.kde.konsole/ {print $1}')"
...
@@ -3112,17 +3114,20 @@ END
...
@@ -3112,17 +3114,20 @@ END
if ((child == "$(qdbus "$i" "$session" processId)")); then
if ((child == "$(qdbus "$i" "$session" processId)")); then
profile="$(qdbus "$i" "$session" environment |\
profile="$(qdbus "$i" "$session" environment |\
awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')"
awk -F '=' '/KONSOLE_PROFILE_NAME/ {print $2}')"
[[ $profile ]] || profile="$(qdbus "$i" "$session" profile)"
break
break
fi
fi
done
done
[[
"$profile"
]] && break
[[
$profile
]] && break
done
done
[[ $profile ]] || return
# We could have two profile files for the same profile name, take first match
# We could have two profile files for the same profile name, take first match
profile_filename="$(grep -l "Name=${profile}" "$HOME"/.local/share/konsole/*.profile)"
profile_filename="$(grep -l "Name=${profile}" "$HOME"/.local/share/konsole/*.profile)"
profile_filename="${profile_filename/$'\n'*}"
profile_filename="${profile_filename/$'\n'*}"
[[
"$profile_filename"
]] && \
[[
$profile_filename
]] && \
term_font="$(awk -F '=|,' '/Font=/ {print $2,$3}' "$profile_filename")"
term_font="$(awk -F '=|,' '/Font=/ {print $2,$3}' "$profile_filename")"
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment