aboutsummaryrefslogtreecommitdiff
path: root/util
AgeCommit message (Collapse)AuthorFilesLines
2012-04-07Factor out "session." from resource namesPavel Labath1-29/+29
this reduces typing and it makes more sense in lua, since there the resources are implemented as hierarchical tables and the topmost table has to be handled a bit specially.
2012-04-07Simplify FbTk::Resource template classPavel Labath1-21/+21
by outsourcing the conversion from string/lua to the specific type (and back) to a separate class. This change touches a lot of files because the interface of FbTk::Resource changed slightly. However, the changes are minor.
2012-04-07Integrate the lua build system into oursPavel Labath1-1/+1
2012-01-04Check .empty() instead of .size() == 0Ryan Pavlik1-3/+3
Found with cppcheck.
2012-01-04Exceptions should be caught by reference.Ryan Pavlik2-2/+2
Found using cppcheck.
2011-10-31util/Makefile.am,fluxbox-generate_menu.in: use EXEEXTRyan Pavlik2-7/+9
Needed to allow mingw-cross-env cross build
2011-10-31fluxbox-update_configs.cc: Fix on windows - no kill or sigusr2Ryan Pavlik1-2/+2
2011-10-31FbRun.cc: Fix on windows where there is no forkRyan Pavlik1-0/+25
2011-10-21cosmeticsMathias Gumz1-6/+9
2011-10-21bugfix: fbsetroot needs to use 24bit visuals as wellMathias Gumz1-4/+9
12f44680dfefde602f3387c6d385f4c5e68990e4 introduced ARGB visuals. if fluxbox creates 32bit visuals for the container window or the root window: does not work.
2011-05-08fluxbox-remote now properly returns exit statusnacitar sevaht1-5/+20
The previous check relied upon the (undocumented) return value of XChangeProperty to determine the exit status; at least, on my gentoo system, the function seems to return 1 even when it fails to change the property due to contrived, and invalid, parameters. However, setting an error handler allows proper detection of this case. So, now the return status properly indicates whether or not the property was changed (but not whether fluxbox liked the command!).
2011-05-04Fix "comparison between signed and unsigned" warningPavel Labath1-2/+1
2011-04-18Fix VPATH buildsPavel Labath1-1/+1
2011-04-11Changed fbsetbg's tips to the new behaviour.skizzhg1-3/+3
2011-03-29make XMESSAGE a variable and use it consistentlyslakmagik1-6/+10
Previously, gxmessage was getting substituted in one place and not another.
2011-03-29avoid trailing spaces between app and closing }slakmagik1-3/+15
Add a few lines of code to prevent a few spaces in some menu output. '{$app $options}' would expand to '{app }' if no options were set. Also, while scattered throughout, in this particular spot the unnecessary braces around some of the variables (and not around some others) and inside flux's braces could be very visually confusing and lead to editing errors, so removed those.
2011-03-29separate functions and main codeslakmagik1-44/+46
Transpose one function from main to the rest of the functions and one block from the top of the script to the top of main. Add an 'End functions' comment.
2011-03-29add the configuration file equivalent of '-in'slakmagik1-0/+3
2011-03-29silence cmpslakmagik1-1/+1
cmp's '-s' flag is POSIX - if it's as portable as that's supposed to mean, that might be used instead.
2011-02-21fbsetbg: improved aspect-ratio-filling for feh (thanks Jeremiah Mahler ↵Jeremiah Mahler1-1/+1
<jmmahler at gmail com> Closes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583704
2010-09-18changed the way we create the '~/.fluxbox' directory to avoid race conditionsMathias Gumz1-1/+1
before bringing up the first instance of Fluxbox we prepare the directory and the files it needs. if the config version of exiting files is lower than what we expect, we upgrade the config files. after that we bring up Fluxbox. the old way was problematic because setupConfigFiles() calls 'fluxbox-update_configs' which does its job in the background while fluxbox continues to boot. 'fluxbox-update_configs' sends a USR2 signal to the booting fluxbox (it might even be finished, no one knows) which triggers 'load_rc()' which triggered 'setupConfigFiles()' again which might trigger 'fluxbox-update_configs' again (on my machine 'fluxbox-update_configs' was called 3 times and left a pretty crippled 'keys' file when it was done). bootstrapping before bringing up fluxbox resolves the issue. as a bonus: no need to send USR2 to fluxbox to reload the config file because fluxbox has not even tried to read it yet.
2010-09-18cosmeticMathias Gumz1-1/+1
2010-09-11updated config version to '13' and adjusted 'fluxbox-update_configs' accordinglyMathias Gumz1-300/+472
our users should migrate seamlessly to our new windows-cycling behaviour without losing their current way of doing things. so, 'fluxbox-update_configs' tries its best to add '(workspace=[current])' wherever it looks like a valid place for it. such changed lines are marked by '!! FBCV13' at the end and can be easily spotted in case the updater got it wrong. addtional changes: * added '-check' to 'fluxbox-update_configs' to check the version number in '~/.fluxbox/init' vs. the version number of 'fluxbox-update_configs' * moved the update-code for each version into its own function, easier housekeeping
2010-09-08introduced FbTk::BidiStringMathias Gumz1-6/+8
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
2010-09-04fixed the default 'OnTitlebar Mouse1' actionsMathias Gumz1-1/+1
2010-08-20implemented 'ActivateTab' action to (re)allow activation of tabs via mouseMathias Gumz1-0/+16
2010-05-05deploy new key-bindings to old keys-files via fluxbox-update_configsMathias Gumz1-0/+17
2010-02-28bugfix: do not create the temporary menufile 'somewhere' in the filesystem ↵Mathias Gumz1-2/+2
but next to the final one
2009-10-02just use the FbTk APIMathias Gumz1-4/+3
2009-10-02bugfix: stop wiping out ~/.fluxbox/keysMathias Gumz1-6/+0
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz2-2/+2
2009-06-28add a few items to fbgmMark Tiefenbruck1-2/+4
2009-05-28Cleaned up 'fbsetbg -h' outputJim Ramsay1-5/+9
Reordered the "Options" section and made it more clear that for setting solid, gradient, or pattern textures, one should also refer to fbsetroot(1).
2009-05-26Don't complain on '-z' if there's no lastwallpaperJim Ramsay1-0/+4
This hides the odd cornercase of users with no lastwallpaper file and no background set in their style or overlay. Adapted from the patch at http://sourceforge.net/tracker/?func=detail&aid=2389567&group_id=35398&atid=413962
2009-05-25minor cosmeticsMathias Gumz3-9/+9
2009-03-04compilefixMathias Gumz1-1/+1
2009-03-04dont try to read file when they are actually a directoryMathias Gumz1-9/+26
2008-10-04recognize --option in addition to -option for most thingsMark Tiefenbruck2-22/+22
2008-10-04add -print option to fbrun to return result to stdout instead of executing itMark Tiefenbruck3-1/+14
2008-09-10fix updating of keys file for scrolling on toolbarMark Tiefenbruck1-1/+1
2008-08-26use old focus/raise behavior for default alt+left/right mouse bindingsMark Tiefenbruck1-7/+7
2008-08-19update keys file for changes to NextWindow syntaxMark Tiefenbruck1-0/+53
2008-08-06make wallpapers do The Right Thing (tm)Mark Tiefenbruck2-31/+32
2008-08-06use the same options in Slit and Toolbar placement menusMark Tiefenbruck1-0/+22
2008-07-07add shebang to default startup fileMark Tiefenbruck1-0/+2
2008-07-02add a few tops to fbgmMark Tiefenbruck1-1/+1
2008-06-18don't use full path to fluxbox in startfluxboxMark Tiefenbruck1-2/+2
2008-06-11updated the copyright where it's easily visible: `fluxbox -v` and COPYRIGHT.skiidoo1-1/+1
nls/translators: typo, plus Translation.m.desc never existed. Never. more consistent keys file comments in fluxbox-update_config.
2008-06-01fix out of source buildingMark Tiefenbruck1-1/+1
2008-05-02some additions/corrections for fbgmskiidoo1-30/+35