Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Invoke GNOME overview via a mouse button (under Wayland)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
ninlith
Posts: 10
Joined: 2008-01-17 19:24
Location: Finland

Invoke GNOME overview via a mouse button (under Wayland)

#1 Post by ninlith »

Depends on evemu-tools.

Code: Select all

#!/bin/bash

EVENT="BTN_EXTRA 0"
MOUSE_DEVICE=$(readlink -f /dev/input/by-path/*event-mouse)

function toggle_overview() {
    dbus-send --session --type=method_call --dest=org.gnome.Shell \
        /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
}

sudo evemu-record "$MOUSE_DEVICE" | \
    while read line; do \
        echo $line | grep "$EVENT" && toggle_overview; \
    done

Post Reply