54
What distro works well for a 2012 Macbook Pro?
(lemmy.world)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
If you use KDE with wayland, then :
To be able to use four fingers swipe up, you need to disable present windows first. Go to settings > workspace behaviour > desktop effects and unclick
desktop grid
andpresent windows
(in the hope that you have no use for them)Then you need to install evemu and libinput-gestures (if you're on Arch, it's in the pacman repo and the AUR respectively)
Once you have it installed, run in your terminal
evemu-record
. It will list all of your devices. Shut down the program with Ctrl + C and look at the event for your keyboard. Once this is done note it down.Create a new file
nano sendkey.sh
Copy the content of this code in the new file but replace
EVDEVICE=/dev/input/event4
with your keyboard.Ctrl +O then CTRL + X to save then quit nano. Once it is done run this command :
chmod +x sendkey.sh
then open the gestures app and start mapping away. The interface is very intuitive. What you want to do is click on the little + at the top bar then select the motion you want to bind (in your caseswipe
+up
+4 fingers
) and in the command at the bottom you write/home/YOURUSERNAME/sendkey.sh LEFTMETA W
And there it is. You can map pretty any keybind to any event with this. Hope this helps.
This is so goddamn great that I won't even make the obligatory vim/nano joke, seriously, thank you a bunch!
Made a little modification to sendkey.sh as the /dev/input/event numbers change on boot:
EVENTNUMBER=$(ls -lah /dev/input/by-path/pci-0000:00:14.0-usbv2-0:5:1.0-event-kbd |awk '{sub("../", "", $11); print $11}')
EVDEVICE=/dev/input/$EVENTNUMBER