- Sistema Operativo: Ubuntu 13.04
- Tema: Ubuntu Touch Ambiance
- Ambiente Gráfico: Gnome-Shell
- Ícones: my humanity
- Wallpaper: lonely_countryside_wallpaper_by_martz90-d4xeyhy.zip
Bem-vindo: Qui, 28 de Novembro 2024, 8:56 Pesquisa avançada
Ainda não tem o Ubuntu instalado? Veja:
|
Dicas para melhorar o Ubuntu:
|
|
Claudio Novais (09-08-2013, 17:24) escreveu:Não!!!!!!!1!!!1!eleven!!!1!!
Não volte! Está espetacular este seu ambiente!!
Ainda não tem o Ubuntu instalado? Veja:
|
Dicas para melhorar o Ubuntu:
|
|
Davysson Silva (09-08-2013, 17:32) escreveu:Claudio Novais (09-08-2013, 17:24) escreveu:Não!!!!!!!1!!!1!eleven!!!1!!
Não volte! Está espetacular este seu ambiente!!
Também gostei muito, o Awesome WM realmente é awesome
Acho até que seria bom vocês falarem no ubuntued sobre esses gerenciadores de janelas minimalista como awesome, xmonad, openbox, etc. São uma ótima alternativa pra quem gostaria de um pouco mais de personalização.
Luis Cardoso escreveu:Davysson Silva (09-08-2013, 17:32) escreveu:Claudio Novais (09-08-2013, 17:24) escreveu:Não!!!!!!!1!!!1!eleven!!!1!!
Não volte! Está espetacular este seu ambiente!!
Também gostei muito, o Awesome WM realmente é awesome
Acho até que seria bom vocês falarem no ubuntued sobre esses gerenciadores de janelas minimalista como awesome, xmonad, openbox, etc. São uma ótima alternativa pra quem gostaria de um pouco mais de personalização.
Olhe pode começar a desbobinar como fez para ter o Awesome awesome. O que fez para ter as sombras, por exemplo... Como deixar com os dois painéis, etc, etc... Tudo o que seria necessário para ficar assim!
[Desktop Entry]
Encoding=UTF-8
Name=Awesome
Comment=
Exec=awesome.start
Type=Application
#set keyboard layout
setxkbmap -layout br
#set language
export LANG=pt_BR.UTF-8
#start numlockx
numlockx &
#start compton
compton --config ~/.compton.conf -b
#start awesome
exec awesome -c ~/.awesome/rc.lua
# Shadow
shadow = true; # Enabled client-side shadows on windows.
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true; # Don't draw shadows on DND windows.
clear-shadow = true; # Zero the part of the shadow's mask behind the
# window. Fix some weirdness with ARGB windows.
shadow-radius = 7; # The blur radius for shadows. (default 12)
shadow-offset-x = -7; # The left offset for shadows. (default -15)
shadow-offset-y = -7; # The top offset for shadows. (default -15)
# shadow-opacity = 0.7; # The translucency for shadows. (default .75)
# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0)
# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0)
# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0)
shadow-exclude = [ "n:e:Notification","class_g = 'conky'" ]; # Exclude conditions for shadows.
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows
# (see also: --detect-rounded-corners)
# Opacity
menu-opacity = 0.9; # The opacity for menus. (default 1.0)
#inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0)
# active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0)
frame-opacity = 1.8; # Opacity of window titlebars and borders. (0.1 - 1.0)
# inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides
# value of _NET_WM_OPACITY. Bad choice.
alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing
# it may result in less X resource usage,
# Yet fading may look bad.
# inactive-dim = 0.2; # Dim inactive windows. (0.0 - 1.0)
# inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity.
# blur-background = true; # Blur background of transparent windows.
# Bad performance with X Render backend.
# GLX backend is preferred.
# blur-background-frame = true; # Blur background of opaque windows with transparent
# frames as well.
blur-background-fixed = false; # Do not let blur radius adjust based on window opacity.
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
# Exclude conditions for background blur.
# Fading
fading = true; # Fade windows during opacity changes.
# fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
# no-fading-openclose = true; # Avoid fade windows in/out when opening/closing.
fade-exclude = [ ]; # Exclude conditions for fading.
# Other
backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically
# much faster but depends on a sane driver.
mark-wmwin-focused = true; # Try to detect WM windows and mark them as active.
mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus).
use-ewmh-active-win = false; # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
# instead of using FocusIn/Out events. Usually more reliable but
# depends on a EWMH-compliant WM.
detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window
# managers not passing _NET_WM_OPACITY of client windows to frame
# windows.
refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto.
vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
# See man page for more details.
dbe = false; # Enable DBE painting mode. Rarely needed.
paint-on-overlay = false; # Painting on X Composite overlay window. Recommended.
sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate.
# Incompatible with certain VSync methods.
unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is
# detected, to maximize performance for full-screen windows.
focus-exclude = [ ]; # A list of conditions of windows that should always be considered
# focused.
detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in
# the same group focused at the same time.
detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows.
invert-color-include = [ ]; # Conditions for windows to be painted with inverted color.
# GLX backend # GLX backend fine-tune options. See man page for more info.
# glx-no-stencil = true; # Recommended.
glx-copy-from-front = false; # Useful with --glx-swap-method,
# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
# glx-no-rebind-pixmap = true; # Recommended if it works.
glx-swap-method = "undefined"; # See man page.
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
# fade: Fade the particular type of windows.
# shadow: Give those windows shadow
# opacity: Default opacity for the type of windows.
# focus: Whether to always consider windows of this type focused.
};
local home = os.getenv("HOME")
local mymodules = home .. "/.awesome/modules/?.lua"
package.path = package.path .. ";" .. mymodules
local awful = require("awful")
local rules = require("awful.rules")
local beautiful = require("beautiful")
local gears = require("gears")
local wibox = require("wibox")
local vicious = require("vicious")
-- Default applications
local terminal = "urxvt"
local browser = "chromium"
local filemanager = "nemo --no-desktop"
local editor = "vim"
local modkey = "Mod4"
local awesomedir = home .. "/.awesome"
local themes = awesomedir .. "/themes"
local active_theme = themes .. "/tomorrow-night"
local wallpapers = awesomedir .. "/wallpapers"
local icons = awesomedir .. "/icons"
-- Theme init
beautiful.init(active_theme .. "/theme.lua")
beautiful.wallpaper = wallpapers .. "/sleepy-kitten.jpg"
gears.wallpaper.maximized(beautiful.wallpaper, nil, true)
-- Layout
local layouts = {
awful.layout.suit.tile,
awful.layout.suit.fair,
awful.layout.suit.floating
}
-- Tags
local tags = {
names = { "TERM", "WEB", "CODE", "CHAT", "GAME", "VIDEO", "OTHERS" }
}
for s = 1, screen.count() do
tags[s] = awful.tag(tags.names, s, layouts.floating)
end
-- Contextual menu
local mainmenu = awful.menu({
items = {
{"term", terminal},
{"browser", browser},
{"files", filemanager},
{"restart", awesome.restart},
{"quit", awesome.quit},
}
})
-- Separator
local separator = wibox.widget.textbox()
separator:set_text(' ')
--cpu
local cpuwidget = wibox.widget.textbox()
local cpuicon = wibox.widget.imagebox()
cpuicon:set_image(beautiful.widget_cpu)
vicious.register(cpuwidget, vicious.widgets.cpu,
'<span color="' .. beautiful.fg_magenta .. '">$1%</span>', 13)
--memory
local memwidget = wibox.widget.textbox()
local memicon = wibox.widget.imagebox()
memicon:set_image(beautiful.widget_mem)
vicious.register(memwidget, vicious.widgets.mem,
'<span color="' .. beautiful.fg_magenta .. '">$1%</span>', 13)
--network
netupwidget = wibox.widget.textbox()
netdownwidget = wibox.widget.textbox()
netupicon = wibox.widget.imagebox()
netdownicon = wibox.widget.imagebox()
netupicon:set_image(beautiful.widget_netup)
netdownicon:set_image(beautiful.widget_netdown)
vicious.register(netupwidget, vicious.widgets.net, '<span color="' .. theme.fg_yellow .. '">${eno1 up_kb}</span>', 3)
vicious.register(netdownwidget, vicious.widgets.net, '<span color="' .. theme.fg_green .. '">${eno1 down_kb}</span>', 3)
--audio
audiowidget = wibox.widget.textbox()
local audioicon = wibox.widget.imagebox()
audioicon:set_image(beautiful.widget_spkr)
vicious.register(audiowidget, vicious.widgets.volume, '<span color="' .. theme.fg_blue .. '">$1%</span>', 2, "PCM")
audiowidget:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.util.spawn("amixer -q set PCM 5dB+", false) end),
awful.button({ }, 3, function () awful.util.spawn("amixer -q set PCM 5dB-", false) end)
))
--Clock
local clock = awful.widget.textclock()
--Kernel
local kernelwidget = wibox.widget.textbox()
local archicon = wibox.widget.imagebox()
archicon:set_image(beautiful.widget_arch)
--UpTIme
local uptimewidget = wibox.widget.textbox()
vicious.register(uptimewidget, vicious.widgets.uptime, "UPTIME: <span color='" .. beautiful.fg_blue .. "'>$2H $3MIN</span>", 61)
local toppanel = {}
local botpanel = {}
local promptbox = {}
local taglist = {}
local tasklist = {}
taglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag)
)
for s = 1, screen.count() do
promptbox[s] = awful.widget.prompt()
taglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all,
taglist.buttons)
tasklist[s] = awful.widget.tasklist(s,
awful.widget.tasklist.filter.focused, tasklist.buttons)
toppanel[s] = awful.wibox({ position = "top", screen = s })
botpanel[s] = awful.wibox({ position = "bottom", screen = s })
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(separator)
left_layout:add(taglist[s])
left_layout:add(separator)
left_layout:add(promptbox[s])
local right_layout = wibox.layout.fixed.horizontal()
if screen.count() == 2 and s == 2 or screen.count() == 1 then
right_layout:add(wibox.widget.systray())
right_layout:add(separator)
right_layout:add(cpuicon)
right_layout:add(cpuwidget)
right_layout:add(memicon)
right_layout:add(memwidget)
right_layout:add(separator)
right_layout:add(netupicon)
right_layout:add(netupwidget)
right_layout:add(netdownicon)
right_layout:add(netdownwidget)
right_layout:add(separator)
right_layout:add(audioicon)
right_layout:add(audiowidget)
right_layout:add(separator)
right_layout:add(clock)
end
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(tasklist[s])
layout:set_right(right_layout)
toppanel[s]:set_widget(layout)
toppanel[s]:set_bg(theme.fg_black)
--Bottom panel
local bot_left_layout = wibox.layout.fixed.horizontal()
bot_left_layout:add(archicon)
local bot_right_layout = wibox.layout.fixed.horizontal()
bot_right_layout:add(uptimewidget)
local bot_layout = wibox.layout.align.horizontal()
bot_layout:set_left(bot_left_layout)
bot_layout:set_right(bot_right_layout)
botpanel[s]:set_widget(bot_layout)
botpanel[s]:set_bg(theme.fg_black)
end
--Mouse binding
root.buttons(awful.util.table.join(
awful.button({}, 3, function() mainmenu:toggle() end)
))
-- Key binding
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "j", function()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k", function()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, "Mod1" }, "/", function(c)
local curidx = awful.tag.getidx()
local dstidx = curidx + 1
if curidx == 9 then dstidx = 1 end
awful.client.movetotag(tags[mouse.screen][dstidx], c)
end),
awful.key({ modkey, "Mod1" }, ".", function(c)
local curidx = awful.tag.getidx()
local dstidx = curidx - 1
if curidx == 1 then dstidx = 9 end
awful.client.movetotag(tags[mouse.screen][dstidx], c)
end),
awful.key({ modkey, "Shift"}, "t", function() awful.util.spawn(terminal) end),
awful.key({ modkey, "Shift"}, "e", function() awful.util.spawn(editor) end),
awful.key({ modkey, "Shift"}, "w", function() awful.util.spawn(browser) end),
awful.key({ modkey, "Shift"}, "f", function() awful.util.spawn(filemanager) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Control" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function() awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function() awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, }, "space", function() awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Control" }, "n", awful.client.restore),
awful.key({ modkey }, "r", function() promptbox[mouse.screen]:run() end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, "Mod1" }, "m", function() xrandr.switch(2) end),
awful.key({ }, "XF86AudioRaiseVolume", function()
awful.util.spawn("amixer set Master 1%+", false)
end),
awful.key({ }, "XF86AudioLowerVolume", function()
awful.util.spawn("amixer set Master 1%-", false)
end),
awful.key({ }, "XF86AudioMute", function()
awful.util.spawn("amixer set Master toggle", false)
end),
awful.key({ "Mod4" }, "F3", function()
awful.util.spawn("amixer set Master 1%+", false)
end),
awful.key({ "Mod4" }, "F2", function()
awful.util.spawn("amixer set Master 1%-", false)
end),
awful.key({ "Mod4" }, "F1", function()
awful.util.spawn("amixer set Master toggle", false)
end)
)
clientkeys = awful.util.table.join(
awful.key({ modkey, "Mod1" }, "c", function(c) c:kill() end),
awful.key({ modkey, }, "f", function(c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, }, "n", function(c) c.minimized = true end),
awful.key({ modkey, }, "m", function(c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
)
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize)
)
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber))
end
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9, function()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9, function()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9, 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" }, "#" .. i + 9, function()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end)
)
end
root.keys(globalkeys)
-- Signals
client.connect_signal("manage", function(c, startup)
c:connect_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
if not c.size_hints.user_position and not
c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
end)
client.connect_signal("focus", function(c)
c.border_color = beautiful.border_focus
end)
client.connect_signal("unfocus", function(c)
c.border_color = beautiful.border_normal
end)
--rules
rules.rules = {
{
rule = { },
properties = {
border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
keys = clientkeys,
buttons = clientbuttons,
size_hints_honor = false,
opacity = 1.0
}
},
{ rule = { class = "Exe"}, properties = {floating = true} },
{ rule = { class = "Chromium"}, properties = {tag = tags[1][2]} },
{ rule = { class = "MPlayer"}, properties = {floating = true, tag = tags[1][6]} },
{ rule = { class = "URxvt"}, properties = {opacity = 0.9, floating = true, tag = tags[1][1]} },
}
Usuários navegando neste fórum: Nenhum usuário registrado e 15 visitantes