Misc changes

This commit is contained in:
Kiana Sheibani 2022-09-24 23:30:38 -04:00
parent b18e14e4fa
commit e0b26ff48b
7 changed files with 40 additions and 30 deletions

View file

@ -1,8 +1,11 @@
#!/usr/bin/env bash
if [ $# -ne 0 ]; then
id=echo "$@" | cut -d ' ' -f1
id=$(echo "$@" | cut -d ' ' -f1)
swaymsg "[con_id=$id]" focus
# Hack to get around weird bug
pkill rofi
exit 0
fi

View file

@ -2,6 +2,9 @@
if [ $# -ne 0 ]; then
swaymsg workspace "$@"
# Hack to get around weird bug
pkill rofi
exit 0
fi