From 69f8194da778a692b6b0c14f43d9611c2072e8ba Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 7 Dec 2015 16:19:36 -0300 Subject: Implement desktops. It's somewhat buggy. But works :). There're 2 desktops only for now, maybe later I will implement something more dynamic --- src/socket/parser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/socket') diff --git a/src/socket/parser.rs b/src/socket/parser.rs index bd73ff6..30487d8 100644 --- a/src/socket/parser.rs +++ b/src/socket/parser.rs @@ -22,7 +22,6 @@ macro_rules! simple_try { } fn modifier_from<'a>(s: &'a str) -> Result { - println!("Getted modifier {}", s); match s { "Mod1" => Ok(xlib::Mod1Mask), "Mod2" => Ok(xlib::Mod2Mask), @@ -99,6 +98,8 @@ fn key<'a>(s: &'a str) -> Result { "X" => Ok(keysym::XK_X), "Y" => Ok(keysym::XK_Y), "Z" => Ok(keysym::XK_Z), + "1" => Ok(keysym::XK_1), + "2" => Ok(keysym::XK_2), "Tab" => Ok(keysym::XK_Tab), "Return" => Ok(keysym::XK_Return), _ => Err("unknown key"), @@ -116,6 +117,7 @@ fn func<'a>(s: &'a str) -> Result { "focus-next" => Ok(focus_next), "close-win" => Ok(close_win), "fullscreen" => Ok(fullscreen), + "change-desktop" => Ok(change_desktop), "quit" => Ok(quit_dotwm), _ => Err("unknown function"), } -- cgit v1.2.3-70-g09d2