You are not logged in.
really nice doug! what font are you using in terminal? could you share your pentadactyl configs?
Offline
Thanks! Font is inconsolata and the pentadactyl config is now pushed to my git. It was taken from w0ng on this forum. It's dang good config in my opinion.
I was having CPU spikes with both luakit and DWB. So far Firefox + pentadactly has filled the void quite nicely. I've been very impressed thus far.
Last edited by doug piston (2012-07-24 01:43:26)
Offline
i always used vimperator....but i'm noticing that pentadactyl is a bit faster
EDIT: I don't have tabs looking like yours....they still have the default style...why?
EDIT2: I did it, but i still have a couple of issues:
1) font in status bar is slighty more blurred than font of menu and tabs:
2) when i close a tab i get this theming issue:
Here there is my colorscheme:
"Clear previous colorscheme
hi clear
"StatusLine settings
hi StatusLineNormal -a color: #ecedee !important; background-color: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi StatusLineBroken -a color: #2CA7D0 !important; background-color: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi StatusLineSecure -a color: #FF00EC !important; background-color: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi StatusLineExtended -a color: #2CA7D0 !important; background-color: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
"CmdLine settings excluding Gradient
hi CmdLine -a color: #ecedee !important; background: #070707 !important; font-family: Termsy !importantn; font-size: 8p !importantt; font-weight: normal; !important; padding: 3px !important;
hi CmdCmdLine -a color: #ecedee !important; background: #070707 !important; font-family: Termsy !importantn; font-size: 8p !importantt; font-weight: normal; !important;
hi Normal -a color: #ecedee !important; background: #070707 !important; font-family: Termsy !importantn; font-size: 8p !importantt; font-weight: normal; !important;
hi CompDesc -a color: inherit !important; width: 50% !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi CompGroup -a color: inherit !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi CompIcon -a display: none;
hi CompItem -a color: inherit; background: #070707; font-family: Termsyn !importan; font-size: 8pt !importan; font-weight: normal !important;
hi CompItem[selected] -a color: #8292b2 !important; background: #070707; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi CompLess -a text-align: center; height: 0; line-height: .5ex; padding-top: 1ex;
hi CompMore -a text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
hi CompMsg -a font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important; font-style: italic !important;
hi CompResult -a width: 45%; overflow: hidden; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi CompTitle -a color: #8292b2 !important; background: #070707 !important; font-family: Termsyn; font-size: 8pt; font-weight: normal; !important;
hi CompTitle>* -a padding: 0 .5ex;
hi CompTitleSep -a background: #8292b2 !important; background: #070707 !important;
hi StatusModeMsg color: #070707; background: #F0E68C;
"Options for Filter, uncomment the one you want and make sure others are commented
""Switches from maroon to light blue when selected
"hi Filter -a font-weight: bold; color: #00bfff !important;
"hi 'CompItem[selected] Filter' -a color: #00468f !important;
"hi 'CompItem[selected] Object' -a color: #00468f !important;
" 'CompItem[selected] Object' is needed because of the orange color used to
""" distinguish it from other JavaScript options when using :js
""No switch, stays at olive
"hi Filter -a font-weight: bold; color: #808000 !important;
"hi 'CompItem[selected] Filter' -a color: #808000 !important;
""Same as HintActive color
"hi Filter -a font-weight: bold; color: #4682b4 !important;
"hi 'CompItem[selected] Filter' -a color: #4682b4 !important;
""Stays at saddle brown
hi Filter -a font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important; color: #ecedee !important;
hi 'CompItem[selected] Filter' -a font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important; color: #ecedee !important;
hi 'CompItem[selected] Function' -a font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important; color: #ecedee !important;
"Used with ]f and [f
hi FrameIndicator -a background-color: #070707; opacity: 0.5; z-index: 999; position: fixed; top: 0; bottom: 0; left: 0; right: 0;
"Hint section
hi Hint font-family: Termsyn; font-size: 8px !important; font-weight: normal !important; color: #070707 !important; background-color: #afafaf !important; border: solid 1px #000000 !important; position: absolute !important;
hi Hint::after content: attr(number);
hi HintActive background: #afafaf !important; color: #070707 !important;
hi HintElem background-color: #afafaf !important;
hi HintImage opacity: .9 !important;
"Other important stuff
hi Bell -a border: 0 none; background-color: #070707;
"I don't bother with Disabled and Enabled since they're both satisfactory to me
hi ErrorMsg -a color: #b28284 !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight !important: normal;
hi Function -a color: #8dbd8a !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight !important: normal;
hi Indicator -a color: #8b0000 !important; width: 4px !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi InfoMsg -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi LineNr -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Message -a color: #ffffff !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important; white-space: normal; min-width: 100%; padding-left: 2em; text-indent: -2em; display: block;
"CmdLine when Not in Use
hi ModeMsg -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi MoreMsg -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi NonText -a color: #8292b2 !important; min-height: 16px; padding-left: 2px; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Object -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Question -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Search -a font-size: inherit !important; padding: 0; color: inherit !important; background-color: yellow; padding: 0; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Tag -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi Title -a color: #ecedee !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi URL -a text-decoration: none; color: #8292b2 !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi URL:hover -a text-decoration: underline; cursor: pointer; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
hi WarningMsg -a color: #bd8a8c !important; background: #070707 !important; font-family: Termsyn !important; font-size: 8pt !important; font-weight: normal !important;
"style -name statusbar chrome://* <<EOM
"#status-bar statusbarpanel { padding: 0 1px !important; }
"statusbarpanel > * { margin: 0 !important; padding: 0 2px 0 0 !important; }
"EOM
" vim: ft=vim:
" A minimal userChrome style
style -name=minimal chrome://* <<EOM
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.tab-close-button {
display: none !important;
}
.tabs-newtab-button {
display: none !important;
}
#appmenu-toolbar-button > .toolbarbutton-menu-dropmarker {
display: none !important;
}
#addon-bar {
max-height: 16px !important;
min-height: 16px !important;
}
TabsToolbar toolbarbutton {
-moz-appearance: none !important;
color: #bfbfbf !important;
background: black !important;
border: none !important;
max-height: 16px !important;
min-height: 0 !important;
margin: 0 !important;
}
.tabbrowser-tab {
-moz-appearance: none !important;
border-radius: 0px !important;
font-family: Termsyn !important;
font-size: 8pt !important;
color: #bfbfbf !important;
background: black !important;
border: none !important;
max-height: 16px !important;
min-height: 0 !important;
margin: 0 !important;
max-width: 100% !important;
min-width: 100% !important;
}
.tabbrowser-tab[selected] {
-moz-appearance: none !important;
background: #202020 !important;
color: white !important;
}
.tabbrowser-tab:hover {
-moz-appearance: none !important;
background: #202020 !important;
color: white !important;
}
personal-bookmarks {
-moz-appearance: none !important;
border: none !important;
min-height: 0 !important;
margin: 0 !important;
-moz-border-radius: 0 !important;
}
EOM
Any ideas?
FINAL EDIT: i solved, but I still have problems with statusbar font...
Last edited by TheImmortalPhoenix (2012-07-24 13:43:35)
Offline
What did you do to solve the tabs? I am very new to pentadactyl maybe 2-3 weeks into use and I had the same issue. I tried another config which was w0ng's and the problem went away. I've been so pleased with how it works that I haven't gone digging through the config since. Since omploader is blocked at work for me I'll take a look tonight about the status bar fonts.
Edit:
Thanks CommunistWitchDoctor for the borders around the wiboxes. It's a nice touch.
Last edited by doug piston (2012-07-24 14:17:06)
Offline
I used w0ng's files too, i edited them to increase width of tabs and to remove rounded tabs...here there is my final user.css (i put it and the end of my colorscheme)
" minimalistic tabs """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
style -name minitabs chrome://* <<EOM
.tab-close-button {
display: none !important;
}
.tabs-newtab-button {
display: none !important;
}
.tabbrowser-tab .tab-icon-image
{visibility: hidden !important;}
#appmenu-toolbar-button > .toolbarbutton-menu-dropmarker {
display: none !important;
}
#addon-bar {
max-height: 16px !important;
min-height: 16px !important;
}
TabsToolbar toolbarbutton {
-moz-appearance: none !important;
color: #ecedee !important;
background: black !important;
border: none !important;
max-height: 16px !important;
min-height: 0 !important;
margin: 0 !important;
}
TabsToolbar toolbarbutton {
display: none !important;
}
.tabbrowser-tabs {
background: #070707 !important;
}
.tabbrowser-tab {
-moz-appearance: none !important;
border-radius: 0px !important;
background: #070707 !important;
border: none !important;
color: #ecedee !important;
font-family: Termsyn;
font-size: 8pt !important;
height: 16px !important;
margin: 0 !important;
min-height: 0 !important;
}
.tabbrowser-tab:not([pinned]) {
max-width: 250px !important;
min-width: 200px !important;
}
.tabbrowser-tab:not([fadein]) {
max-width: 1px !important;
min-width: 1px !important;
}
.tabbrowser-tab:hover {
background: #070707 !important;
color: #6b8ba3 !important;
}
.tabbrowser-tab[selected] {
-moz-appearance: none !important;
background: #070707 !important;
color: #6b8ba3 !important;
}
personal-bookmarks {
-moz-appearance: none !important;
border: none !important;
min-height: 0 !important;
margin: 0 !important;
-moz-border-radius: 0 !important;
}
EOM
Offline
Hi men, i'd like you to help me to create a personal widget, or using an existing one to do the same thing....pratically what i'd like to do is to show in wibox TOR ON if tor daemon is running and TOR OFF if it is not running .... any ideas?
Offline
Well I seem to be confused on my battery widget here. I just did a fresh install on a new machine, moved over my awesome config and everything is coming together except my battery widget for some reason. Have a look please and inform me of mis-step.. The bar widget never fills.
-- Initialize BATT widget
batwidget = awful.widget.progressbar()
batwidget:set_width(50)
batwidget:set_height(6)
batwidget:set_vertical(false)
batwidget:set_background_color("#434343")
batwidget:set_border_color(nil)
batwidget:set_gradient_colors({ beautiful.fg_normal, beautiful.fg_normal, beautiful.fg_normal, beautiful.bar })
awful.widget.layout.margins[batwidget.widget] = { top = 6 }
vicious.register(batwidget, vicious.widgets.bat, "$2", 120, "BAT0")
┌─[jarvis][watson][~]
└──╼ acpi
Battery 0: Charging, 89%, 00:14:59 until charged
EDIT: Fixed, new battery is 'BAT1'. Oops.
Last edited by doug piston (2012-07-28 00:13:51)
Offline
Hi men, i'd like you to help me to create a personal widget, or using an existing one to do the same thing....pratically what i'd like to do is to show in wibox TOR ON if tor daemon is running and TOR OFF if it is not running .... any ideas?
It has been done before.
http://awesome.naquadah.org/wiki/Blingbling
I checked out the github page (https://github.com/cedlemo/blingbling) for that widget set and I think this section of the network widget is responsible for the tor check.
local tor_ext_ip
--we check that the tor address have not been checked or that the elapsed time from the last request is not < 300 sec. whereas whatsmyip block the request
if (data[n_graph].tor_ext_ip_timer == nil or data[n_graph].tor_ext_ip_timer + 300 < os.time()) and data[n_graph].ext_ip ~= "n/a" then
if awful.util.pread("pgrep tor") ~= "" then
tor_ext_ip = awful.util.pread("curl --silent -S -x socks4a://localhost:9050 http://automation.whatismyip.com/n09230945.asp")
else
tor_ext_ip = "No tor"
end
data[n_graph].tor_ext_ip=tor_ext_ip
data[n_graph].tor_ext_ip_timer=os.time()
--if local ip is ok but not the external ip, then we can't get external tor ip
elseif data[n_graph].ext_ip == "n/a" then
tor_ext_ip="n/a"
--we get the last value of tor_ext_ip of the last recent check.
else
tor_ext_ip= data[n_graph].tor_ext_ip
end
local separator ="\n|\n"
text="Local Ip:\t"..ip_addr..separator.."Gateway:\t\t".. gateway..separator .."External Ip:\t"..data[n_graph].ext_ip .. separator .. "Tor External Ip:\t" .. tor_ext_ip
else
text="Wire is not connected on " .. interface
end
else
text ="Interface : "..interface .. " is down."
end
data[n_graph].ippopup=naughty.notify({
title = interface .. " informations:",
text = text,
timeout= 0,
hover_timeout = 0.5
})
Offline
I tried it but that widget show me a popup with wlan0 informations ... i'd like to have only tor informations on WIBOX, i don't want popups...
EDIT: I've added 3 buttons in wibox to close, maximize and minimize windows...usefuls when i don't want to use keyboard and i don't want to activate titlebars
Last edited by TheImmortalPhoenix (2012-07-27 14:09:10)
Offline
It has been done before.
http://awesome.naquadah.org/w/images/Bl … mple_4.png
How do you enable that shadow in the panel? I'm rather curious as I'm not being able to do that. Some kind of compositing tool?
EDIT: found it; compton.
Last edited by josemota (2012-07-27 15:23:08)
Offline
I tried it but that widget show me a popup with wlan0 informations ... i'd like to have only tor informations on WIBOX, i don't want popups...
EDIT: I've added 3 buttons in wibox to close, maximize and minimize windows...usefuls when i don't want to use keyboard and i don't want to activate titlebars
The code could still be useful for your widget though.
Also I might have to steal your wibox window operations thing.
Offline
The code could still be useful for your widget though.
Also I might have to steal your wibox window operations thing.
I found blingbling too much complicated for me...i thought to do a simpler thing....
here there is the code about windows operation:
-- close button
close = widget ({type = "imagebox" })
close.image = image(beautiful.widget_close)
close:buttons(awful.util.table.join(
awful.button({ }, 1, function () client.focus:kill() end)
))
-- maximize button
max = widget ({type = "imagebox" })
max.image = image(beautiful.widget_max)
max:buttons(awful.util.table.join(
awful.button({ }, 1, function () client.focus.maximized_horizontal = not client.focus.maximized_horizontal client.focus.maximized_vertical = not client.focus.maximized_vertical end)
))
-- minimize button
minimize = widget ({type = "imagebox" })
minimize.image = image(beautiful.widget_min)
minimize:buttons(awful.util.table.join(
awful.button({ }, 1, function () client.focus.minimized = not client.focus.minimized end)
))
obviously you have to set icons in theme.lua
Offline
Ended up doing something different.
Offline
Hello, i am quite new to awesome, playing a little bit with all the options. Then one problem occured: When activating the awesome-titlebar + setting a border-option, it looks like this:
rc.lua looks like this:
-- Add a titlebar
awful.titlebar.add(c, { modkey = modkey, border_color = '#343639', border_width = 1 })
any ideas? i did not change anything on awesome.titlebar-file
Last edited by tumas (2012-07-29 10:17:49)
Offline
hey girls and guys!
after a lot of coding and a pause:
dirty:
http://ompldr.org/vZXg4ag
dropboxwidget-notification:
http://ompldr.org/vZXg4aw
unread-subject-notification gmailwidget(only if there are unread mails):
http://ompldr.org/vZXg4bA
googlecalendar-notification/widget:
http://ompldr.org/vZXg5MQ
wicd-widget:
http://ompldr.org/vZXg5OQ
with the widgets and other fixes i added it's the perfect desktop between comfort and minimalism: googlecalendar-quick-event-prompt for creating events (provided by gcalcli), dmenu on top in wibox-size, direct-window-selecting with hjkl, a scratchpad, revelation-exposé, hjkl-keybindings in menu, the widgets with its notifications(widget-notifications on mousehover)
thanks your awesome-knowledge
Last edited by flexo3001 (2012-07-30 16:05:09)
Fight war not wars, destroy power not people!
Offline
really nice flexo, i'd like your dropbox widgets if you don't mind
Offline
@Flexo Can you share your rc.lua please? Looks awesome
Offline
And I'm interested on the wicd widget please share
Offline
I finally created my TOR widget!! Quite simple...but i have an issue...
Does someone of you know how to patch naughty.lua in order to set the exact position of notification on desktop? Now the only position i can set are "top_right", "top_left" etc... i'd like to set a precise {x,y} position....
I'd like to show my tor status notification under my tor widget:
Last edited by TheImmortalPhoenix (2012-07-31 15:08:15)
Offline
@TheImmortalPhoenix: its very simple: you have to omit the position option. then the naughty-notification is automaticly under widget (see in my config; on mouse hover pops an notification up with the info (its not neccessary bound to mouse hover actions)).
@micoka7:on my machine the wicd-widget isn't 100% working. its a little bit poor written; but i tried to cover all possibilities. so the widget have "malfunctions" when i switch off (hardware button) wifi-card because of not autoconnecting/scanning network. for tips to get a clearly functioning wifi-wicd-widget i'm very happy.
my configs available at DB: https://www.dropbox.com/sh/6ilb12yc98j9yht/WVWgrqtQTm/
the code is maybe poor written and i'm very happy for suggestions
peace out
Last edited by flexo3001 (2012-07-31 17:15:11)
Fight war not wars, destroy power not people!
Offline
@ flexo: i tried, but notifications are aligned to top_right corner and, as i can see in your screens, it's the same for you...
Last edited by TheImmortalPhoenix (2012-07-31 17:49:12)
Offline
oh sorry, my fault.to be honest i only wrote the code and and dont examine the look of the naughties,just the functions...
Fight war not wars, destroy power not people!
Offline
delete
Last edited by SolomonKull (2012-07-31 21:33:54)
Offline
Does someone of you know how to patch naughty.lua in order to set the exact position of notification on desktop? Now the only position i can set are "top_right", "top_left" etc... i'd like to set a precise {x,y} position....
Written quickly and entirely untested since I don't actually use naughty at all myself, but you can try replacing the get_offset function in naughty.lua with this and passing a table with x and y as the position when you call naughty.notify:
local function get_offset(screen, position, idx, width, height)
local ws = capi.screen[screen].workarea
local v = {}
local idx = idx or #notifications[screen][position] + 1
local width = width or notifications[screen][position][idx].width
if type(position) == "table" then
v.x = position.x
local existing = 0
for i = 1, idx-1, 1 do
existing = existing + notifications[screen][position][i].height + config.spacing
end
if position.y >= (wx.height / 2) then
v.y = position.y + config.padding + existing
else
v.y = position.y - (config.padding + height + existing)
end
-- if positioned outside workarea, destroy oldest popup and recalculate
if v.y + height > ws.y + ws.height or v.y < ws.y then
idx = idx - 1
destroy(notifications[screen][position][1])
v = get_offset(screen, position, idx, width, height)
end
else
-- calculate x
if position:match("left") then
v.x = ws.x + config.padding
else
v.x = ws.x + ws.width - (width + config.padding)
end
-- calculate existing popups' height
local existing = 0
for i = 1, idx-1, 1 do
existing = existing + notifications[screen][position][i].height + config.spacing
end
-- calculate y
if position:match("top") then
v.y = ws.y + config.padding + existing
else
v.y = ws.y + ws.height - (config.padding + height + existing)
end
-- if positioned outside workarea, destroy oldest popup and recalculate
if v.y + height > ws.y + ws.height or v.y < ws.y then
idx = idx - 1
destroy(notifications[screen][position][1])
v = get_offset(screen, position, idx, width, height)
end
end
if not v.idx then v.idx = idx end
return v
end
Offline