Some changes from minitoninux
This commit is contained in:
		
							
								
								
									
										10
									
								
								bin/.bin/DidIClickDesktop.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								bin/.bin/DidIClickDesktop.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,10 @@ | |||||||
|  | #!/bin/bash | ||||||
|  | # Did I just click the desktop? | ||||||
|  |  | ||||||
|  | #Get the window id of the window that is under the pointer and set variable WINDOW to it | ||||||
|  | eval $(xdotool getmouselocation --shell) | ||||||
|  |  | ||||||
|  | #Get the window id of the rootwindow aka desktop and convert the id into decimal form that xdotool uses so we can easily compare the values | ||||||
|  | rootwindowid=$(($(lsw | head -1))) | ||||||
|  | #Compare window ids to see if window under mouse is the rootwindow. Returns false if not. | ||||||
|  | [ "$WINDOW" = "$rootwindowid" ] | ||||||
| @ -93,6 +93,7 @@ bspc rule -a Tk state=pseudo_tiled | |||||||
| bspc rule -a mcedit.py state=floating | bspc rule -a mcedit.py state=floating | ||||||
| bspc rule -a yakuake manage=off layer=above | bspc rule -a yakuake manage=off layer=above | ||||||
| bspc rule -a xsane manage=off layer=above | bspc rule -a xsane manage=off layer=above | ||||||
|  | bspc rule -a Zathura state=tiled | ||||||
|  |  | ||||||
|  |  | ||||||
| ##  Autogap adjusts windowgap automatically according to the number of | ##  Autogap adjusts windowgap automatically according to the number of | ||||||
|  | |||||||
| @ -189,7 +189,7 @@ super + shift + {comma,period} | |||||||
| # Change window gap | # Change window gap | ||||||
|  |  | ||||||
| super + g | super + g | ||||||
| 	bspc config -d focused window_gap {$gap,$(($gap+$gap)),$(($gap+$gap+$gap))} | 	bspc config -d focused window_gap {$gap,$(($gap+$cgap)),$(($gap+$cgap+$gap))} | ||||||
|  |  | ||||||
| super + button{4,5} | super + button{4,5} | ||||||
| 	bspc config -d focused window_gap $((`bspc config -d focused window_gap` {+,-} 2 )) | 	bspc config -d focused window_gap $((`bspc config -d focused window_gap` {+,-} 2 )) | ||||||
| @ -197,14 +197,14 @@ super + button{4,5} | |||||||
| # mouse bindings | # mouse bindings | ||||||
| # __________________ | # __________________ | ||||||
|  |  | ||||||
| ~button1 | # ~button1 | ||||||
| 	DidIClickDesktop.sh && gapgrab | # 	DidIClickDesktop.sh && gapgrab | ||||||
|  |  | ||||||
| ~button2 | # ~button2 | ||||||
| 	DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmDesktopMenui | # 	DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/BspwmDesktopMenui | ||||||
| 		 | 		 | ||||||
| ~button3 | # ~button3 | ||||||
| 	DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/LaunchMenu | # 	DidIClickDesktop.sh && mygtkmenui -- .config/GTKmenu/LaunchMenu | ||||||
|  |  | ||||||
| # Switch workspace by scrolling on the desktop. Causes scrolling issues on some systems. | # Switch workspace by scrolling on the desktop. Causes scrolling issues on some systems. | ||||||
| #~button4 | #~button4 | ||||||
| @ -279,6 +279,9 @@ alt + z | |||||||
| Print | Print | ||||||
| 	scrot -s | 	scrot -s | ||||||
|  |  | ||||||
|  | shift + Print | ||||||
|  | 	scrot_copy | ||||||
|  |  | ||||||
| # | # | ||||||
| # Media keys | # Media keys | ||||||
| # | # | ||||||
|  | |||||||
| @ -6,10 +6,14 @@ snippet base "Description" b | |||||||
| \usepackage[french]{babel} | \usepackage[french]{babel} | ||||||
| \usepackage{amsmath, amsfonts, amssymb, amsthm} | \usepackage{amsmath, amsfonts, amssymb, amsthm} | ||||||
|  |  | ||||||
|  | \title{${2:${VISUAL:Titre}}} | ||||||
|  | \author{${3:${VISUAL:Debucquoy Anthony}}} | ||||||
|  |  | ||||||
| \begin{document} | \begin{document} | ||||||
|  |  | ||||||
|  | \maketitle | ||||||
|  |  | ||||||
| $0 | $0 | ||||||
|  |  | ||||||
| \end{document} | \end{document} | ||||||
| endsnippet | endsnippet | ||||||
|  |  | ||||||
|  | |||||||
							
								
								
									
										16
									
								
								vim/.vimrc
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								vim/.vimrc
									
									
									
									
									
								
							| @ -5,18 +5,14 @@ autocmd Filetype tex noremap <silent> <F12> <ESC>:silent !pdflatex % && mupdf %: | |||||||
|  |  | ||||||
| autocmd FileType asm noremap <F12> <ESC>:execute 'silent !qtspim' expand('%::p')<CR> | autocmd FileType asm noremap <F12> <ESC>:execute 'silent !qtspim' expand('%::p')<CR> | ||||||
|  |  | ||||||
| " autocmd FileType python set sw=4 |  | ||||||
| " autocmd FileType python set ts=4 |  | ||||||
| " autocmd FileType python set sts=4 |  | ||||||
|  |  | ||||||
| " let g:AutoPairsMapCR = 0 "Workaround for 27_AutoPairsReturn |  | ||||||
| " imap <silent><CR> <CR><Plug>AutoPairsReturn |  | ||||||
|  |  | ||||||
| nnoremap <C-p> :GFiles<CR> | nnoremap <C-p> :GFiles<CR> | ||||||
| nnoremap <C-g> :Ag<CR> | nnoremap <C-g> :Ag<CR> | ||||||
|  |  | ||||||
| nnoremap <leader><CR> :vert term<CR> | nnoremap <leader><CR> :vert term<CR> | ||||||
|  |  | ||||||
|  | let g:netrw_keepdir=0 | ||||||
|  | let g:netrw_banner=0 | ||||||
|  | let g:netrw_liststyle=3 | ||||||
| let python_highlight_all=1 | let python_highlight_all=1 | ||||||
| let g:pymode_python = 'python3' | let g:pymode_python = 'python3' | ||||||
| let g:pymode_options_max_line_length = 120 | let g:pymode_options_max_line_length = 120 | ||||||
| @ -25,7 +21,7 @@ let g:htmljinja_disable_detection = 1 | |||||||
| let g:vimtex_grammar_vlty = {'lt_command': 'languagetool'} | let g:vimtex_grammar_vlty = {'lt_command': 'languagetool'} | ||||||
| let g:vimtex_grammar_textidote = {'jar': '/usr/share/java/textidote.jar'} | let g:vimtex_grammar_textidote = {'jar': '/usr/share/java/textidote.jar'} | ||||||
|  |  | ||||||
| let g:vimtex_view_method = 'mupdf' | let g:vimtex_view_method = 'zathura' | ||||||
|  |  | ||||||
| " nnoremap <c-p> <plug>(YCMFindSymbolInDirectory) | " nnoremap <c-p> <plug>(YCMFindSymbolInDirectory) | ||||||
| " nnoremap <c-P> <plug>(YCMFindSymbolInWorkspace) | " nnoremap <c-P> <plug>(YCMFindSymbolInWorkspace) | ||||||
| @ -80,8 +76,8 @@ let g:ycm_language_server = [ | |||||||
| 			\ { | 			\ { | ||||||
| 			\ 	'name': 'tex', | 			\ 	'name': 'tex', | ||||||
| 			\ 	'cmdline': ['texlab'], | 			\ 	'cmdline': ['texlab'], | ||||||
| 			\ 	'filetype' : ['tex'] | 			\ 	'filetypes': ['tex'], | ||||||
| 			\ 	} | 			\ 	}, | ||||||
| 			\ ] | 			\ ] | ||||||
|  |  | ||||||
| " let g:completor_clang_binary = "/usr/bin/clang" | " let g:completor_clang_binary = "/usr/bin/clang" | ||||||
|  | |||||||
| @ -3,4 +3,4 @@ set recolor true | |||||||
| set recolor-darkcolor "#ffffff" | set recolor-darkcolor "#ffffff" | ||||||
| set recolor-lightcolor rgba(32,34,34,0.8) | set recolor-lightcolor rgba(32,34,34,0.8) | ||||||
| set guioptions "" | set guioptions "" | ||||||
|  | map f toggle_fullscreen | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user