style: format rc.lua
This commit is contained in:
		
							parent
							
								
									f21a6535ec
								
							
						
					
					
						commit
						9faaaa2285
					
				
					 1 changed files with 47 additions and 42 deletions
				
			
		
							
								
								
									
										69
									
								
								rc.lua
									
										
									
									
									
								
							
							
						
						
									
										69
									
								
								rc.lua
									
										
									
									
									
								
							|  | @ -25,7 +25,7 @@ log.add_logger(log.loggers.naughty, log.level.WARNING) | ||||||
| 
 | 
 | ||||||
| -- {{{ Tags | -- {{{ Tags | ||||||
| 
 | 
 | ||||||
| local tags = require('tags') | local tags = require("tags") | ||||||
| tags.setup() | tags.setup() | ||||||
| 
 | 
 | ||||||
| -- }}} | -- }}} | ||||||
|  | @ -34,46 +34,37 @@ tags.setup() | ||||||
| local widgets = require("widgets") | local widgets = require("widgets") | ||||||
| awful.screen.connect_for_each_screen(function(s) | awful.screen.connect_for_each_screen(function(s) | ||||||
| 	widgets.dynamic_taskbar(s) | 	widgets.dynamic_taskbar(s) | ||||||
| 	widgets(s).left( | 	widgets(s).left({ | ||||||
| 		{ |  | ||||||
| 		widgets.screennum(s), | 		widgets.screennum(s), | ||||||
| 		widgets.spacer, | 		widgets.spacer, | ||||||
| 		widgets.layout(s), | 		widgets.layout(s), | ||||||
| 		widgets.taglist(s), | 		widgets.taglist(s), | ||||||
| 			layout = wibox.layout.fixed.horizontal | 		layout = wibox.layout.fixed.horizontal, | ||||||
| 		}, | 	}, wibox.widget.textclock()) | ||||||
| 		wibox.widget.textclock() |  | ||||||
| 	) |  | ||||||
| 
 | 
 | ||||||
| 	widgets(s).right( | 	widgets(s).right({ | ||||||
| 		{ |  | ||||||
| 		widgets.cpu(), | 		widgets.cpu(), | ||||||
| 		widgets.ram(), | 		widgets.ram(), | ||||||
| 		widgets.battery(s), | 		widgets.battery(s), | ||||||
| 		widgets.systray(s), | 		widgets.systray(s), | ||||||
| 			layout = wibox.layout.fixed.horizontal | 		layout = wibox.layout.fixed.horizontal, | ||||||
| 		}, | 	}, widgets.mail({ os.getenv("HOME") .. "/.maildir/uber" }, "bottom_right", "uber")) | ||||||
| 		widgets.mail({ os.getenv("HOME") .. "/.maildir/uber" }, "bottom_right", "uber") |  | ||||||
| 	) |  | ||||||
| end) | end) | ||||||
| -- }}} | -- }}} | ||||||
| 
 | 
 | ||||||
| local audiowheel = require("audiowheel") | local audiowheel = require("audiowheel") | ||||||
| local speakerwheel = audiowheel { | local speakerwheel = audiowheel({ | ||||||
| 	volume_control = { cardid = 0 }, | 	volume_control = { cardid = 0 }, | ||||||
| 	image_prefix = "/usr/share/icons/ePapirus/24x24/panel/", | }) | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| local micwheel = audiowheel { | local micwheel = audiowheel({ | ||||||
| 	image_prefix = "/usr/share/icons/ePapirus/24x24/panel/", | 	image_muted = "notification-microphone-sensitivity-muted.svg", | ||||||
| 	image_muted = "microphone-sensitivity-muted.svg", | 	image_low = "notification-microphone-sensitivity-low.svg", | ||||||
| 	image_low = "microphone-sensitivity-low.svg", | 	image_medium = "notification-microphone-sensitivity-medium.svg", | ||||||
| 	image_medium = "microphone-sensitivity-medium.svg", | 	image_high = "notification-microphone-sensitivity-high.svg", | ||||||
| 	image_high = "microphone-sensitivity-high.svg", |  | ||||||
| 	--volume_control = { cardid = 0, tooltip = false, channel = "Dmic0" } | 	--volume_control = { cardid = 0, tooltip = false, channel = "Dmic0" } | ||||||
| 	volume_control = { tooltip = false, type = "source" } | 	volume_control = { tooltip = false, type = "source" }, | ||||||
| } | }) | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| -- {{{ Key bindings | -- {{{ Key bindings | ||||||
| 
 | 
 | ||||||
|  | @ -86,15 +77,29 @@ binder.modal.set_opacity(0.8) | ||||||
| binder.add_default_bindings() | binder.add_default_bindings() | ||||||
| binder.add_reloadable(tags.create_bindings) | binder.add_reloadable(tags.create_bindings) | ||||||
| local mybindings = awful.util.getdir("config") .. "/mybindings.lua" | local mybindings = awful.util.getdir("config") .. "/mybindings.lua" | ||||||
| binder.add_reloadable(function() return dofile(mybindings) end) | binder.add_reloadable(function() | ||||||
|  | 	return dofile(mybindings) | ||||||
|  | end) | ||||||
| 
 | 
 | ||||||
| binder.add_bindings(awful.util.table.join( | binder.add_bindings(awful.util.table.join( | ||||||
| 	awful.key({}, "XF86AudioRaiseVolume", function() speakerwheel:up() end), | 	awful.key({}, "XF86AudioRaiseVolume", function() | ||||||
| 	awful.key({}, "XF86AudioLowerVolume", function() speakerwheel:down() end), | 		speakerwheel:up() | ||||||
| 	awful.key({}, "XF86AudioMute", function() speakerwheel:toggle() end), | 	end), | ||||||
| 	awful.key({ "Shift" }, "XF86AudioRaiseVolume", function() micwheel:up() end), | 	awful.key({}, "XF86AudioLowerVolume", function() | ||||||
| 	awful.key({ "Shift" }, "XF86AudioLowerVolume", function() micwheel:down() end), | 		speakerwheel:down() | ||||||
| 	awful.key({}, "XF86AudioMicMute", function() micwheel:toggle() end) | 	end), | ||||||
|  | 	awful.key({}, "XF86AudioMute", function() | ||||||
|  | 		speakerwheel:toggle() | ||||||
|  | 	end), | ||||||
|  | 	awful.key({ "Shift" }, "XF86AudioRaiseVolume", function() | ||||||
|  | 		micwheel:up() | ||||||
|  | 	end), | ||||||
|  | 	awful.key({ "Shift" }, "XF86AudioLowerVolume", function() | ||||||
|  | 		micwheel:down() | ||||||
|  | 	end), | ||||||
|  | 	awful.key({}, "XF86AudioMicMute", function() | ||||||
|  | 		micwheel:toggle() | ||||||
|  | 	end) | ||||||
| )) | )) | ||||||
| 
 | 
 | ||||||
| binder.apply() | binder.apply() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alexander Gehrke
						Alexander Gehrke