diff --git a/_autostart.sh b/_autostart.sh index d9fabf6..d85d379 100755 --- a/_autostart.sh +++ b/_autostart.sh @@ -10,7 +10,7 @@ # Desktop effect, for example transparency #xcompmgr & -xmodmap $HOME/.Xmodmap +#xmodmap $HOME/.Xmodmap # Dropbox #dropbox start @@ -22,7 +22,8 @@ xmodmap $HOME/.Xmodmap #trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype pixel --width 128 --transparent true --alpha 0 --tint 0x000000 --height 18 & # ssh-proxy -#ssh alswl@log4d.com -ND 7070 & +#ssh user@vps.com -ND 7070 & +#autossh -M 20000 -f -q -N -D 7070 user@vps.com # wallpaper #nitrogen --restore diff --git a/_menu.lua b/_menu.lua index a37b11b..96c4ea8 100644 --- a/_menu.lua +++ b/_menu.lua @@ -2,26 +2,29 @@ -- Create a laucher widget and a main menu myawesomemenu = { --{ "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awesome.conffile }, - { "restart", awesome.restart }, - { "quit", awesome.quit }, - { "suspend", function () awful.util.spawn("sudo pm-suspend") end}, - { "power off", "dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"}, + --{ "edit config", editor_cmd .. " " .. awesome.conffile }, + --{ "restart", awesome.restart }, + --{ "quit", awesome.quit }, + --{ "suspend", "systemctl suspend"}, + --{ "power off", "systemctl poweroff"}, } mymainmenu = awful.menu({ items = { - {"awesome", myawesomemenu, beautiful.awesome_icon}, - -- {"应用程序 (&A)", debian.menu.Debian_menu.Debian}, -- ubuntu - -- {"应用程序 (&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 } + --{"awesome", myawesomemenu, beautiful.awesome_icon}, + --{"应用程序 (&A)", debian.menu.Debian_menu.Debian}, -- ubuntu + --{"应用程序 (&A)", xdgmenu}, -- arch + --{"&Nautilus", "nautilus --no-desktop", '/usr/share/icons/hicolor/32x32/apps/nautilus.png'}, + --{"&Thunar", "thunar"}, + --{"&Rox", "rox"}, + --{"&Emelfm2", "emelfm2"}, + --{"屏幕键盘", "matchbox-keyboard", '/usr/share/pixmaps/matchbox-keyboard.png'}, + --{"open terminal", terminal } } }) mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), - menu = mymainmenu }) + menu = mymainmenu +}) -- }}}