Budgie-desktop shortcut for "Super + 1" to navigate to window 1

budgie
keyboard

#1

I would like to super + 0…9 keyboard shortcuts to navigate open windows. This is a standard feature in Windows 10, and unity desktop (I’ve read to believe).

2018-09-23taskbar

Super + 1 to “window 1” ie firefox.
Super + 2 to “window 2” vscode.
Super + 3 to “window 3” terminal files
…9

I’ve looked in the keyboard shortcuts and can’t find this option, just moving workspaces.

I’d be happy to put up a PR to implement this, but i don’t even know where the code for this is located I tried looking in budgie-desktop.

Could we make this happen and be the default options. it is really annoying having to use a mouse to navigate, or tabbing through windows

Cheers Jono

PS Say if i have multiple windows of firefox pressing super 1 but holding down the super key well let you toggle between the multiple windows to focus on. (I could imagine this being harder to code given it is the release keyup not keypress event).


#2

Budgie is maintained by the the Solus project.

I believe the code is here: https://github.com/solus-project/budgie-desktop


#3


#4

Made this npm script, may help anyone who wants this feature,

https://www.npmjs.com/package/budgie-launcher-super
requires node 10


#5

Good on you for brewing your own potion :wink:
May I suggest looking at some other node.js packages in the AUR and writing a PKGBUILD that way so that others can more easily benefit?


#6

Cool so I’ve copied this https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nodejs-marked and made this package.build

# 'man PKGBUILD'.
# Maintainer: Jonathan Lee <jono-lee@hotmail.co.uk>

_npmname=budgie-launcher-super
_npmver=1.0.7
pkgname=nodejs-budgie-launcher-super
pkgver=1.0.7
pkgrel=2
pkgdesc="A simple script to switch tasks using `super + 1` number keys, the same feature exists with other desktops like windows and unity, this adds it to budgie desktop."
arch=(any)
url="https://github.com/Lee182/budgie-launcher-super"
license=('MIT')
depends=('nodejs>=10.10.0' )
optdepends=()
noextract=($_npmname-$_npmver.tgz)

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
}

Ran makepgk PKGBUILD and the bin it generates is working.

Made an account at aur.archlinux.org.
setup ssh keys

Cloned a repo to create a package.
git clone ssh://aur@aur.archlinux.org/nodejs-budgie-launcher-super.git

$ makepkg --printsrcinfo > .SRCINFO
$ git add PKGBUILD .SRCINFO
$ git commit -m "useful commit message"
$ git push

And surprisingly you can now download and use, from Add and Remove software. :slight_smile:


#7

Only down side is you have still setup shortcuts manually.


#8

EDIT: Sorry. Im a bit ridiculous from having a newborn. I just hade to install npm. its a community package.

I tried to build both from Terminal and add/remove programs but no dice. Suggestions?

==> Checking buildtime dependencies...
==> Retrieving sources...
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
/var/tmp/pamac-build-will/pamac-build/nodejs-budgie-launcher-super/PKGBUILD: line 22: npm: command not found
==> ERROR: A failure occurred in package().
    Aborting...


#9

Cool yeah my mistake, I thought npm was included with the node package. I’ve added npm as depends to the PKGBUILD