mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/rcxml.c: parse <keybind>
This commit is contained in:
		
							parent
							
								
									f6578248c0
								
							
						
					
					
						commit
						158f42d1e8
					
				
					 11 changed files with 108 additions and 50 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
#include "labwc.h"
 | 
			
		||||
#include "spawn.h"
 | 
			
		||||
 | 
			
		||||
#include <strings.h>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -11,8 +12,7 @@ void action(struct server *server, struct keybind *keybind)
 | 
			
		|||
	} else if (!strcasecmp(keybind->action, "NextWindow")) {
 | 
			
		||||
		server->cycle_view = next_toplevel(view_front_toplevel(server));
 | 
			
		||||
	} else if (!strcasecmp(keybind->action, "Execute")) {
 | 
			
		||||
		if (!fork())
 | 
			
		||||
			execl("/bin/dmenu_run", "/bin/dmenu_run", (void *)NULL);
 | 
			
		||||
		spawn_async_no_shell(keybind->command);
 | 
			
		||||
	} else if (!strcasecmp(keybind->action, "debug-views")) {
 | 
			
		||||
		dbg_show_views(server);
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue