by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
#!/usr/bin/env bash | |
# terminal application launcher for sway, using fzf | |
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher | |
shopt -s nullglob | |
if [[ "$1" == 'describe' ]]; then | |
shift | |
if [[ $2 == 'command' ]]; then | |
title=$1 | |
readarray arr < <(whatis -l "$1" 2>/dev/null) |
# Remove switch to app https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1250 | |
for i in {1..9}; do gsettings set "org.gnome.shell.keybindings" "switch-to-application-$i" "[]"; done | |
# Necessary even with gnomesome : https://github.com/ChWick/gnomesome | |
for i in {1..9}; do gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-$i" "['<super>$i']"; done | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<super>1']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<super>2']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<super>3']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<super>4']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<super>5']" |