about summary refs log tree commit diff stats
path: root/event.c
Commit message (Expand)AuthorAgeFilesLines
* changed main event loopAnselm R.Garbe2006-08-151-0/+13
* removed NUMLOCKMASK, added dynamically calculated numlockmask insteadAnselm R.Garbe2006-08-141-3/+3
* applied sanders man page patch, removed button2 from bar clickAnselm R.Garbe2006-08-141-3/+3
* fixedAnselm R.Garbe2006-08-141-1/+1
* remove unnecessary XSyncAnselm R.Garbe2006-08-141-1/+0
* added mappingnotify event for kb refreshesAnselm R.Garbe2006-08-141-0/+12
* removed unneecessary crapAnselm R.Garbe2006-08-141-6/+1
* pplied Sanders appendtag patchAnselm R.Garbe2006-08-141-0/+6
* some other small fixesAnselm R.Garbe2006-08-141-2/+4
* removed ungrabkeys again (because of sander's mail)Anselm R.Garbe2006-08-141-16/+0
* implemented ungrabkeys() which is called in cleanup()Anselm R.Garbe2006-08-141-0/+16
* implemented restack behavior (floats are on top in tiled mode)Anselm R.Garbe2006-08-141-3/+6
* applied Sanders LD and resize patchesAnselm R.Garbe2006-08-141-2/+5
* removed viewnext/viewprevAnselm R.Garbe2006-08-141-23/+9
* made shortcuts like proposed by Sander, renamed viewextend to toggleview (mor...Anselm R.Garbe2006-08-131-1/+1
* implemented viewextend and added M-S-C-n shortcuts for extending the current ...Anselm R.Garbe2006-08-111-5/+2
* implement multi-tag selection through button3 click on the specific tagAnselm R.Garbe2006-08-111-1/+7
* realized that client focussing through the bar is pretty useless, better is s...Anselm R.Garbe2006-08-111-5/+5
* implemented focusprev on button1 press in the bar, and focusnext on button3 p...Anselm R.Garbe2006-08-111-2/+6
* applied Sanders zoom_update patchAnselm R.Garbe2006-08-101-2/+1
* applied sumik's multihead patchAnselm R.Garbe2006-08-101-5/+10
* applied sander's patchAnselm R.Garbe2006-08-101-11/+8
* disallow zoom on maximized clientsAnselm R.Garbe2006-08-101-9/+8
* added zoom on Mod1-Button1 on managed clients only (there is no moving possible)Anselm R.Garbe2006-08-091-0/+2
* removed NET_ACTIVE_WINDOW handlingAnselm R.Garbe2006-08-081-13/+0
* implemented NET_ACTIVE_WINDOW supportAnselm R.Garbe2006-08-081-0/+13
* applied grabbing-- and shell_minimalarg@10ksloc.org2006-08-071-8/+0
* small performance tweak ;)arg@10ksloc.org2006-08-041-2/+4
* fixed xterm font change (all other related apps should work fine with this fi...arg@10ksloc.org2006-08-041-14/+12
* removed TLast tag enum, now tags is simple defined as char *[] array, the res...arg@10ksloc.org2006-08-031-1/+1
* made fullscreen apps working fine in floating mode (there is no sane way to m...arg@10ksloc.org2006-08-021-19/+46
* new stuffarg@10ksloc.org2006-08-021-5/+2
* implemented focus on enterwindow on titlebarsarg@10ksloc.org2006-08-021-1/+1
* applied Sanders patches (numlock2)arg@10ksloc.org2006-08-021-5/+12
* reverting to old resize policyarg@10ksloc.org2006-08-021-10/+13
* new resize stuff (using XConfigureWindow instead of XSendEvent)arg@10ksloc.org2006-08-021-13/+10
* removed 1 missing LOCarg@10ksloc.org2006-08-011-1/+0
* saved 2LOCarg@10ksloc.org2006-08-011-4/+2
* uppercasing all define'd values (uppercase-prefixed should only be enum field...arg@10ksloc.org2006-08-011-4/+4
* centralized/externalized configuration to config.harg@10ksloc.org2006-08-011-58/+10
* applied Cedric's NumLock patcharg@10ksloc.org2006-08-011-1/+17
* applied Jukkas prev/next patch with XK_{h,l}arg@10ksloc.org2006-08-011-0/+2
* applied Sanders patchesarg@10ksloc.org2006-08-011-11/+3
* prepared 0.5 0.5arg@10ksloc.org2006-07-211-3/+9
* some cleanups/fixes inspired by Jukka Salmi's feedbackarg@10ksloc.org2006-07-211-2/+2
* simplified main.c, switching back to single urxvt usagearg@10ksloc.org2006-07-211-1/+1
* applied sanders maxfix patcharg@10ksloc.org2006-07-211-2/+2
* sanitization of several clunky stuff, removed heretag (rarely of use), simpli...arg@10ksloc.org2006-07-211-12/+11
* cleaned the CUSTOMIZE flagsarg@10ksloc.org2006-07-201-0/+2
* made status bar drawing more robust, implemented togglemax and togglemode, wo...arg@10ksloc.org2006-07-201-8/+3
>
















                                                                              




                                                                         

               
                        
             
 
                   
                                                                      
 
                                                    
                           
 
                 
                  

                           
    
                                                                


        
 

                                                                

                                                           
 

                                                              
                              
    
                               
 
                                   





                                                               
 

              
 
#!/usr/bin/python
# coding=utf-8
# ranger: Explore your forest of files from inside your terminal
#
# Copyright (c) 2009, 2010 hut <hut@lavabit.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# ----------------------------------------------------------------------------
#
# An embedded shell script. It allows you to change the directory
# of the parent shell to the last visited directory in ranger after exit.
# For more information, check out doc/cd-after-exit.txt
# To enable this, start ranger with:
#     source /path/ranger /path/ranger
"""":
if [ $1 ]; then
	ranger_exec="$1"
	shift

	trap "" INT
	exec 3< <($ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-)

	while read ranger_output; do false; done <&3
	cd "$ranger_output"

	exec 3<&-
	trap - INT
	unset ranger_exec
	unset ranger_output
else
	echo "usage: source path/to/ranger.py path/to/ranger.py"
fi
return 1
"""

# Redefine the docstring, since the previous one was hijacked to
# embed a shellscript.
__doc__ = """Ranger - file browser for the unix terminal"""


# Importing the main method may fail if the ranger directory
# is neither in the same directory as this file, nor in one of
# pythons global import paths.
try:
	from ranger import main

except ImportError as errormessage:
	if str(errormessage).endswith("main"):
		print("Can't import the main module.")
		print("To run an uninstalled copy of ranger,")
		print("launch ranger.py in the top directory.")
	else:
		raise

else:
	main()