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.

11 lines
200B

  1. #!/bin/bash
  2. ROFI=$(pgrep -c rofi | cut -b 1)
  3. echo $ROFI
  4. if [[ "$ROFI" -eq "0" ]]; then
  5. rofi -config /home/jpm/.config/rofi/config.rasi -show drun
  6. else
  7. killall rofi 2&>1 /dev/null
  8. fi