Permalink
Browse files

fix for dual monitor

  • Loading branch information...
1 parent cf76594 commit d49bb4a97e6447882983b2f4f1832fec189f7a8f @alswl committed Sep 24, 2012
Showing with 8 additions and 17 deletions.
  1. +2 −2 _menu.lua
  2. +1 −0 _variables.lua
  3. +1 −1 lib/key.lua
  4. +1 −11 lib/switch.lua
  5. +2 −2 lib/tag.lua
  6. +1 −1 lib/wibox.lua
View
@@ -13,15 +13,15 @@ mymainmenu = awful.menu({
items = {
{"awesome", myawesomemenu, beautiful.awesome_icon},
-- {"应用程序 (&A)", debian.menu.Debian_menu.Debian}, -- ubuntu
- {"应用程序 (&A)", xdgmenu}, -- arch
+ -- {"应用程序 (&A)", xdgmenu}, -- arch
{"&Nautilus", "nautilus --no-desktop", '/usr/share/icons/hicolor/32x32/apps/nautilus.png'},
{"&Thunar", "thunar"},
{"屏幕键盘", "matchbox-keyboard", '/usr/share/pixmaps/matchbox-keyboard.png'},
{"open terminal", terminal }
}
})
-local mylauncher = awful.widget.launcher({
+mylauncher = awful.widget.launcher({
image = image(beautiful.awesome_icon),
menu = mymainmenu })
-- }}}
View
@@ -14,6 +14,7 @@ editor_cmd = terminal .. " -e " .. editor
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
+netif = "eth0"
-- auto run
awful.util.spawn_with_shell("~/.config/awesome/autostart.sh")
View
@@ -1,5 +1,5 @@
-- {{{ Key bindings
-local globalkeys = awful.util.table.join(
+globalkeys = awful.util.table.join(
awful.key({ modkey,}, "Left", awful.tag.viewprev),
awful.key({ modkey,}, "Right", awful.tag.viewnext),
awful.key({ modkey,}, "Escape", awful.tag.history.restore),
View
@@ -4,20 +4,10 @@ local screen = require("screen")
local mouse = require("mouse")
local client = require("client")
-local capi = {
- io = io,
- screen = screen,
- tag = tag,
- client = client,
- mouse = mouse,
- root = root,
- key = key,
-}
-
module("switch")
local mouse_position = {}
-local last_tag = 1
+local last_tag = 2
-- Init mouse position
for s = 1, screen.count() do
View
@@ -19,8 +19,8 @@ for s = 1, screen.count() do
-- Each screen has its own tag table.
if s == 1 then
tags[s] = awful.tag(tags.names, s, tags.layouts)
- else -- 第二屏幕,是竖起来的 -- FIXME
- tags[s] = awful.tag(tags.names, s, awful.layout.suit.tile.bottom)
+ else -- The other screen
+ tags[s] = awful.tag(tags.names, s, awful.layout.suit.max)
end
end
-- }}}
View
@@ -6,7 +6,7 @@ memwidget1 = memwidget.register()
-- Cpu Widget
cpuwidget1 = cpuwidget.register()
-- Net Interface Speed
-netwidget1 = netwidget.register(widget({ type = "textbox" }), "wlan0")
+netwidget1 = netwidget.register(widget({ type = "textbox" }), netif)
-- Volume Control
volume1 = volume.register()
-- Battery

0 comments on commit d49bb4a

Please sign in to comment.