add support for vscripts in $PATH as well as a hotkey for compton
This commit is contained in:
		
							parent
							
								
									ded329bd3d
								
							
						
					
					
						commit
						fcd1e75e6d
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								rc.lua
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								rc.lua
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -456,6 +456,7 @@ globalkeys = awful.util.table.join(
 | 
			
		|||
	-- Menubar
 | 
			
		||||
	awful.key({ modkey,           }, 'p',     function () menubar.show() end),
 | 
			
		||||
	-- Glbal commands
 | 
			
		||||
	awful.key({ 'Mod1', 'Shift'   }, 'F12',   function () awful.util.spawn('/home/von/vscripts/compton_toggle', false) end),
 | 
			
		||||
	awful.key({ modkey,           }, 'x',     function () awful.util.spawn(terminal) end),
 | 
			
		||||
	awful.key({ modkey,           }, 'q',     function () awful.util.spawn('/home/von/.local/bin/ticket_watch', false) end),
 | 
			
		||||
	awful.key({ modkey,           }, 'z',     function () awful.util.spawn('bash -c "until i3lock -entc 661111 -i /home/von/Pictures/wallpaper.png; do :; done"') end),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								shellrc
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								shellrc
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
 | 
			
		||||
# common
 | 
			
		||||
# {{{ environment
 | 
			
		||||
# a bunch of functions to make this whole thing work
 | 
			
		||||
# a bunch of functions and vars to make this whole thing work
 | 
			
		||||
is_zsh() [[ -n ${ZSH_VERSION} ]]
 | 
			
		||||
if is_zsh; then
 | 
			
		||||
	is_exec() [[ -x $(whence ${1}) ]]
 | 
			
		||||
| 
						 | 
				
			
			@ -15,9 +15,11 @@ fi
 | 
			
		|||
 | 
			
		||||
newline="
 | 
			
		||||
"
 | 
			
		||||
vscripts="${HOME}/vscripts"
 | 
			
		||||
local_bin="${HOME}/.local/bin"
 | 
			
		||||
[[ -r ${local_bin} && ${PATH} != *${local_bin}* ]] && export PATH=${PATH}:${local_bin}
 | 
			
		||||
unset local_bin
 | 
			
		||||
[[ -d ${vscripts} && ${PATH} != *${vscripts}* ]] && export PATH=${PATH}:${vscripts}
 | 
			
		||||
[[ -d ${local_bin} && ${PATH} != *${local_bin}* ]] && export PATH=${PATH}:${local_bin}
 | 
			
		||||
unset local_bin vscripts
 | 
			
		||||
 | 
			
		||||
dotfiles="${HOME}/vdotfiles"
 | 
			
		||||
comp_enabled=true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue