by izoow · 3y ago · 0 comments
Probably the main thing I'm missing from KDE is being able fo use Super+Number to switch between windows, i.e. Super+1 switches to the window at the first position in the taskbar, etc.. I've been searching around, but haven't found anything that'd be 100%. Would anyone happen to have a solution by any chance?
nth=1; wmctrl -i -a $( wmctrl -l | awk '$2 == "0" { print $1 }' | sed -n "${nth}p" )
I guess you would need 9 shortcuts and you would set nth to the number associated with that shortcut. Works for me at least. You might have to define the shortcut to "bash -c " followed by the above oneliner with some appropriate quoting and escaping of inner quotes.