A variety of simple automation scripts and enhancements to Sway and i3.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
172B

  1. #!/bin/bash
  2. if [ "$(pgrep -c nmtui | cut -b 1)" -eq "0" ]; then
  3. echo true
  4. /usr/bin/xterm -e '/usr/bin/nmtui'
  5. else
  6. echo false
  7. pkill nmtui 2&>1 /dev/null
  8. fi