https://github.com/unclechu/unclechu-i3-status
my own i3 status-bar generator
https://github.com/unclechu/unclechu-i3-status
dotfiles haskell i3 i3bar i3status i3wm tiling-window-manager window-manager
Last synced: about 2 months ago
JSON representation
my own i3 status-bar generator
- Host: GitHub
- URL: https://github.com/unclechu/unclechu-i3-status
- Owner: unclechu
- License: gpl-3.0
- Created: 2017-09-17T22:54:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T23:44:57.000Z (over 2 years ago)
- Last Synced: 2025-05-18T15:44:36.496Z (about 1 year ago)
- Topics: dotfiles, haskell, i3, i3bar, i3status, i3wm, tiling-window-manager, window-manager
- Language: Haskell
- Size: 263 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unclechu-i3-status
My own status line generator for [i3 window manager][i3wm].
It also closely integrated with my own software such as
[xlib-keys-hack][xlib-keys-hack].
It gets state of indicators using specific [D-Bus][dbus] interface,
but any other application could implement such interface instead of
[xlib-keys-hack][xlib-keys-hack].
## Usage
### With NixOS
Clone this repo, `cd` to it and run:
``` sh
nix-shell --run unclechu-i3-status
```
See also [shell.nix]’s arguments for available options.
For instance if you want to enter a `nix-shell` with `cabal` available:
``` sh
nix-shell --arg withCabal true
```
#### NixOS
You can add this application into your NixOS `configuration.nix` like this:
``` nix
{ pkgs, ... }:
let
unclechu-i3-status-src = pkgs.fetchFromGitHub {
owner = "unclechu";
repo = "unclechu-i3-status";
rev = "ffffffffffffffffffffffffffffffffffffffff"; # Git commit hash
sha256 = "0000000000000000000000000000000000000000000000000000";
};
unclechu-i3-status = pkgs.callPackage unclechu-i3-status-src {};
in
{
environment.systemPackages = [ unclechu-i3-status ];
}
```
#### Use it with [i3wm]
Since you probably would need it to use with i3wm only then it makes sense to
make this dependency be specifically addressed to [i3wm] (in your
`/etc/nixos/configuration.nix`):
``` nix
{ pkgs, ... }:
let
unclechu-i3-status-src = pkgs.fetchFromGitHub {
owner = "unclechu";
repo = "unclechu-i3-status";
rev = "ffffffffffffffffffffffffffffffffffffffff"; # Git commit hash
sha256 = "0000000000000000000000000000000000000000000000000000";
};
unclechu-i3-status = pkgs.callPackage unclechu-i3-status-src {};
in
{
services.xserver.windowManager.i3.extraPackages = [
pkgs.i3status
unclechu-i3-status
];
}
```
### With Stack
``` sh
stack build
stack install
```
At this point make sure you have `~/.local/bin` in `PATH` environment variable
when [i3][i3wm] starts. You could do so by adding this to your `~/.profile`:
``` sh
export PATH="$HOME/.local/bin:$PATH"
```
But `~/.profile` must be evaluated at X11 session initialization step in your
X11 config, for example it could be:
``` sh
grep -F '.profile' /etc/X11/xinit/xinitrc-common
## [ -r $HOME/.profile ] && . $HOME/.profile
```
Then, when you make sure `unclechu-i3-status` executable is available when
[i3][i3wm] starts, you could add this to `~/.config/i3/config`:
``` conf
bar {
status_command unclechu-i3-status
}
```
## Author
Viacheslav Lotsmanov
## License
[GPLv3](LICENSE)
[i3wm]: https://i3wm.org/
[xlib-keys-hack]: https://github.com/unclechu/xlib-keys-hack
[dbus]: https://www.freedesktop.org/wiki/Software/dbus/
[shell.nix]: shell.nix