-- WScreen context bindings -- -- The bindings in this context are available all the time. defbindings("WScreen", { bdoc("Switch to n:th object (workspace, full screen client window) ".. "within current screen."), kpress(META.."F1", "WScreen.switch_nth(_, 0)"), kpress(META.."F2", "WScreen.switch_nth(_, 1)"), kpress(META.."F3", "WScreen.switch_nth(_, 2)"), kpress(META.."F4", "WScreen.switch_nth(_, 3)"), kpress(META.."F5", "WScreen.switch_nth(_, 4)"), kpress(META.."F6", "WScreen.switch_nth(_, 5)"), kpress(META.."F7", "WScreen.switch_nth(_, 6)"), kpress(META.."F8", "WScreen.switch_nth(_, 7)"), --kpress(META.."F9", "WScreen.switch_nth(_, 8)"), --kpress(META.."F10", "WScreen.switch_nth(_, 9)"), --kpress(META.."F11", "WScreen.switch_nth(_, 10)"), --kpress(META.."F12", "WScreen.switch_nth(_, 11)"), bdoc("Switch to next/previous object within current screen."), kpress(META.."Mod1+Left", "WScreen.switch_prev(_)"), kpress(META.."Mod1+Right", "WScreen.switch_next(_)"), bdoc("Go to first region demanding attention or previously active one."), kpress(META.."Shift+space", "mod_menu.grabmenu(_, _sub, 'focuslist')"), bdoc("Go to first object on activity/urgency list."), kpress(META.."n", "ioncore.goto_activity()"), bdoc("Go to previous active object."), kpress(META.."Shift+n", "ioncore.goto_previous()"), bdoc("Clear all tags."), kpress(META.."Shift+T", "ioncore.tagged_clear()"), bdoc("Create a new workspace of chosen default type."), kpress(META.."F9", "ioncore.create_ws(_)"), bdoc("Display the main menu."), --kpress(ALTMETA.."F12", "mod_query.query_menu(_, _sub, 'mainmenu', 'Main menu:')"), --kpress(ALTMETA.."F12", "mod_menu.menu(_, _sub, 'mainmenu', {big=true})"), mpress("Button2", "mod_menu.menu(_, _sub, 'mainmenu')"), bdoc("Display the frame menu."), mpress("Button3", "mod_menu.pmenu(_, _sub, 'mainmenu')"), }) -- Frames for transient windows ignore this bindmap defbindings("WMPlex.toplevel", { -- Programas submap(META.."p", { bdoc("Run a terminal emulator."), kpress("x", "ioncore.exec_on(_, 'x-terminal-emulator')"), bdoc("Run a web browser."), kpress("n", "ioncore.exec_on(_, 'x-www-browser')"), bdoc("Run an IRC client."), kpress("i", "ioncore.exec_on(_, 'xchat')"), bdoc("Run a mail user agent."), kpress("m", "ioncore.exec_on(_, 'x-terminal-emulator -e muttng')"), bdoc("Run an address book."), kpress("a", "ioncore.exec_on(_, 'x-terminal-emulator -e abook')"), bdoc("Run a jabber client."), kpress("j", "ioncore.exec_on(_, 'psi')"), }), -- Música submap(META.."x", { bdoc("Go to the next song."), kpress("Right", "ioncore.exec('mpc next')"), bdoc("Got to the previous song."), kpress("Left", "ioncore.exec('mpc prev')"), bdoc("Stop playing."), kpress("s", "ioncore.exec('mpc stop')"), bdoc("Togle play/pause."), kpress("p", "ioncore.exec('mpc toggle')"), }), -- Volumen bdoc("Raise the volume by 5."), kpress(META.."Mod1+Up", "ioncore.exec('amixer -q sset PCM 5%+')"), bdoc("Lower the volume by 5."), kpress(META.."Mod1+Down", "ioncore.exec('amixer -q sset PCM 5%-')"), bdoc("Raise the volume by 1."), kpress(META.."Mod1+Shift+Up", "ioncore.exec('amixer -q sset PCM 1%+')"), bdoc("Lower the volume by 1."), kpress(META.."Mod1+Shift+Down", "ioncore.exec('amixer -q sset PCM 1%-')"), }) defbindings("WFrame.toplevel", { bdoc("Switch to n:th object within the frame."), kpress(META.."1", "WFrame.switch_nth(_, 0)"), kpress(META.."2", "WFrame.switch_nth(_, 1)"), kpress(META.."3", "WFrame.switch_nth(_, 2)"), kpress(META.."4", "WFrame.switch_nth(_, 3)"), kpress(META.."5", "WFrame.switch_nth(_, 4)"), kpress(META.."6", "WFrame.switch_nth(_, 5)"), kpress(META.."7", "WFrame.switch_nth(_, 6)"), kpress(META.."8", "WFrame.switch_nth(_, 7)"), kpress(META.."9", "WFrame.switch_nth(_, 8)"), kpress(META.."0", "WFrame.switch_nth(_, 9)"), }) -- vim: set et sw=4 sts=4 :