24 lines
675 B
Bash
24 lines
675 B
Bash
sudo apt install xdotool
|
|
|
|
# hide gtk titlebar
|
|
wget https://github.com/velitasali/gtktitlebar/releases/download/11.0/gtktitlebar-11.0.zip
|
|
yes | sudo unzip gtktitlebar-11.0.zip -d /usr/share/gnome-shell/extensions
|
|
rm gtktitlebar-11.0.zip
|
|
|
|
# autohide top bar
|
|
sudo apt install gnome-shell-extension-autohidetopbar
|
|
|
|
# refresh gnome shell
|
|
name=$(xdotool getwindowfocus getwindowname)
|
|
killall -3 gnome-shell && sleep 5
|
|
xdotool key Tab
|
|
xdotool key Return
|
|
sleep 1
|
|
echo "$name"
|
|
wmctrl -a $name
|
|
|
|
# enable extensions
|
|
gsettings set org.gnome.shell disable-user-extensions false
|
|
gnome-extensions enable gtktitlebar@velitasali.github.io
|
|
gnome-extensions enable hidetopbar@mathieu.bidon.ca
|