mod.rs (1773B)
1 use crate::plugin_actions::PluginActions; 2 3 #[allow(dead_code)] 4 #[derive(Copy, Clone, Debug)] 5 pub enum Color { 6 Red = 15, 7 Green = 60, 8 Orange = 47, 9 Yellow = 62, 10 Amber = 63, 11 } 12 13 pub static LAYERS: [&'static [(i64, Color, PluginActions)]; 10] = [ 14 &[ 15 (120, Color::Orange, PluginActions::SwayBack), 16 (119, Color::Red, PluginActions::SwayWorkspace("1:\u{e007}")), 17 (118, Color::Red, PluginActions::SwayWorkspace("2:\u{f086}")), 18 (117, Color::Red, PluginActions::SwayWorkspace("3:\u{f0e0}")), 19 (116, Color::Red, PluginActions::SwayWorkspace("5:\u{f1c9}")), 20 (115, Color::Red, PluginActions::SwayWorkspace("11:\u{f1b6}")), 21 (114, Color::Red, PluginActions::SwayWorkspace("12:\u{f11b}")), 22 (113, Color::Red, PluginActions::SwayWorkspace("13:\u{f167}")), 23 (112, Color::Red, PluginActions::SwayWorkspace("42:\u{f001}")), 24 (102, Color::Orange, PluginActions::MumbleToggleMute), 25 (103, Color::Orange, PluginActions::MumbleToggleDeaf), 26 (109, Color::Amber, PluginActions::SpotifyPrevTrack), //TODO investigate why 109-111 do not light up (They are undocumented) 27 (110, Color::Amber, PluginActions::SpotifyPause), 28 (111, Color::Amber, PluginActions::SpotifyNextTrack), 29 ], 30 &[(0, Color::Red, PluginActions::ExamplePlugin)], 31 &[ 32 ( 33 0, 34 Color::Amber, 35 PluginActions::SelectMatrixRoomByID("!IFqsVhqzXtALgXIFig:bpulse.org"), 36 ), 37 ( 38 1, 39 Color::Amber, 40 PluginActions::SelectMatrixRoomByID("!FJymnHKxIlQeNDkaZW:ubports.chat"), 41 ), 42 (17, Color::Yellow, PluginActions::RunMatrixPreset("0")), 43 ], 44 &[], 45 &[], 46 &[], 47 &[], 48 &[], 49 &[], 50 &[], 51 ];