aie ame sori beut aie donte spique ingliche corecteli
I going to translate for you :
He want to say that he was a very stupid guy, totally mad ...
(Raphi, I love you !!!!
)
CrunchBang Linux Forums » Posts by Kookaburra
aie ame sori beut aie donte spique ingliche corecteli
I going to translate for you :
He want to say that he was a very stupid guy, totally mad ...
(Raphi, I love you !!!!
)
Wow! can you share gtk & ob themes?
No "ob" theme : it's WMFS, not Openbox ...
The GTK theme can be found here (go to "shebang") : http://crunchbanglinux-fr.org/forum/vie php?id=707
http://pix.toile-libre.org/upload/origi 968863.png
Thanks to DarthWound ![]()
When i look again on this screen shot, something just popped out of my mind, it look very nice, but how to make the opened apps (clients) not overlapping the conky at the bottom? which syntax should be modified to make it look just like that?
Put this in your Conky :
#own window
own_window yes
own_window_type panel
own_window_hints below,sticky,skip_taskbar,skip_pager![]()
HIMYM right?
Yes, I love Barney ![]()
Oh, almost forgot, i'm still using Awesome v.3.4.6 , but i think the syntax is similar with Awesome v.3.4.9.
Yes, thanks it still work on 3.4.9 ! Thanks a lot ![]()
In fact, I try to put all the icons in "gray" (like the rest of my theme), but I can't find how to do it so I prefer not to show icons... ![]()
NB : in the same way, I find how to disable icons the menu (like "debian" menu) ... It was simple in fact, just to know where to rechearch .... ![]()
[
Have you tried to modify /usr/share/awesome/lib/awful/taskbar.lua ?
No, because I don't want to break something ... I have no idea to what I have to change for it ??? ![]()
The "tasklist.lua" :
---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @release v3.4.9
---------------------------------------------------------------------------
-- Grab environment we need
local capi = { screen = screen,
image = image,
client = client }
local ipairs = ipairs
local type = type
local setmetatable = setmetatable
local table = table
local common = require("awful.widget.common")
local beautiful = require("beautiful")
local client = require("awful.client")
local util = require("awful.util")
local tag = require("awful.tag")
local layout = require("awful.widget.layout")
--- Tasklist widget module for awful
module("awful.widget.tasklist")
-- Public structures
label = {}
local function tasklist_update(w, buttons, label, data, widgets)
local clients = capi.client.get()
local shownclients = {}
for k, c in ipairs(clients) do
if not (c.skip_taskbar or c.hidden
or c.type == "splash" or c.type == "dock" or c.type == "desktop") then
table.insert(shownclients, c)
end
end
clients = shownclients
common.list_update(w, buttons, label, data, widgets, clients)
end
--- Create a new tasklist widget.
-- @param label Label function to use.
-- @param buttons A table with buttons binding to set.
function new(label, buttons)
local w = {
layout = layout.horizontal.flex
}
local widgets = { }
widgets.imagebox = { }
widgets.textbox = { margin = { left = 2,
right = 2 },
bg_resize = true,
bg_align = "right"
}
local data = setmetatable({}, { __mode = 'kv' })
local u = function () tasklist_update(w, buttons, label, data, widgets) end
for s = 1, capi.screen.count() do
tag.attached_add_signal(s, "property::selected", u)
capi.screen[s]:add_signal("tag::attach", u)
capi.screen[s]:add_signal("tag::detach", u)
end
capi.client.add_signal("new", function (c)
c:add_signal("property::urgent", u)
c:add_signal("property::floating", u)
c:add_signal("property::maximized_horizontal", u)
c:add_signal("property::maximized_vertical", u)
c:add_signal("property::name", u)
c:add_signal("property::icon_name", u)
c:add_signal("property::icon", u)
c:add_signal("property::skip_taskbar", u)
c:add_signal("property::hidden", u)
c:add_signal("tagged", u)
c:add_signal("untagged", u)
end)
capi.client.add_signal("unmanage", u)
capi.client.add_signal("list", u)
capi.client.add_signal("focus", u)
capi.client.add_signal("unfocus", u)
u()
return w
end
local function widget_tasklist_label_common(c, args)
if not args then args = {} end
local theme = beautiful.get()
local fg_focus = args.fg_focus or theme.tasklist_fg_focus or theme.fg_focus
local bg_focus = args.bg_focus or theme.tasklist_bg_focus or theme.bg_focus
local fg_urgent = args.fg_urgent or theme.tasklist_fg_urgent or theme.fg_urgent
local bg_urgent = args.bg_urgent or theme.tasklist_bg_urgent or theme.bg_urgent
local fg_minimize = args.fg_minimize or theme.tasklist_fg_minimize or theme.fg_minimize
local bg_minimize = args.bg_minimize or theme.tasklist_bg_minimize or theme.bg_minimize
local floating_icon = args.floating_icon or theme.tasklist_floating_icon
local font = args.font or theme.tasklist_font or theme.font or ""
local bg = nil
local text = "<span font_desc='"..font.."'>"
local name
local status_image
if client.floating.get(c) and floating_icon then
status_image = capi.image(floating_icon)
end
if c.minimized then
name = util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>")
else
name = util.escape(c.name) or util.escape("<untitled>")
end
if capi.client.focus == c then
bg = bg_focus
if fg_focus then
text = text .. "<span color='"..util.color_strip_alpha(fg_focus).."'>"..name.."</span>"
else
text = text .. name
end
elseif c.urgent and fg_urgent then
bg = bg_urgent
text = text .. "<span color='"..util.color_strip_alpha(fg_urgent).."'>"..name.."</span>"
elseif c.minimized and fg_minimize and bg_minimize then
bg = bg_minimize
text = text .. "<span color='"..util.color_strip_alpha(fg_minimize).."'>"..name.."</span>"
else
text = text .. name
end
text = text .. "</span>"
return text, bg, status_image, c.icon
end
--- Return labels for a tasklist widget with clients from all tags and screen.
-- It returns the client name and set a special
-- foreground and background color for focused client.
-- It also puts a special icon for floating windows.
-- @param c The client.
-- @param screen The screen we are drawing on.
-- @param args The arguments table.
-- bg_focus The background color for focused client.
-- fg_focus The foreground color for focused client.
-- bg_urgent The background color for urgent clients.
-- fg_urgent The foreground color for urgent clients.
-- @return A string to print, a background color and a status image.
function label.allscreen(c, screen, args)
return widget_tasklist_label_common(c, args)
end
--- Return labels for a tasklist widget with clients from all tags.
-- It returns the client name and set a special
-- foreground and background color for focused client.
-- It also puts a special icon for floating windows.
-- @param c The client.
-- @param screen The screen we are drawing on.
-- @param args The arguments table.
-- bg_focus The background color for focused client.
-- fg_focus The foreground color for focused client.
-- bg_urgent The background color for urgent clients.
-- fg_urgent The foreground color for urgent clients.
-- @return A string to print, a background color and a status image.
function label.alltags(c, screen, args)
-- Only print client on the same screen as this widget
if c.screen ~= screen then return end
return widget_tasklist_label_common(c, args)
end
--- Return labels for a tasklist widget with clients from currently selected tags.
-- It returns the client name and set a special
-- foreground and background color for focused client.
-- It also puts a special icon for floating windows.
-- @param c The client.
-- @param screen The screen we are drawing on.
-- @param args The arguments table.
-- bg_focus The background color for focused client.
-- fg_focus The foreground color for focused client.
-- bg_urgent The background color for urgent clients.
-- fg_urgent The foreground color for urgent clients.
-- @return A string to print, a background color and a status image.
function label.currenttags(c, screen, args)
-- Only print client on the same screen as this widget
if c.screen ~= screen then return end
-- Include sticky client too
if c.sticky then return widget_tasklist_label_common(c, args) end
for k, t in ipairs(capi.screen[screen]:tags()) do
if t.selected then
local ctags = c:tags()
for _, v in ipairs(ctags) do
if v == t then
return widget_tasklist_label_common(c, args)
end
end
end
end
end
--- Return label for only the currently focused client.
-- It returns the client name and set a special
-- foreground and background color for focused client.
-- It also puts a special icon for floating windows.
-- @param c The client.
-- @param screen The screen we are drawing on.
-- @param args The arguments table.
-- bg_focus The background color for focused client.
-- fg_focus The foreground color for focused client.
-- bg_urgent The background color for urgent clients.
-- fg_urgent The foreground color for urgent clients.
-- @return A string to print, a background color and a status image.
function label.focused(c, screen, args)
-- Only print client on the same screen as this widget
if c.screen == screen and capi.client.focus == c then
return widget_tasklist_label_common(c, args)
end
end
setmetatable(_M, { __call = function(_, ...) return new(...) end })
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80Some could help me ? ![]()
Hey Guys, post some screenshots !!! ![]()
There is mine ...
rc.lua :
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Load Debian menu entries
require("debian.menu")
-- Enable mocp
function moc_control (action)
local moc_info,moc_state
if action == "next" then
io.popen("mocp --next")
elseif action == "previous" then
io.popen("mocp --previous")
elseif action == "stop" then
io.popen("mocp --stop")
elseif action == "play_pause" then
moc_info = io.popen("mocp -i"):read("*all")
moc_state = string.gsub(string.match(moc_info, "State: %a*"),"State: ","")
if moc_state == "PLAY" then
io.popen("mocp --pause")
elseif moc_state == "PAUSE" then
io.popen("mocp --unpause")
elseif moc_state == "STOP" then
io.popen("mocp --play")
end
end
end
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init("/home/kooka/.config/awesome/themes/zenburn/theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- 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"
altkey = "Mod1"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
awful.layout.suit.floating,
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
}
-- }}}
-- {{{ Tags
tags = {
names = { "web", "devel", "music", "misc", 5, 6, 7, 8, 9 },
layout = { layouts[10], layouts[2], layouts[10], layouts[10], layouts[2],
layouts[1], layouts[1], layouts[1], layouts[1]
}}
for s = 1, screen.count() do
tags[s] = awful.tag(tags.names, s, tags.layout)
for i, t in ipairs(tags[s]) do
awful.tag.setproperty(t, "hide", (i==5 or i==6 or i==7 or i==8 or i==9) and true)
end
end
-- }}}
-- {{{ Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "Restart Awesome", awesome.restart },
{ "Logout", awesome.quit }
}
launchers = {
{ "Pcmanfm", "pcmanfm" },
{ "Thunar (root)", "gksu thunar" },
{ "Picasa", "picasa" },
{ "Spotify", "playonlinux --run Spotify" }
}
moc = {
{ "Play", "mocp -p" },
{ "Pause", "mocp -P" },
{ "Prev", "mocp -r" },
{ "Next", "mocp -f" },
{ "Stop", "mocp -s" }
}
photo = {
{ "Jbrout", "jbrout" },
{ "PostR", "postr" },
{ "Darktable", "darktable" },
{ "Pinta", "pinta" },
{ "Phatch", "phatch" },
{ "Tintii", "tintii" }
}
config = {
{ "Edition Rc.lua", "geany /home/kooka/.config/awesome/rc.lua" },
{ "Edition Conkyrc-eeepc", "geany /home/Stockage/Projets/Conky/.conkyrc_eeepc" },
{ "Edition Zshrc", "geany /home/kooka/.zshrc" },
{ "Edition Xdefaults", "geany /home/kooka/.Xdefaults" },
{ "Edition Screenrc", "geany /home/kooka/.screenrc" },
{ "Script Sauvergarde", "urxvt -e sh -c 'sudo /home/Stockage/Projets/Bash/sauvegarde.sh'" },
{ "Script Mise-à-jour", "urxvt -e sh -c 'sudo /home/Stockage/Projets/Bash/maj.sh'" },
{ "Edition Script Post_install", "geany /home/Stockage/Projets/Bash/postinstall_script.sh" }
}
prefs = {
{ "Volume sonore", "gnome-alsamixer" },
{ "Luminosité", "urxvt -e sh -c 'sudo /home/Stockage/Projets/Bash/brightness_select.sh'" },
{ "Gouvernor CPU", "urxvt -e sh -c 'sudo /home/Stockage/Projets/Bash/governor.sh'" }
}
screenshots = {
{ "Now", "scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f /home/Stockage/Images/ScreenShoots & gpicview /home/Stockage/Images/ScreenShoots/$f'" },
{ "Wait 5s", "scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f /home/Stockage/Images/ScreenShoots & gpicview /home/Stockage/Images/ScreenShoots/$f'" },
{ "Wait 10s", "scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f /home/Stockage/Images/ScreenShoots & gpicview /home/Stockage/Images/ScreenShoots/$f'" },
{ "Kooka-Shadow", "urxvt -e sh -c '/home/Stockage/Projets/Bash/kooka-shadow'" },
{ "Kooka-Polaroid", "urxvt -e sh -c '/home/Stockage/Projets/Bash/kooka-polaroid'" },
{ "Kooka-Screen", "urxvt -e sh -c '/home/Stockage/Projets/Bash/kooka-screen'" }
}
logout = {
{ "Reboot", '/home/Stockage/Projets/Bash/redemarrage.sh'},
{ "Shutdown", '/home/Stockage/Projets/Bash/extinction.sh'},
}
mymainmenu = awful.menu({ items = { { "Open Terminal", terminal },
{ "Launchers", launchers },
{ "MoC-Player", moc },
{ "Photo", photo },
{ "Debian", debian.menu.Debian_menu.Debian },
{ "Screenshots", screenshots },
{ "Config", config },
{ "Prefs", prefs },
{ "Awesome", myawesomemenu },
{ "Logout", logout }
}
})
mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
menu = mymainmenu })
-- }}}
-- {{{ Wibox
-- Create a textclock widget
mytextclock = awful.widget.textclock({ align = "right"}, " %a %d %b, %H:%M:%S ", 1)
-- Create a systray
mysystray = widget({ type = "systray" })
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
)
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
client.focus = c
c:raise()
end),
awful.button({ }, 3, function ()
if instance then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ width=250 })
end
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end))
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(function(c)
return awful.widget.tasklist.label.currenttags(c, s)
end, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", height = "22", screen = s })
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
mytextclock,
s == 1 and mysystray or nil,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
}
end
-- }}}
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
-- {{{ Key bindings
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),
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, }, "w", function () mymainmenu:show({keygrabber=true}) end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "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, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
-- Dmenu
awful.key({ modkey, }, "BackSpace", function ()
awful.util.spawn("dmenu_run -i -p 'Run command:' -nb '" ..
beautiful.bg_normal .. "' -nf '" .. beautiful.fg_normal ..
"' -sb '" .. beautiful.bg_focus ..
"' -sf '" .. beautiful.fg_focus .. "'")
end),
-- GmRun
awful.key({ modkey, }, "g", function () awful.util.spawn("gmrun") end),
-- Mocp
awful.key({ "Control", }, "Right", function () moc_control("next") end),
awful.key({ "Control", }, "Left", function () moc_control("previous") end),
awful.key({ "Control", }, "Up", function () moc_control("stop") end),
awful.key({ "Control", }, "Down", function () moc_control("play_pause") end),
-- Volume
awful.key({ }, "XF86AudioLowerVolume", function() awful.util.spawn("amixer -q set Master 5-% unmute") end),
awful.key({ }, "XF86AudioRaiseVolume", function() awful.util.spawn("amixer -q set Master 5+% unmute") end),
awful.key({ }, "XF86AudioMute", function() awful.util.spawn("amixer -q set Master toggle") end),
awful.key({ modkey, }, "Down", function() awful.util.spawn("amixer -q set Master 5-% unmute") end),
awful.key({ modkey, }, "Up", function() awful.util.spawn("amixer -q set Master 5+% unmute") end),
awful.key({ "Control", }, "space", function() awful.util.spawn("amixer -q set Master toggle") end),
-- Prompt
awful.key({ modkey }, "p", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end)
)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
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
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))
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Rules require("scratch")
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 = "chromium-browser" },
properties = { tag = tags[1][web] } },
{ rule = { class = "Pidgin" },
properties = { tag = tags[1][web] } },
{ rule = { class = "urxvt" },
properties = { tag = tags[1][devel] } },
{ rule = { class = "geany" },
properties = { tag = tags[1][devel] } },
{ rule = { class = "pcmanfm" },
properties = { tag = tags[1][devel] } }
-- Set Firefox to always map on tags number 2 of screen 1.
-- { rule = { class = "Firefox" },
-- properties = { tag = tags[1][2] } },
}
-- }}}
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })
-- Enable sloppy focus
c:add_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
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
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.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
os.execute("nm-applet &")
os.execute("xrdb -load ~/.Xdefaults &")
os.execute("xfce4-power-manager &")
os.execute("volti &")
os.execute("trayfreq &")
os.execute("chromium-browser --restore-last-session &")
os.execute("pidgin &")
os.execute("conky -c /home/Stockage/Projets/Conky/.conkyrc_eeepc &")Screenshot :
Code :
# Tint2 config file
# Background definitions
# ID 1
rounded = 2
border_width = 1
background_color = #222222 100
border_color = #000000 44
# ID 2
rounded = 1
border_width = 1
background_color = #888888 60
border_color = #FFFFFF 40
# ID 3
rounded = 1
border_width = 1
background_color = #888888 20
border_color = #FFFFFF 20
# ID 4
rounded = 1
border_width = 1
background_color = #888888 20
border_color = #FFFFFF 60
# ID 5
rounded = 2
border_width = 1
background_color = #222222 40
border_color = #FFFFFF 20
# ID 6
rounded = 2
border_width = 1
background_color = #222222 100
border_color = #FFFFFF 70
# ID 7
rounded = 3
border_width = 1
background_color = #222222 50
border_color = #FFFFFF 40
# ID 8
rounded = 1
border_width = 1
background_color = #888888 20
border_color = #888888 20
# ID 9
rounded = 2
border_width = 0
background_color = #222222 40
border_color = #FFFFFF 20
# Launchers
launcher_icon_theme = awOken
launcher_padding = 4 4 5
launcher_background_id = 1
launcher_icon_size = 22
launcher_item_app = /home/kooka/.config/obmenu.desktop
launcher_item_app = /home/kooka/.config/obclient.desktop
# Panel
panel_items = LCTBS
panel_monitor = all
panel_position = top center horizontal
panel_size = 100% 36
panel_margin = 0 0
panel_padding = 6 2 4
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 1
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 2 2 4
taskbar_background_id = 5
taskbar_active_background_id = 6
taskbar_name = 1
taskbar_name_padding = 2 2
taskbar_name_background_id = 9
taskbar_name_active_background_id = 9
taskbar_name_font = Radio Space 10
taskbar_name_font_color = 0
taskbar_name_active_font_color = 100
# Tasks
urgent_nb_of_blink = 20
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 40 40
task_padding = 6 3
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 4
task_iconified_background_id = 0
# Task Icons
task_icon_asb = 100 -100 0
task_active_icon_asb = 100 -100 0
task_urgent_icon_asb = 100 -100 0
task_iconified_icon_asb = 100 -100 0
# Fonts
task_font = Radio Space 10
task_font_color = #222222 100
task_active_font_color = #8F8F8F 100
task_urgent_font_color = #8F8F8F 100
task_iconified_font_color = #8F8F8F 100
font_shadow = 0
# System Tray
systray = 1
systray_padding = 4 4 5
systray_sort = descending
systray_background_id = 0
systray_icon_size = 0
systray_icon_asb = 100 -100 0
# Clock
time1_format = %H:%M
time1_font = Radio Space Bold 11
clock_font_color = #8F8F8F 80
clock_tooltip = %A %d %B
clock_padding = 4 2
clock_background_id = 0
clock_lclick_command = gcalctool
clock_rclick_command = orage
# Tooltips
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.0
tooltip_hide_timeout = 0.0
tooltip_background_id = 1
tooltip_font = Radio Space 10
tooltip_font_color = #8F8F8F 80
# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
# Battery
battery = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = 25
bat1_font = Radio Space 10
bat2_font = Radio Space 8
battery_font_color = #FFFFFF 100
battery_padding = 2 0
battery_background_id = 0
# End of configcould you please add to the first post that one should install xclip
See in the script ... ![]()
# Dependencies: scrot xclip libnotify* notify-send curl imagemagick
Some more tests ... Shadows effects ... small thumbnails this "Polaroid" effect ... coming soon ![]()
Imagemagick is a very strong application, I like it ! ![]()
Update of the first post :
- more parameters.
- more return in the terminal (progress-bar, ...)
- the width is fixed to 640 pixels.
- copy the link into clipboard.
;-)
Just a simple script to take a screenshot, upload it on Imgur and give a Clickable thumbnail to copy on your favorite forum (crunchbanglinux.org, of course !
)
┌─(kooka@EeeGeek)────────────────────────────────────────────────────────────────────────────────────────────────(07-02-11)─┐
└─(/home/kooka)──> % kooka-screenshot ──(21:39:24)─┘
Screenshot in 5 seconds ...
... Screenshot done !
... Thumbnail generated !
Upload of the screenshot ...
######################################################################## 100,0%
Upload of the thumbnail ...
######################################################################## 100,0%
The links :
Screenshot :
http://i.imgur.com/ks3PC.png
Clickable thumbnail :
[url=http://i.imgur.com/QVdIi.png][img]http://i.imgur.com/ks3PC.png[/img][/url]
(link copy into Clipboard, you just have to past it where you want !)The thumbnail look like this :
And the code :
(it's my first attempt to bash script ... sorry for bad codage
)
#!/bin/bash
#
# Kooka-Screenshot
# By Kookaburra ( kookaburra45 0 gmail . com )
# Based on differents scripts view on the Internet
# Thanks to all of the authors :-)
#
# Links :
# http://www.webupd8.org/2010/01/scripts-to-take-screenshot-and-upload.html
# http://sirupsen.com/a-simple-imgur-bash-screenshot-utility/
# http://forum.ubuntu-fr.org/viewtopic.php?id=183632&p=1
#
# Description: Very simple script to take a screenshot and upload it to http://imgur.com/.
# The URL of a "clickable thumbnail" will then be injected into your clipboard.
#
# Dependencies: scrot xclip libnotify* notify-send curl imagemagick
#
# Installation:
# Move the file to a local bin. And put the path of this bin, into your path.
# From then on, you can either activate it via your terminal, or via
# your window manager or similar, so you can bind it to a keycombination.
#
# Version 1.1
# 08/02/2011
#
########################### Parameters ###########################
# Folder for backup :
FOLDER="/path/to/your/screenshots/folder"
# Delay to take screenshot :
DELAY=5
# Dimensions of the thumbnail :
WIDTH=640
# (the height is automatically calculate)
##################################################################
function uploadImage {
curl --progress-bar -F "image=@$1" -F "key=486690f872c678126a2c09a9e196ce1b" http://imgur.com/api/upload.xml | grep -E -o "<original_image>(.)*</original_image>" | grep -E -o "http://i.imgur.com/[^<]*"
}
echo "Screenshot in $DELAI seconds ..."
cd $FOLDER
scrot -d $DELAY '%Y-%m-%d--%s_$wx$h_scrot.png'
cd ~/
scrot shot.png
echo "... Screenshot done !"
convert shot.png -thumbnail ${WIDTH}x -unsharp 0x.5 shot-thumb.png
echo "... Thumbnail generated !"
echo ""
echo "Upload of the screenshot ..."
uploadImage "shot.png" | xclip -selection c
IMAGE1=$(xclip -selection c -o)
rm "shot.png"
echo "Upload of the thumbnail ..."
uploadImage "shot-thumb.png" | xclip -selection c
IMAGE2=$(xclip -selection c -o)
rm "shot-thumb.png"
echo ""
echo "The links :"
echo ""
echo "Screenshot :"
echo "$IMAGE1"
echo ""
echo "Clickable thumbnail :"
echo "[url=$IMAGE1][img]$IMAGE2[/img][/url]" | xclip -selection clipboard
echo "(link copy into Clipboard, you just have to past it where you want !)"
notify-send "Done"I hope it will be useful for you, like for me ![]()
[OT]
@Kookaburra - why do you use both AdBlock and AdThwart?
[/OT]
My mistake ... Only one of us is active, the other is disactived ... I make some tests for know which is the best ![]()
I would suggest you have a look at jdownloader for downloading from file sharing servers without wait times etc - which would negate the need for a number of your extensions.
Thanks a lot for that, I install it now ! ![]()
You seem to have a lot of chromium plugins/customizations running there.
Any chance of a run through?
Yes, of course !
I have install a theme call "Greyscale" (https://tools.google.com/chrome/intl/fr
scale.html) ; some tabs "pinned" (gmail + G-reader + G-news + Seesmic) and some extensions :
AdBlock - Version : 2.2.7
AdBlock pour Chrome ! Bloque les publicités sur tout le web. Noté 4,5 sur 5 par nos utilisateurs !
AdThwart - Version : 1.0.12
Suppression des publicités utilisant le moteur de Firefox AdBlock Plus. Dites adieu publicités et naviguez en paix!
android2cloud - Version : 1.0.1.1
A way to push content from your Android phone to your Chrome web browser.
Better Gmail (Unofficial) - Version : 2.1.53
Options: Removes:ads,chat,invites,footer|Adds:favicon unread #,attachment icons,row highlight,mailto with gmail,muzzle.
DepositFiles Download Helper - Version : 1.1
No More Countdowns - Automatic Downloads.
Extension Abonnement RSS (par Google) - Version : 2.1.2
Ajoute un bouton à votre barre d'outils qui vous permet de vous abonner en un seul clic.
FileFactory DownloadHelper - Version : 0.2.3
No More Countdowns - Automatic Downloads.
goo.gl URL Shortener - Version : 0.5.2
Shorten url with goo.gl, the Google URL shortener.
Google Mail Checker Plus - Version : 1.2.0.4
Displays the number of unread messages in your Gmail and Google Apps inbox. Preview mail, read, delete, archive and mark as spam!
Google Reader Notifier (by Google) - Version : 1.2
Displays the number of unread items in your Google Reader account. Clicking can show a preview popup or open your Reader account.
LinkPush - Version : 2.0
Push links from Chrome to your Android phone.
MegaUpload DownloadHelper - Version : 1.2
No More Countdowns - Automatic Downloads.
Neat Bookmarks - Version : 0.7.5
A neat bookmarks tree popup.
RapidShare DownloadHelper - Version : 1.1.1
No More Countdowns - Automatic Downloads.
Recent History - Version : 1.8.2
This extension displays your recent history and recently closed tabs in a one click popup menu
Speed Dial - Version : 2.0
Speed Dial for Chrome - replace Chrome new tab with your predefined visual bookmarks.
Super Google Reader - Version : 1.2
Enables full content feeds for Google Reader. Provides readable content or iframing of feed entries.
Xmarks Bookmark and Password Sync - Version : 0.9.0
Backup and sync your bookmarks, passwords and open tabs across computers and browsers. Xmarks is also available for Firefox, Safari and IEAll can be found in "chrome extentions gallery" ![]()
Posts found [ 1 to 25 of 233 ]
CrunchBang Linux Forums » Posts by Kookaburra
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.