projects
/
~madcoder
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplification
[~madcoder/dotfiles.git]
/
config
/
awesome
/
rc.lua
diff --git
a/config/awesome/rc.lua
b/config/awesome/rc.lua
index
caa561e
..
d2ea01d
100644
(file)
--- a/
config/awesome/rc.lua
+++ b/
config/awesome/rc.lua
@@
-311,14
+311,10
@@
globalkeys = awful.util.table.join(
-- Mod+Shift_{E/D}: move window to next/prev screen
awful.key(k_mc, "Right", function()
-- Mod+Shift_{E/D}: move window to next/prev screen
awful.key(k_mc, "Right", function()
- local s = mouse.screen + 1
- while s > screen.count() do s = s - screen.count() end
- client.focus.screen = s
+ client.focus.screen = awful.util.cycle(screen.count(), mouse.screen + 1)
end),
awful.key(k_mc, "Left", function()
end),
awful.key(k_mc, "Left", function()
- local s = mouse.screen - 1
- while s < 1 do s = s + screen.count() end
- client.focus.screen = s
+ client.focus.screen = awful.util.cycle(screen.count(), mouse.screen - 1)
end),
end),