swager

module
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2022 License: MIT

README

swager

Send commands using Sway IPC protocol in response to Sway events or user input.

TBD...

Example Usage

Call this script from Sway config using exec_always:

#! /bin/sh

printf '========[ %s ]========\n' "$(date)" >> /tmp/swagerd.log
swagerd -log info >> /tmp/swagerd.log 2>&1 &
trap "swagerctl --server exit" HUP INT TERM EXIT

printf '========[ %s ]========\n' "$(date)" >> /tmp/swagerctl.log
{
  swagerctl --server reset
  swagerctl --init mon swaymon
  swagerctl --init al autolay -masterstack 1 2 3 4 -autotiler 5 6 7 8
  swagerctl --init newws execnew 3 7
  swagerctl --init spawn initspawn
  swagerctl --server listen
  swagerctl --send spawn 8 "exec termc"
} >> /tmp/swagerctl.log 2>&1

wait

Directories

Path Synopsis
cmd
internal
Package ipc provides a Client for connecting to the Sway window manager ipc socket.
Package ipc provides a Client for connecting to the Sway window manager ipc socket.
Package stocker is for specialized argument parsing.
Package stocker is for specialized argument parsing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL