Commit graph

433 commits

Author SHA1 Message Date
Ryan Pavlik
f77f5d461b util/Makefile.am,fluxbox-generate_menu.in: use EXEEXT
Needed to allow mingw-cross-env cross build
2011-10-31 10:54:09 -05:00
Ryan Pavlik
5cb7326d22 fluxbox-update_configs.cc: Fix on windows - no kill or sigusr2 2011-10-31 10:54:09 -05:00
Ryan Pavlik
3ca61475fb FbRun.cc: Fix on windows where there is no fork 2011-10-31 10:54:09 -05:00
Mathias Gumz
8dd11efc76 cosmetics 2011-10-21 08:34:53 +02:00
Mathias Gumz
4f4d5e25d9 bugfix: fbsetroot needs to use 24bit visuals as well
12f44680df introduced ARGB visuals. if fluxbox
creates 32bit visuals for the container window or the root window: does not work.
2011-10-21 08:34:37 +02:00
nacitar sevaht
2f166eb4ae fluxbox-remote now properly returns exit status
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-08 07:47:02 +02:00
Pavel Labath
127ec08ae6 Fix "comparison between signed and unsigned" warning 2011-05-04 20:33:07 +02:00
Pavel Labath
86c9b100f3 Fix VPATH builds 2011-04-18 08:50:44 +02:00
skizzhg
fbf5ce8b30 Changed fbsetbg's tips to the new behaviour. 2011-04-11 17:46:26 +02:00
slakmagik
906166f42d make XMESSAGE a variable and use it consistently
Previously, gxmessage was getting substituted in one place and not
another.
2011-03-29 08:44:51 +02:00
slakmagik
a8583b79ae avoid trailing spaces between app and closing }
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-29 08:44:51 +02:00
slakmagik
0fbb2cb73c separate functions and main code
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-29 08:44:51 +02:00
slakmagik
2034e5ef44 add the configuration file equivalent of '-in' 2011-03-29 08:44:51 +02:00
slakmagik
e312f35d1a silence cmp
cmp's '-s' flag is POSIX - if it's as portable as that's supposed to
mean, that might be used instead.
2011-03-29 08:44:51 +02:00
Jeremiah Mahler
14a8a2b440 fbsetbg: improved aspect-ratio-filling for feh (thanks Jeremiah Mahler <jmmahler at gmail com>
Closes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583704
2011-02-21 20:16:00 +01:00
Mathias Gumz
0ef76292c5 changed the way we create the '~/.fluxbox' directory to avoid race conditions
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-18 17:51:30 +02:00
Mathias Gumz
c9c741c88d cosmetic 2010-09-18 17:27:28 +02:00
Mathias Gumz
24e4e98dbe updated config version to '13' and adjusted 'fluxbox-update_configs' accordingly
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-11 22:04:15 +02:00
Mathias Gumz
690d926ac4 introduced FbTk::BidiString
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-08 20:17:21 +02:00
Mathias Gumz
1e9dafdc67 fixed the default 'OnTitlebar Mouse1' actions 2010-09-04 14:41:11 +02:00
Mathias Gumz
bc2b21547b implemented 'ActivateTab' action to (re)allow activation of tabs via mouse 2010-08-20 19:01:25 +02:00
Mathias Gumz
e05230ea4b deploy new key-bindings to old keys-files via fluxbox-update_configs 2010-05-05 08:41:48 +02:00
Mathias Gumz
7a86dad21b bugfix: do not create the temporary menufile 'somewhere' in the filesystem but next to the final one 2010-02-28 20:16:46 +01:00
Mathias Gumz
80e8cd071e just use the FbTk API 2009-10-02 08:38:24 +02:00
Mathias Gumz
1b4596ee85 bugfix: stop wiping out ~/.fluxbox/keys 2009-10-02 08:37:44 +02:00
Mathias Gumz
884db973bb cosmetic fixes: removed redundant ';' + some whitespaces 2009-09-30 21:02:24 +02:00
Mark Tiefenbruck
bb05494751 add a few items to fbgm 2009-06-28 12:57:42 -07:00
Jim Ramsay
ed28c69b8d Cleaned up 'fbsetbg -h' output
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-28 14:31:54 -04:00
Jim Ramsay
ae2d4b6b53 Don't complain on '-z' if there's no lastwallpaper
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-26 16:36:43 -04:00
Mathias Gumz
df81e1f774 minor cosmetics 2009-05-25 08:04:41 +02:00
Mathias Gumz
2f9cce3687 compilefix 2009-03-04 20:24:59 +01:00
Mathias Gumz
014ff1f71c dont try to read file when they are actually a directory 2009-03-04 19:54:48 +01:00
Mark Tiefenbruck
aee9889a27 recognize --option in addition to -option for most things 2008-10-04 14:32:20 -07:00
Mark Tiefenbruck
e6570b61f3 add -print option to fbrun to return result to stdout instead of executing it 2008-10-04 14:01:31 -07:00
Mark Tiefenbruck
68bf9796e8 fix updating of keys file for scrolling on toolbar 2008-09-09 22:10:19 -04:00
Mark Tiefenbruck
08c8c6431f use old focus/raise behavior for default alt+left/right mouse bindings 2008-08-26 09:59:01 -04:00
Mark Tiefenbruck
e5d43edb8e update keys file for changes to NextWindow syntax 2008-08-19 05:48:16 -07:00
Mark Tiefenbruck
c52a84a170 make wallpapers do The Right Thing (tm) 2008-08-05 23:40:18 -07:00
Mark Tiefenbruck
2df84f6687 use the same options in Slit and Toolbar placement menus 2008-08-05 17:11:55 -07:00
Mark Tiefenbruck
1be92e79ec add shebang to default startup file 2008-07-06 20:26:10 -07:00
Mark Tiefenbruck
520fa94ac6 add a few tops to fbgm 2008-07-02 10:06:03 -07:00
Mark Tiefenbruck
2cdb04cc1e don't use full path to fluxbox in startfluxbox 2008-06-17 17:03:39 -07:00
skiidoo
be3ac3723d updated the copyright where it's easily visible: fluxbox -v and COPYRIGHT.
nls/translators: typo, plus Translation.m.desc never existed. Never.
more consistent keys file comments in fluxbox-update_config.
2008-06-11 07:47:02 +02:00
Mark Tiefenbruck
81d297da26 fix out of source building 2008-06-01 15:44:28 -07:00
skiidoo
146a38c776 some additions/corrections for fbgm 2008-05-02 03:59:47 -07:00
Mark Tiefenbruck
6cb26c97a9 don't add program icons to tabs for previous users, for backwards compatibility, but leave it as default for new users 2008-04-29 05:51:43 -07:00
Mark Tiefenbruck
40e17b4d0e some updates for the startup file in modern times 2008-04-25 17:56:51 -07:00
Bernhard Walle
d300c62ba0 Fix build with g++ 4.3
This change fixes the build for g++ 4.3. Build verified on openSUSE Factory.
Only missing includes and using directives are added.
2008-03-25 20:59:52 +01:00
Mark Tiefenbruck
f1fd7f464b fix issue with multiple spaces in filename in fbsetbg 2008-01-23 03:45:59 -08:00
Mark Tiefenbruck
97c5f12615 use hash instead of which in fbsetbg 2008-01-23 03:30:59 -08:00
Mathias Gumz
e1db89e2d7 moved code a bit around, cleaned up some classes 2008-01-14 23:27:00 +01:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Mark Tiefenbruck
934bd42ace `hash -t' seems to be bash-only 2007-12-24 11:59:36 -08:00
Mark Tiefenbruck
088f418927 replaced which' with the bourne shell built-in hash' and fixed some --program-prefix/suffix problems 2007-12-24 01:30:49 -08:00
Mark Tiefenbruck
d6e009af98 search subdirectories when looking for icons 2007-12-23 23:43:37 -08:00
Mark Tiefenbruck
0a14d911c6 added key command StartTabbing 2007-12-20 23:07:46 -08:00
Mark Tiefenbruck
406b7e05eb remove `OnTitlebar Mouse2 :Lower', as it interferes with tabbing 2007-12-20 19:47:21 -08:00
Mark Tiefenbruck
1cca420f2e "fix" `About' item in fbgm with tcsh, #1806327 2007-12-19 15:43:29 -08:00
Mark Tiefenbruck
7f6c3267e3 fix a few $HOME-related issues in fbgm 2007-12-19 15:10:31 -08:00
markt
38877987c4 update default keys and init files for OnTitlebar code 2007-12-11 19:25:01 +00:00
markt
95f9c2d680 added OnTitlebar modifier to keys file 2007-12-09 20:47:41 +00:00
markt
e30f235daf fix from NetBSD for using the home directory of the user who compiled fluxbox
also fix 'regenerate menu' code to use correct program name, rather than $0
2007-11-23 23:21:25 +00:00
markt
5d7043320d allow arbitrary window patterns in iconbar 2007-11-12 21:59:43 +00:00
fluxgen
1748e8ec25 added missing mouse3 and space before startresizing 2007-10-22 18:19:11 +00:00
markt
c6a2605d76 replaced ModKey with new key commands StartMoving and StartResizing 2007-10-22 17:45:39 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
mathias
d8455124e8 minor addons to fbgm (patch from Patrik Wenger <paddor at gmail dot com>) 2007-10-07 16:51:52 +00:00
fluxgen
fa4766ed75 added pidgin 2007-08-12 08:15:43 +00:00
markt
8da54ca0eb add some decorations to torn menus, and fix restart without an argument 2007-07-31 23:16:05 +00:00
markt
135019abf9 fixes for --program-prefix and --program-suffix, plus fixed overwriting init file on reconfigure 2007-07-07 23:11:04 +00:00
markt
b735d405f5 allow negative indices in :Workspace <int> 2007-07-07 04:54:34 +00:00
markt
ae3c304239 some security fixes for fluxbox-remote, and a minor change for the gvim fix 2007-07-03 22:56:46 +00:00
mathias
24c023192f minor cosmetics to fluxbox-remote, display of usage 2007-07-03 19:04:46 +00:00
markt
b70f4c144c fix updating of systemtray and kde dockapps in slit on background change
added fluxbox-remote.cc
2007-07-03 18:50:53 +00:00
markt
329fca30fd updates for compiling with gcc 4.3 2007-06-29 17:25:24 +00:00
markt
9522db45a8 added some entries to fbgm, plus some minor bug fixes 2007-06-28 20:59:04 +00:00
mathias
6f8a5c7a8d small fix for the /bin/sh issue .. just using /bin/zsh now 2007-06-09 17:44:27 +00:00
mathias
dff2aa3356 fix for the following problem:
on *bsd /bin/sh is not just a symlink to /bin/bash as on most linux's 
  but a real standalone shell. and it behaves differently from "bash -c"
  behavior .. it doesnt exec the command given but waits till the command
  finishes. as a result a lot of "rogue" a flying around. solution is now 

     ( $SHELL or /bin/sh ) -c exec <cmd>
2007-06-06 06:22:37 +00:00
markt
30834f9f6e added seamonkey to fbgm 2007-05-17 16:06:40 +00:00
markt
805fae9340 this should be a whitespace separated list 2007-05-14 20:59:22 +00:00
markt
622d75f642 fix for fbsetbg -l when last wallpaper was using fbsetroot 2007-04-18 18:12:29 +00:00
mathias
118d4b14d2 patch from Hoeckner Bernhard (berhoeckner at gmx at) for fluxbox-generate_menu 2007-04-14 07:13:17 +00:00
markt
e89d4aa219 getting rid of more useless files in the repo 2007-04-03 22:39:41 +00:00
simonb
383f99d4b6 Default value for $LAUNCHER, plus add util and util/fbrun to the
PATH when generating install menu so it can find fbrun.
data thus needs to come after util in toplevel subdir processing so
that fbrun is built
2007-03-31 11:28:46 +00:00
simonb
9ce423ab5f emit [encoding] tags around the menus 2007-03-31 10:53:53 +00:00
fluxgen
a492e33a70 added fi_FI support, thanks Pasi Juvonen 2007-03-30 18:14:25 +00:00
markt
6e143b516e startup file wasn't being run properly when first created 2007-03-28 02:56:21 +00:00
markt
48c3af9f9c fixed a little bug in fbsetbg when DISPLAY doesn't have .0 after it 2007-03-24 16:34:32 +00:00
markt
ed96d79a14 command -v seems to cause problems for some distros, despite being POSIX and built into sh 2007-02-22 16:51:35 +00:00
markt
6fdda1a31d added mouse bindings to the keys file 2007-02-09 18:13:01 +00:00
markt
590b6c93d9 replace which' in fbsetbg and fbgm with command -v' 2007-01-02 05:43:25 +00:00
markt
1cad4ca517 fix capitalization of valknut in fbgm 2007-01-02 04:45:54 +00:00
mathias
e5e76e7761 Cosmetic patch from Slava Semushin 2006-10-30 19:31:15 +00:00
mathias
426c12c25c changed mode for ~/.fluxbox/startup to 644 so people on noexec-mounted
partitions dont run into problems
2006-10-27 07:04:51 +00:00
mathias
0e2a8b9a43 fix for the fbsetbg-fix from yesterday 2006-09-21 09:41:18 +00:00
mathias
750caf08b8 fixed little issue with fbsetbg showing the warning about missing wpsetters even if the user only pipes arguments towards fbsetroot 2006-09-20 19:44:07 +00:00
mathias
d93919e748 translations and minor updates to fbgm, patch from antonio gomes (izi) 2006-08-27 15:17:47 +00:00
markt
53adbd9921 allow aspect/centered/tiled options with random in fbsetbg 2006-08-04 23:28:34 +00:00
simonb
03d3c6c99c compile fix for nls enabled 2006-06-29 05:46:11 +00:00
markt
7d4546ba5b Make fbsetroot set one screen at a time 2006-06-29 05:05:30 +00:00