Switched Screens
This commit is contained in:
parent
a004c8c24d
commit
a9bebf4efd
11 changed files with 97 additions and 18 deletions
|
@ -58,7 +58,9 @@ awful.keyboard.append_global_keybindings({
|
|||
|
||||
awful.key({ modkey, shift }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}),
|
||||
|
||||
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
|
||||
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}),
|
||||
|
||||
awful.key({ modkey, shift }, "Return", function () awful.spawn("xterm") end, {description = "open a terminal", group = "launcher"}),
|
||||
-- awful.key({ modkey }, "p", function() menubar.show() end,
|
||||
-- {description = "show the menubar", group = "launcher"}),
|
||||
})
|
||||
|
@ -243,7 +245,8 @@ awful.keyboard.append_global_keybindings({
|
|||
-- awful.key({ modkey }, "=", function () awful.screen.focused().systray.visible = not awful.screen.focused().systray.visible end, {description = "Toggle systray visibility", group = "custom"})
|
||||
--})
|
||||
awful.keyboard.append_global_keybindings({
|
||||
awful.key({alt}, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
|
||||
awful.key({ alt }, "Tab", function() awesome.emit_signal("sidebar::toggle") end), -- Sidebar
|
||||
awful.key({ alt }, "t", function() awful.titlebar.toggle(client.focus) end),
|
||||
})
|
||||
|
||||
-- Client :
|
||||
|
|
|
@ -122,9 +122,9 @@ local slide = rubato.timed {
|
|||
|
||||
-- Timer of sidebar's death
|
||||
sidebar.timer = gears.timer {
|
||||
timeout = 0.5,
|
||||
single_shot = true,
|
||||
callback = function()
|
||||
timeout = 0.5,
|
||||
single_shot = true,
|
||||
callback = function()
|
||||
sidebar.visible = not sidebar.visible
|
||||
end
|
||||
}
|
||||
|
@ -132,10 +132,12 @@ sidebar.timer = gears.timer {
|
|||
-- Toggle function
|
||||
sidebar.toggle = function(s)
|
||||
if sidebar.visible then
|
||||
slide.target = awful.screen.focused().geometry.x - sidebar.width
|
||||
--slide.target = awful.screen.focused().geometry.x - sidebar.width
|
||||
slide.target = awful.screen.focused().geometry.x + sidebar.width
|
||||
sidebar.timer:start()
|
||||
else
|
||||
slide.target = awful.screen.focused().geometry.x + dpi(10)
|
||||
--slide.target = awful.screen.focused().geometry.x + dpi(10)
|
||||
slide.target = awful.screen.focused().geometry.x - dpi(195)
|
||||
sidebar.visible = not sidebar.visible
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue