aboutsummaryrefslogtreecommitdiff
path: root/util
AgeCommit message (Collapse)AuthorFilesLines
2014-02-17update of copyright infoMathias Gumz2-2/+2
2013-06-29fix detection of $HOME folderMathias Gumz1-2/+1
usually $HOME is set when fluxbox runs. in some rare scenarios (eg., fuzzying binaries to detect bugs) one could launch fluxbox by using 'env -i' and thus eliminating $HOME from the environment. to prevent crashes fluxbox uses now 'getpwuid()' when $HOME is not set to detect the home folder.
2013-06-18Returning EXIT_FAILURE on exit in fluxbox-remote.Paul Tagliamonte1-0/+1
2013-02-14Updates copyright date information in some binariesMathias Gumz1-1/+1
2013-01-31Adds 'ClientPatternTest' commandMathias Gumz1-17/+44
ClientPatterns might be tricky to get right. Instead of fiddling around in either the keys-file or the apps-file and restarting fluxbox to see if the changes had any effect / matched the right windows, 'ClientPatternTest' and the fluxbox-remote should make this easier: $> fluxbox-remote "clientpatterntest (title=.*vim*)" This causes fluxbox to store the list of matched windows in the _FLUXBOX_ACTION_RESULT property onto the rootwindow. This property might then be read by: $> xprop -root _FLUXBOX_ACTION_RESULT or $> fluxbox-remote result The format of the list is: win_id \t title_of_window \n win_id is '-1' when fluxbox wasn't able to parse the given ClientPattern. win_id is '0' when there are no windows matching the given ClientPattern.
2013-01-03automake: use AM_CPPFLAGS rather than INCLUDESSami Kerola2-3/+3
The INCLUDES macro deprecated in favour of AM_CPPFLAGS. References: http://www.gnu.org/software/automake/manual/html_node/Program-Variables.html
2013-01-02util/fluxbox-generate_menu: default browswer variable can be emptySami Kerola1-1/+5
Noticed when debugging in mac.
2013-01-02utils: remove bashismsSami Kerola2-3/+7
fbsetbg: The random number generation used 'time' shell internal, which does not exist in all shells. Allowing 'ps' output to be part of cksum input will increase entropy and enhance quality of the randomness. fbsetbg: The second fix is more important. In posix shell there is no '==' comparision operator. fluxbox-generate_menu: There are no quarantees about echo accepting options, so use 'printf' for more advanced outputing.
2012-12-30Store XClassHint on stack, not in dynamic memoryVladimir A. Pavlov1-8/+5
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