feat: get return focus after restarting gnome-shell working

This commit is contained in:
NunoSempere 2023-11-14 20:44:58 +00:00
parent ae8d7c1f74
commit f81398c397
2 changed files with 15 additions and 1 deletions

BIN
gtktitlebar-11.0.zip Normal file

Binary file not shown.

View File

@ -1,2 +1,16 @@
sudo apt install xdotool
wget https://github.com/velitasali/gtktitlebar/releases/download/11.0/gtktitlebar-11.0.zip
sudo unzip gtktitlebar-11.0.zip -d /usr/share/gnome-shell/extensions
yes | sudo unzip gtktitlebar-11.0.zip -d /usr/share/gnome-shell/extensions
rm gtktitlebar-11.0.zip
name=$(xdotool getwindowfocus getwindowname)
killall -3 gnome-shell && sleep 5
# sleep 1 && wmctrl -a $name
wmctrl -a "hephaestus@kedalion: ~/nunOS"
echo 1
# xdotool key a
xdotool key Tab
xdotool key Return
xdotool key a
wmctrl -a "$name"