Skip to content

A simple sway/i3 statusbar written in common lisp

Notifications You must be signed in to change notification settings

michaeldelago/snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snackbar

Usage

  1. Build with earthly, guix, or make
  • earthly +build

  • make build

  • building with guix requires either my guix channel or the package manifest and some basic modifications

    • install from channel:
      • guix build snackbar
    • install from manifest
      • git clone https://github.com/michaeldelago/delaguix
      • guix build --load-path="$(pwd)/delaguix" snackbar

Installation

If using guix and either using my channel or building locally:

  1. Install package

    $ guix install snackbar
    

If using guix and artifacts from most recent CI run:

  1. Authorize the signing key of the build server

    $ sudo guix archive --authorize < etc/guix/signing-key.pub
    
  2. Install downloaded nar file

    $ guix archive --import < home/runner/work/snackbar/snackbar/snackbar.nar
    

Else:

  1. Move executable from build/snackbar to ~/bin/snackbar

    $ mv ./build/snackbar ~/bin/snackbar

  2. Configure sway

    ~/.config/sway/config:

    bar {
        position top
        status_command while ~/bin/snackbar; do sleep 1; done
    
        colors {
            statusline #ffffff
            background #323232
            inactive_workspace #32323200 #32323200 #5c5c5c
        }
    }
    
  3. Reload sway (default $mod+shift+c)

Questions

What does it look like

avail: 26.9G used: 10.9% | /: 4% | 🔈 85% | bat0 77.4% 🔋⚡ | bat1 16.5% 🔋⬇️ | Tue, Jul 12 2022 4:40 pm 

For context, I'm using a thinkpad t480 with 2 batteries.

Why write your own bar when there's so many available?

It felt like it'd be fun to do, and I wanted a somewhat practical project for common lisp.

There's a previous iteration of this project, written in python

Do you accept contributions to this project?

Probably not

Will this work with x?

I don't know

Can you add feature y?

Probably not