[PATCH] add awful.prompt.run() 'selectall'' argument
http://git.mercenariesguild.net/?p=awesome.git;a=commit;h=ee0d82afb15f231b08bf8dc1a62a5e78988560e9 branch prompt awful.prompt: new arg 'selectall' in add() If set along with 'text' (prefilled content) it will position the cursor at the beginning of the line and and on text input (and not control keys, arrows, etc.) will overwrite the prefilled content with the new input. JD, would you like to merge this? Allows easy deletion of prefilled text emulating editbox 'selectall' on focus. cheers, koniu -- To unsubscribe, send mail to [EMAIL PROTECTED]
[PATCH] awsetbg: Add montage(1) support
* Using -m X (X standing for screen number) the give background image is converted to a big image in the cache directory/montage.png. Limitations: + -m should be the last argument before the image name + for better results screens should have the same sizes and the background image should fit one screen size. Signed-off-by: Sébastien Gross [EMAIL PROTECTED] --- utils/awsetbg | 24 ++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/utils/awsetbg b/utils/awsetbg index 1dba709..c59b068 100755 --- a/utils/awsetbg +++ b/utils/awsetbg @@ -66,8 +66,8 @@ command=`basename \$0\` # Functions display_usage() { cat EOF -Usage: $command [-u/-U [wallpapersetter]] [-fFcCtTaA] /path/to/wallpaper - $command [-u/-U [wallpapersetter]] [-fFcCtTaA] -r/-R /path/to/wallpaperdirectory +Usage: $command [-u/-U [wallpapersetter]] [-fFcCtTaA] [-m #] /path/to/wallpaper + $command [-u/-U [wallpapersetter]] [-fFcCtTaA] [-m #] -r/-R /path/to/wallpaperdirectory $command [-lhip] Use \`\`$command -h'' for a complete help message. @@ -97,6 +97,9 @@ Options: -i Information about selected wallpaper command. +-m # Use montage to create a big image (image should + fit screen size). Requires montage(1). + # is the number of screen (columns in montage) Files: \$XDG_CACHE_HOME/awesome/lastwallpaper In this file the wallpaper you set @@ -210,6 +213,23 @@ while [ $# -gt 0 ]; do -T) option='$tile' remember=false shift ;; + -m) + montage=`which montage` + if test ! -z $montage; then + shift + cols=$1; shift + fns= + for i in `seq $cols`; do + fns=$fns $1; + done; + shift + $montage $fns -geometry +0+0 -tile ${cols}x $CONFIG_DIR/montage.png + wallpaper=$CONFIG_DIR/montage.png + else + shift + echo montage not found. Falling back to single image + fi + ;; -r) option2=$option option=random wallpaper=$2 # in this case it's a dir -- 1.5.6.5 -- To unsubscribe, send mail to [EMAIL PROTECTED]
Re: [PATCH] awful.prompt: add trail space in prompt_text_with_cursor()
At 1227099883 time_t, koniu wrote: Pushed. -- Julien Danjou // ᐰ [EMAIL PROTECTED] http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
Re: [PATCH] awsetbg: Add montage(1) support
At 1227100598 time_t, Julien Danjou wrote: Merged in next. s/next/master/. -- Julien Danjou // ᐰ [EMAIL PROTECTED] http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
Re: [PATCH] add awful.prompt.run() 'selectall'' argument
At 1227092752 time_t, koniu wrote: JD, would you like to merge this? Allows easy deletion of prefilled text emulating editbox 'selectall' on focus. Yeah, merged. -- Julien Danjou // ᐰ [EMAIL PROTECTED] http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
[PATCH] awful.prompt: add trail space in prompt_text_with_cursor()
Hi, http://git.mercenariesguild.net/?p=awesome.git;a=commit;h=4c031ba398db963a196e03d2d5d22fd7e819a215 branch prompt awful.prompt: add trail space in prompt_text_with_cursor() Adds a trailing space after text if cursor position text length to prevent width of the widget changing particularly useful when using 'text' and 'selectall' to do eg. in-place renaming. Sample textbox content (# space, _ cursor). Before: textbox before prompt: #term# selectall prompt textbox : #_erm - shorter than other cases after pressing end : #term_ After: textbox before prompt: #term# selectall prompt textbox : #_erm# after pressing end : #term_ Julien, will you accept this one - makes shifty very very very shiny. :) thanks koniu -- To unsubscribe, send mail to [EMAIL PROTECTED]
Re: [PATCH] awsetbg: Add montage(1) support
At 1227097259 time_t, Sébastien Gross wrote: Merged in next. Thanks Seb. Cheers, -- Julien Danjou // ᐰ [EMAIL PROTECTED] http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
Re: Fair layout
At 1227105472 time_t, Norbert Zeh wrote: I noticed that the fair layout had the same deficiency as the slave columns in tiling layout: the last row/column may receive many fewer clients than all the other columns. Attached is a patch that fixes this. Pushed. Thanks Norbert, Cheers, -- Julien Danjou // ᐰ [EMAIL PROTECTED] http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD signature.asc Description: Digital signature
naughty.notify does not honor argument screen
Hi, i just played around with naughty.notify and i was only able to get the parameter screen in function notify working after some patches. If this is not by intention i've included a small patch - mainly get_offset needs to respect the screen. I am new to lua, so maybe there are better solutions. Keep up the great work - i'm really happy with awesome awesome3 on my desk! Regards Matthias P.S. Resending this to devel-list because someone told me this is the right place ... --- naughty.lua.git 2008-11-19 11:52:32.0 + +++ naughty.lua 2008-11-19 11:53:21.0 + @@ -87,8 +87,8 @@ notifications = { -- @param height Popup height -- @return Absolute position in {x, y} dictionary -local function get_offset(idx, position, height) -local ws = capi.screen[config.screen].workarea +local function get_offset(screen, idx, position, height) +local ws = capi.screen[screen].workarea local v = {} -- calculate x @@ -101,7 +101,9 @@ local function get_offset(idx, position, -- calculate existing popups' height local existing = 0 for i = 1, idx-1, 1 do - existing = existing + notifications[position][i].height + config.spacing + config.border_width*2 + if notifications[position][i].box.screen == screen then + existing = existing + notifications[position][i].height + config.spacing + config.border_width*2 + end end -- calculate y @@ -114,8 +116,16 @@ local function get_offset(idx, position, -- 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[position][1]) -v = get_offset(idx, position, height) +-- Check only for popups on my screen +local found=0; +for i=1,idx-1,1 do +if notifications[position][i].box.screen==screen then +found=i; +break +end +end +if found0 then destroy(notifications[position][found]) end +v = get_offset(screen, idx, position, height) end return v @@ -126,7 +136,7 @@ end local function arrange() for p,pos in pairs(notifications) do for i,notification in pairs(notifications[p]) do -local offset = get_offset(i, p, notification.height) +local offset = get_offset(notification.box.screen, i, p, notification.height) notification.box:geometry({ x = offset.x, y = offset.y, width = config.width, height = notification.height }) notification.idx = i end @@ -225,7 +235,7 @@ function notify(args) notification.height = iconbox.image.height else notification.height = lines * config.height end -local offset = get_offset(notification.idx, notification.position, notification.height) +local offset = get_offset(screen, notification.idx, notification.position, notification.height) notification.box:geometry({ width = config.width, height = notification.height, x = offset.x,