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
Jens Nolte
qbar
Commits
9135e39f
Commit
9135e39f
authored
1 year ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation and remove `stack`-related scripts
parent
bc5370f7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-8
2 additions, 8 deletions
README.md
bin/install
+0
-27
0 additions, 27 deletions
bin/install
bin/run
+0
-8
0 additions, 8 deletions
bin/run
with
2 additions
and
43 deletions
README.md
+
2
−
8
View file @
9135e39f
...
@@ -6,21 +6,15 @@ qbar is a status command for [sway](https://swaywm.org/) and [i3](https://i3wm.o
...
@@ -6,21 +6,15 @@ qbar is a status command for [sway](https://swaywm.org/) and [i3](https://i3wm.o
### Compiling from Source
### Compiling from Source
Building qbar requires
[
stack
](
https://haskellstack.org/
)
. To build it run:
Building qbar requires
nix
. To build it run:
```
```
stack
build
nix
build
```
```
You can also use the scripts in the
`bin`
-directory (all scripts will rebuild the project if required):
You can also use the scripts in the
`bin`
-directory (all scripts will rebuild the project if required):
```
```
# Launch as swaybar status command while redirecting stderr to shell
# Launch as swaybar status command while redirecting stderr to shell
./bin/run-sway default
./bin/run-sway default
# Run the binary directly (mostly used to control the bar via rpc)
./bin/run --help
# Install the binary to ~/.local/bin (this can also install tab completions)
./bin/install
```
```
## Configuration
## Configuration
...
...
This diff is collapsed.
Click to expand it.
bin/install
deleted
100755 → 0
+
0
−
27
View file @
bc5370f7
#!/usr/bin/env zsh
set
-e
set
-u
readonly
executable_name
=
qbar
readonly
local_bin
=
`
stack path
--local-bin
`
readonly
executable_path
=
$local_bin
/
$executable_name
stack
install
echo
>
&2
if
[[
-n
"
${
LOCAL_ZSH_COMPLETION_PATH
+set
}
"
]]
then
if
[[
-d
"
$LOCAL_ZSH_COMPLETION_PATH
"
]]
then
ZSH_COMPLETION_SCRIPT_PATH
=
$LOCAL_ZSH_COMPLETION_PATH
/_
$executable_name
$executable_path
--zsh-completion-script
$executable_path
>
$ZSH_COMPLETION_SCRIPT_PATH
echo
"Installed zsh completions for
$executable_name
to
$ZSH_COMPLETION_SCRIPT_PATH
"
>
&2
else
echo
"Not installing completions, LOCAL_ZSH_COMPLETION_PATH is set but isn't a directory (
$LOCAL_ZSH_COMPLETION_PATH
)."
>
&2
fi
else
echo
"Not installing completions, set LOCAL_ZSH_COMPLETION_PATH to install them."
>
&2
fi
This diff is collapsed.
Click to expand it.
bin/run
deleted
100755 → 0
+
0
−
8
View file @
bc5370f7
#!/bin/sh
set
-e
set
-u
readonly
executable_name
=
qbar
stack build
&&
stack
exec
$executable_name
--
"
$@
"
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