Skip to content

Instantly share code, notes, and snippets.

View vitorbiten's full-sized avatar

Vitor Bitencurt vitorbiten

View GitHub Profile
@vitorbiten
vitorbiten / gist:0d9bf39dfd6943f3c10567a20115c841
Created May 1, 2026 09:12
cron for alt + numbers as shortcut for apps on ubuntu
@reboot sleep 20 && DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus bash -c 'gsettings set org.gnome.desktop.wm.keybindings switch-group "[]"; gsettings set org.gnome.shell.keybindings switch-to-application-1 "[\"<Alt>grave\"]"; for i in $(seq 2 9); do gsettings set org.gnome.shell.keybindings switch-to-application-$i "[\"<Alt>$((i-1))\"]"; done'
@vitorbiten
vitorbiten / gist:40d54b9eaad534a462059c53ab60cd22
Last active April 13, 2024 14:24
simple us + pt/br layout
#just replace the existing config on /usr/share/X11/xkb/symbols/us to avoid headache
partial alphanumeric_keys
xkb_symbols "intl" {
name[Group1]= "English (US, intl., with dead keys)";
key <TLDE> { [dead_grave, dead_tilde, grave, asciitilde ] };
key <AE01> { [ 1, exclam, exclamdown, onesuperior ] };
key <AE02> { [ 2, at, twosuperior, dead_doubleacute ] };