module
Version:
v0.0.1-alpha
Opens a new window with list of versions in this module.
Published: May 3, 2022
License: MIT
Opens a new window with license information.
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
¶
|
|
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. |
|
|
|
|
Click to show internal directories.
Click to hide internal directories.