The extension is inspired by Simply Workspaces. Unlike the mentioned extension, the code has become readable and will be clear even to a beginner.
- Indicator with an i3/polybar style
- Similar to polybar, workspaces that have no windows will be hidden
- Works with dynamic workspaces
But to be fair, this is my first time developing gnome extensions, I've been consumed by dozens of documentation tabs, as a bonus there's also repository which can be imported into WebStorm as a library
The easiest way to get started is by getting this from the Gnome Extensions site.
System installation
git clone https://github.com/azate/simple-indication-of-workspaces.git
cd simple-indication-of-workspaces
make install
User installation (and/or dev)
git clone https://github.com/azate/simple-indication-of-workspaces.git \
~/.local/share/gnome-shell/extensions/[email protected]
Make sure you're using static workspaces (required for further instructions)
dconf write /org/gnome/mutter/dynamic-workspaces false
Here's some quick tips for getting an i3-like experience in Gnome.
Configure Gnome to use 10 static workspaces.
dconf write /org/gnome/desktop/wm/preferences/num-workspaces 10
Set up Super+Num
keyboard shortcut to switch between workspaces.
for i in {1..10}
do
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-$i "['<Super>$i']"
dconf write /org/gnome/shell/keybindings/switch-to-application-$i "@as []"
done
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-10 "['<Super>0']"
Set up Super+Shift+Num
keyboard shortcut to move windows between workspaces.
for i in {1..10}
do
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-$i "['<Super><Shift>$i']"
done
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-10 "['<Super><Shift>0']"