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
b88804d4
Commit
b88804d4
authored
5 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Rename persistentBlockScript to startPersistentBlockScript
parent
73fe3c6d
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/Core.hs
+2
-2
2 additions, 2 deletions
src/QBar/Core.hs
src/QBar/DefaultConfig.hs
+1
-1
1 addition, 1 deletion
src/QBar/DefaultConfig.hs
with
3 additions
and
3 deletions
src/QBar/Core.hs
+
2
−
2
View file @
b88804d4
...
...
@@ -242,9 +242,9 @@ blockScript path = forever $ updateBlock =<< (lift blockScriptAction)
createScriptBlock'
::
Bool
->
Importance
->
T
.
Text
->
BlockOutput
createScriptBlock'
active
importance
text
=
blockName
?~
T
.
pack
path
$
mkBlockOutput
$
mkText
active
importance
text
startP
ersistentBlockScript
::
FilePath
->
PushBlock
p
ersistentBlockScript
::
FilePath
->
PushBlock
-- The outer catchP only catches errors that occur during process creation
startP
ersistentBlockScript
path
=
catchP
startScriptProcess
handleError
p
ersistentBlockScript
path
=
catchP
startScriptProcess
handleError
where
handleError
::
IOException
->
PushBlock
handleError
e
=
do
...
...
This diff is collapsed.
Click to expand it.
src/QBar/DefaultConfig.hs
+
1
−
1
View file @
b88804d4
...
...
@@ -21,7 +21,7 @@ generateDefaultBarConfig = do
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
=
startP
ersistentBlockScript
$
blockLocation
"volume-pulseaudio -S -F3"
let
volumeBlock
=
p
ersistentBlockScript
$
blockLocation
"volume-pulseaudio -S -F3"
let
battery
=
systemInfoInterval
$
batteryBlock
>->
modify
(
blockName
?~
"battery"
)
addBlock
dateBlock
...
...
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