Using new ruled.client for rules
This commit is contained in:
		
							parent
							
								
									53fdeb8db0
								
							
						
					
					
						commit
						4aa3a43819
					
				
					 2 changed files with 16 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -19,12 +19,12 @@
 | 
			
		|||
(local ruled (require "ruled"))
 | 
			
		||||
 | 
			
		||||
;; my splits
 | 
			
		||||
(local rules (require "rules"))
 | 
			
		||||
(local clientrules (require "rules"))
 | 
			
		||||
(local keybindings (require "keybindings"))
 | 
			
		||||
;; (local notifications (require "notifications"))
 | 
			
		||||
 | 
			
		||||
;; Error handling
 | 
			
		||||
;; Check if awesome encountered an error during startup and fell back to
 | 
			
		||||
;; Check if awesome encountered an error during startup and fall back to
 | 
			
		||||
;; another config (This code will only ever execute for the fallback config)
 | 
			
		||||
(when awesome.startup_errors
 | 
			
		||||
  (naughty.notify {:preset naughty.config.presets.critical
 | 
			
		||||
| 
						 | 
				
			
			@ -67,7 +67,7 @@
 | 
			
		|||
(local ctrl "Control")
 | 
			
		||||
(local alt "Mod1")
 | 
			
		||||
 | 
			
		||||
;; Set hostname so that we can utilize specific features on different machines|#|#
 | 
			
		||||
;; Set hostname so that we can utilize specific features on different machines
 | 
			
		||||
(local hostname-handle (io.popen "hostname"))
 | 
			
		||||
(local hostname (hostname-handle:read "a"))
 | 
			
		||||
(hostname-handle:close)
 | 
			
		||||
| 
						 | 
				
			
			@ -452,7 +452,7 @@
 | 
			
		|||
(root.keys keybindings.globalkeys)
 | 
			
		||||
 | 
			
		||||
;; Rules
 | 
			
		||||
(set awful.rules.rules rules)
 | 
			
		||||
(ruled.client.append_rules clientrules)
 | 
			
		||||
 | 
			
		||||
;; Signals
 | 
			
		||||
;; Signal function to execute when a new client appears.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue