From 9962f8946ec5d248760df4ea018c767898444341 Mon Sep 17 00:00:00 2001 From: bbb651 Date: Tue, 3 Sep 2024 16:56:21 +0300 Subject: [PATCH] feat: Add `WindowSwitcherReverse` action --- config/src/shortcuts/action.rs | 4 +++- data/system_actions.ron | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/src/shortcuts/action.rs b/config/src/shortcuts/action.rs index 4638460..d69cde3 100644 --- a/config/src/shortcuts/action.rs +++ b/config/src/shortcuts/action.rs @@ -171,8 +171,10 @@ pub enum System { VolumeRaise, /// Opens the system default web browser WebBrowser, - /// Opens the (alt+tab) window switcher + /// Opens the (alt+tab) window switcher and cycle forwards WindowSwitcher, + /// Opens the (alt+tab) window switcher and cycle backwards + WindowSwitcherReverse, /// Opens the workspace overview WorkspaceOverview, } diff --git a/data/system_actions.ron b/data/system_actions.ron index 7eaba77..51888fa 100644 --- a/data/system_actions.ron +++ b/data/system_actions.ron @@ -35,8 +35,10 @@ VolumeRaise: "amixer sset Master on; amixer sset Master 5%+", /// Opens the system default web browser WebBrowser: "xdg-open http://", - /// Opens the (alt+tab) window switcher + /// Opens the (alt+tab) window switcher and cycle forwards WindowSwitcher: "cosmic-launcher alt-tab", + /// Opens the (alt+tab) window switcher and cycle backwards + WindowSwitcherReverse: "cosmic-launcher alt-tab --reverse", /// Opens the workspace overview WorkspaceOverview: "cosmic-workspaces", }