Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qbar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jktr
qbar
Commits
8072dd4b
Verified
Commit
8072dd4b
authored
5 years ago
by
Legy (Beini)
Browse files
Options
Downloads
Patches
Plain Diff
Fix icons being rendered as emoji instead of in text mode
parent
9ae249a5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/QBar/Blocks/Date.hs
+1
-1
1 addition, 1 deletion
src/QBar/Blocks/Date.hs
src/QBar/DefaultConfig.hs
+3
-3
3 additions, 3 deletions
src/QBar/DefaultConfig.hs
with
4 additions
and
4 deletions
src/QBar/Blocks/Date.hs
+
1
−
1
View file @
8072dd4b
...
...
@@ -23,5 +23,5 @@ dateBlockOutput = do
zonedTime
<-
getZonedTime
let
date
=
T
.
pack
(
formatTime
defaultTimeLocale
"%a %F"
zonedTime
)
let
time
=
T
.
pack
(
formatTime
defaultTimeLocale
"%R"
zonedTime
)
let
text
=
normalText
(
"📅 "
<>
date
<>
" "
)
<>
activeText
time
let
text
=
normalText
(
"📅
\xFE0E
"
<>
date
<>
" "
)
<>
activeText
time
return
$
blockName
?~
"date"
$
createBlock
text
This diff is collapsed.
Click to expand it.
src/QBar/DefaultConfig.hs
+
3
−
3
View file @
8072dd4b
...
...
@@ -15,10 +15,10 @@ generateDefaultBarConfig = do
systemInfoInterval
<-
sharedInterval
10
let
todo
=
systemInfoInterval
(
blockScript
$
blockLocation
"todo"
)
let
wifi
=
systemInfoInterval
(
blockScript
$
blockLocation
"wifi2 wlan"
)
>->
modify
(
addIcon
"📡"
)
let
wifi
=
systemInfoInterval
(
blockScript
$
blockLocation
"wifi2 wlan"
)
>->
modify
(
addIcon
"📡
\xFE0E
"
)
let
networkEnvironment
=
systemInfoInterval
(
blockScript
$
blockLocation
"network-environment"
)
let
cpu
=
systemInfoInterval
(
blockScript
$
blockLocation
"cpu_usage"
)
>->
modify
((
blockName
?~
"cpu"
)
.
addIcon
"💻"
)
>->
autoPadding
let
ram
=
systemInfoInterval
(
blockScript
$
blockLocation
"memory"
)
>->
modify
(
addIcon
"🐏"
)
>->
autoPadding
let
cpu
=
systemInfoInterval
(
blockScript
$
blockLocation
"cpu_usage"
)
>->
modify
((
blockName
?~
"cpu"
)
.
addIcon
"💻
\xFE0E
"
)
>->
autoPadding
let
ram
=
systemInfoInterval
(
blockScript
$
blockLocation
"memory"
)
>->
modify
(
addIcon
"🐏
\xFE0E
"
)
>->
autoPadding
let
temperature
=
systemInfoInterval
(
blockScript
$
blockLocation
"temperature"
)
>->
autoPadding
let
volumeBlock
=
startPersistentBlockScript
$
blockLocation
"volume-pulseaudio -S -F3"
let
battery
=
systemInfoInterval
$
batteryBlock
>->
modify
(
blockName
?~
"battery"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment