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
29085d4e
Commit
29085d4e
authored
5 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Change default config to non-personalized path
parent
6232a7e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/QBar/DefaultConfig.hs
+12
-9
12 additions, 9 deletions
src/QBar/DefaultConfig.hs
with
12 additions
and
9 deletions
src/QBar/DefaultConfig.hs
+
12
−
9
View file @
29085d4e
...
...
@@ -6,18 +6,21 @@ import QBar.Core
import
Control.Concurrent.Async
import
Pipes
blockLocation
::
String
->
FilePath
blockLocation
name
=
"~/.config/qbar/blocks/"
<>
name
generateDefaultBarConfig
::
BarUpdateChannel
->
IO
[
BlockProducer
]
generateDefaultBarConfig
barUpdateChannel
=
do
(
systemInfoInterval
,
systemInfoIntervalTask
)
<-
sharedInterval
barUpdateChannel
10
link
systemInfoIntervalTask
--let irc = (systemInfoInterval $ blockScript "
/home/jens/run/blocks/
irc")
let
todo
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
todo"
)
let
wifi
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
wifi2 wlan"
)
>->
modify
(
addIcon
"📡"
)
let
networkEnvironment
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
network-environment"
)
let
cpu
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
cpu_usage"
)
>->
modify
(
setBlockName
"cpu"
.
addIcon
"💻"
)
>->
autoPadding
let
ram
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
memory"
)
>->
modify
(
addIcon
"🐏"
)
>->
autoPadding
let
temperature
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
temperature"
)
>->
autoPadding
let
volumeBlock
=
startPersistentBlockScript
barUpdateChannel
"/home/jens/run/blocks/
volume-pulseaudio -S -F3"
let
battery
=
(
systemInfoInterval
$
blockScript
"/home/jens/run/blocks/
battery2"
)
--let irc = (systemInfoInterval $ blockScript "irc")
let
todo
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
todo"
)
let
wifi
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
wifi2 wlan"
)
>->
modify
(
addIcon
"📡"
)
let
networkEnvironment
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
network-environment"
)
let
cpu
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
cpu_usage"
)
>->
modify
(
setBlockName
"cpu"
.
addIcon
"💻"
)
>->
autoPadding
let
ram
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
memory"
)
>->
modify
(
addIcon
"🐏"
)
>->
autoPadding
let
temperature
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
temperature"
)
>->
autoPadding
let
volumeBlock
=
startPersistentBlockScript
barUpdateChannel
$
blockLocation
"
volume-pulseaudio -S -F3"
let
battery
=
(
systemInfoInterval
$
blockScript
$
blockLocation
"
battery2"
)
let
date
=
dateBlockProducer
barUpdateChannel
return
[
todo
,
wifi
,
networkEnvironment
,
cpu
,
ram
,
temperature
,
volumeBlock
,
battery
,
date
]
\ No newline at end of file
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