Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
setxkbmap -layout 'us,ru' -option 'grp:alt_shift_toggle
Всетаки большую часть времени использую приложения развернутыми на весь экран, а при этом весь смысл тайловости пропадает.
awful.tag("www",1,awful.layout.suit.max)
тогда все окна будут растянуты на весь экран.-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier,
awful.layout.suit.floating
}
-- }}}
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag(
{
-- tag names
1, 2, 3, 4, 5
}, s, {
-- tag layouts
layouts[9], layouts[1], layouts[1], layouts[9], layouts[9]
}
)
end
-- }}}
-- {{{ Key bindings
-- ... тут идут другие биндинги ... --
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "F" .. i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "F" .. i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "F" .. i,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "F" .. i,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
-- }}}
Вроде ничего не забыл…Индикатор батареи awesome.naquadah.org/wiki/Acpitools-based_battery_widget (есть много разных, но я пользовался этим)
-- Create a laucher widget and a main menu
mymainmenu = awful.menu.new({ <-- это переменная меню
mylauncher = awful.widget.launcher({ ... menu = mymainmenu }) <-- а это искомая переменная кнопки меню
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mytextbox,
s == 1 and mysystray or nil,
mylayoutbox[s],
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
}
xbindkeys &
syndaemon -i 0.5 -d &
wmname LG3D
xset r rate 200 50
setxkbmap us,ru -option grp:caps_togglegrp_led:caps
$(sleep 1;rxvt) &
$(sleep 3; google-chrome) &
$(sleep 3; xsetroot -solid black) &
$(sleep 7; gajim) &
$(sleep 11; skype) &
$(sleep 15; /home/lorien/.dropbox-dist/dropboxd) &
$(sleep 20; wicd-client) &
awesome
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
{ rule = { class = "Firefox" },
properties = { tag = tags[1][7] } },
{ rule = { class = "Iceweasel" },
properties = { tag = tags[1][7] } },
{ rule = { class = "Google-chrome" },
properties = { tag = tags[1][2] } },
--{ rule = { class = "Opera" },
--properties = { tag = tags[1][2] } },
--{ rule = { class = "Iceweasel" },
--properties = { tag = tags[1][2] } },
{ rule = { class = "Pidgin" },
properties = { tag = tags[1][3] } },
{ rule = { class = "Skype" },
properties = { tag = tags[1][4] } },
{ rule = { class = "Gajim" },
properties = { tag = tags[1][3] } },
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
}
-- }}}
Классный оконный менеджер — Awesome WM