All Projects → joehillen → sysz

joehillen / sysz

Licence: Unlicense license
An fzf terminal UI for systemctl

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to sysz

fuzzy-sys
Utility tool for using systemctl interactively
Stars: ✭ 106 (-91.57%)
Mutual labels:  fzf, systemd, systemctl
Bashmultitool
A library for bash shell program containing useful functions. Can be imported into scripts to create colourful and functional scripts and TUIs.
Stars: ✭ 27 (-97.85%)
Mutual labels:  tui, bash-script
checkbox.sh
Interactive checkboxes (menu) with pagination and vim keybinds for bash
Stars: ✭ 26 (-97.93%)
Mutual labels:  tui, bash-script
java-systemd
Java access to systemd via D-Bus
Stars: ✭ 32 (-97.46%)
Mutual labels:  systemd, systemctl
cylon-deb
TUI menu driven bash shell script to update and maintain a Debian based Linux distro.
Stars: ✭ 23 (-98.17%)
Mutual labels:  tui, bash-script
paruz
A fzf terminal UI for paru or pacman
Stars: ✭ 29 (-97.69%)
Mutual labels:  fzf, tui
Tmux Fzf Url
🚀 Quickly open urls on your terminal screen!
Stars: ✭ 227 (-81.96%)
Mutual labels:  fzf, tui
Fmui
fzf mpd user interface
Stars: ✭ 93 (-92.61%)
Mutual labels:  fzf, tui
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-72.18%)
Mutual labels:  fzf, tui
Dotbare
Manage dotfiles and any git directories interactively with fzf
Stars: ✭ 327 (-74.01%)
Mutual labels:  fzf, bash-script
Sway Launcher Desktop
TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
Stars: ✭ 188 (-85.06%)
Mutual labels:  fzf, tui
Dotfiles
Well documented awesome dotfiles 😍 Many neovim lua configs, handy zsh/bash functions, fzf functions + more
Stars: ✭ 64 (-94.91%)
Mutual labels:  fzf, bash-script
pytermgui
Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
Stars: ✭ 1,270 (+0.95%)
Mutual labels:  tui
fzf-hoogle.vim
(neo)vim plugin that uses fzf for previewing hoogle search results
Stars: ✭ 37 (-97.06%)
Mutual labels:  fzf
soap2day-dl
📺 Soap2day downloader: download TV series and movies in your terminal
Stars: ✭ 29 (-97.69%)
Mutual labels:  bash-script
node-systemd-journald
Native bindings to journald
Stars: ✭ 26 (-97.93%)
Mutual labels:  systemd
go-systemd-time
📅 Go implementation of systemd relative time adjustments
Stars: ✭ 21 (-98.33%)
Mutual labels:  systemd
wimpy.deploy
Ansible role to automate immutable infrastructure scheduling one docker container on one EC2 instance
Stars: ✭ 21 (-98.33%)
Mutual labels:  systemd
edx.scripts
Covers 80% of the admin tasks you'll ever need to perform on your Open edX installation
Stars: ✭ 38 (-96.98%)
Mutual labels:  bash-script
pdiary
A simple terminal diary journal application written in Python with encryption support.
Stars: ✭ 24 (-98.09%)
Mutual labels:  tui

sysz

A fzf terminal UI for systemctl

Console - Developer Tool of the Week

Demo

asciicast

Features

VERSION: 1.4.3

  • See and filter both system and user units simultaneously.
  • Supports all unit types.
  • Units ordered by service, timer, socket, and the rest.
  • Runs sudo automatically and only if necessary.
  • Filter units by state using ctrl-s or the --state option.
  • Run daemon-reload with ctrl-r.
  • Has short versions of systemctl commands to reduce typing.
  • Runs status after other commands (start, stop, restart, etc).
  • Select multiple units, states, and commands using TAB.
  • Only prompts commands based on current state (e.g. show "start" only if the unit is inactive).

Requirements

  • fzf >= 0.27.1
  • bash > 4.3 (released 2009)
  • awk

Installation

Arch Linux

paru -S sysz

NixOS

nix-env -iA nixos.sysz

Using Nix

nix-env -iA nixpkgs.sysz

Using bin

bin install https://github.com/joehillen/sysz

Direct Download

wget -O ~/.bin/sysz https://github.com/joehillen/sysz/releases/latest/download/sysz
chmod +x ~/.bin/sysz

From Source

git clone https://github.com/joehillen/sysz.git
cd sysz
sudo make install # /usr/local/bin/sysz

Usage

A utility for using systemctl interactively via fzf.

Usage: sysz [OPTS...] [CMD] [-- ARGS...]

sudo is invoked automatically, if necessary.

If only one unit is chosen, available commands will be presented
based on the state of the unit (e.g. "start" only shows if unit is "active").

OPTS:
  -u, --user               Only show --user units
  --sys, --system          Only show --system units
  -s STATE, --state STATE  Only show units in STATE (repeatable)
  -V, --verbose            Print the systemctl command
  -v, --version            Print the version
  -h, --help               Print this message

  If no options are given, both system and user units are shown.

CMD:
  start                  systemctl start <unit>
  stop                   systemctl stop <unit>
  r, restart             systemctl restart <unit>
  s, stat, status        systemctl status <unit>
  ed, edit               systemctl edit <unit>
  reload                 systemctl reload <unit>
  en, enable             systemctl enable <unit>
  d, dis, disable        systemctl disable <unit>
  c, cat                 systemctl cat <unit>

  If no command is given, one or more can be chosen interactively.

ARGS are passed to the systemctl command for each selected unit.

Keybindings:
  TAB           Toggle selection.
  ctrl-v        'cat' the unit in the preview window.
  ctrl-s        Select states to match. Selection is reset.
  ctrl-r        Run daemon-reload. Selection is reset.
  ctrl-p        History previous.
  ctrl-n        History next.
  ?             Show keybindings.

History:
  sysz is stored in $XDG_CACHE_HOME/sysz/history
  This can be changed with the environment variable: SYSZ_HISTORY

Some units are colored based on state:
  green       active
  red         failed
  yellow      not-found

Examples:
  sysz -u                      User units
  sysz --sys -s active          Active system units
  sysz --user --state failed   Failed user units

Examples with commands:
  sysz start                  Start a unit
  sysz --sys s                Get the status of system units
  sysz --user edit            Edit user units
  sysz s -- -n100             Show status with 100 log lines
  sysz --sys -s active stop    Stop an active system unit
  sysz -u --state failed r    Restart failed user units

Acknowledgements

Inspired by fuzzy-sys by NullSense

Thank you for ShellCheck without which this would be a buggy mess.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].