Skip to content

elrondforwin/waybarctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

waybarctl

waybarctl is a simple bash script that makes Waybar theme switching easier through CLI commands.

Installation

Installation script for most distros. Requires curl

curl -fsSL https://raw.githubusercontent.com/elrondforwin/waybarctl/refs/heads/main/install-waybarctl.sh | bash

Note

You need to add ~/.local/bin to your $PATH variable if not exists. It is a good practice for using this type of scripts as user.

Updating

Run the install script again. It will update it.

curl -fsSL https://raw.githubusercontent.com/elrondforwin/waybarctl/refs/heads/main/install-waybarctl.sh | bash

Uninstallation

rm -rf ~/.local/bin/waybarctl

Usage

waybarctl reload # reload Waybar.
waybarctl theme <themename> # set a waybar theme.
waybarctl theme list # list all available themes.
waybarctl theme remove # deactivate the current theme and fallback to Waybar default.

You can create themes in ~/.config/waybar/themes directory. You have to create a directory for each theme and place the configs and styles inside the directory.

Example file structure

~/.config/waybar/
└── themes/
    ├── gruvbox/
    │   ├── config.jsonc
    │   └── style.css
    │
    ├── nord/
    │   ├── config.jsonc
    │   └── style.css
    │
    └── catppuccin/
        ├── config.jsonc
        └── style.css

In this case, waybarctl theme gruvbox command will apply gruvbox theme to waybar and automatically reload it.

To Do

  • Add a PKGBUILD for installation.

About

Simple bash script that makes Waybar theme switching easier through CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages