Generalize qutebrowser config (add generic.py)
This commit is contained in:
		
							parent
							
								
									9f68b7bcee
								
							
						
					
					
						commit
						694557d854
					
				
					 3 changed files with 32 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -1,36 +1,13 @@
 | 
			
		|||
import dracula.draw
 | 
			
		||||
import keybindings
 | 
			
		||||
import generic
 | 
			
		||||
 | 
			
		||||
config.load_autoconfig()
 | 
			
		||||
keybindings.init(config)
 | 
			
		||||
generic.init(c)
 | 
			
		||||
 | 
			
		||||
c.auto_save.session = True
 | 
			
		||||
 | 
			
		||||
#c.colors.webpage.darkmode.enabled = True
 | 
			
		||||
#c.colors.webpage.darkmode.policy.images = 'never'
 | 
			
		||||
c.colors.webpage.preferred_color_scheme = 'dark'
 | 
			
		||||
 | 
			
		||||
#c.content.proxy = "socks://localhost:9050/"
 | 
			
		||||
#c.content.headers.accept_language = "en-IE,en;q=0.9"
 | 
			
		||||
 | 
			
		||||
c.downloads.position = 'bottom'
 | 
			
		||||
 | 
			
		||||
c.fonts.hints = 'bold 18px default_family'
 | 
			
		||||
 | 
			
		||||
c.tabs.background = True
 | 
			
		||||
c.tabs.mousewheel_switching = False
 | 
			
		||||
c.tabs.new_position.related = 'last'
 | 
			
		||||
 | 
			
		||||
c.url.start_pages = ['dashboard.serguzim.me', 'cloud.serguzim.me', 'localhost:6680/iris/']
 | 
			
		||||
c.url.searchengines = {'DEFAULT': 'bookmarks.serguzim/?q={}'}
 | 
			
		||||
 | 
			
		||||
keybindings.init(config)
 | 
			
		||||
 | 
			
		||||
dracula.draw.blood(c, {
 | 
			
		||||
    'spacing': {
 | 
			
		||||
        'vertical': 1,
 | 
			
		||||
        'horizontal': 3
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
import socket
 | 
			
		||||
if socket.gethostname() == 'portalo':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,11 +1,12 @@
 | 
			
		|||
import keybindings
 | 
			
		||||
import generic
 | 
			
		||||
 | 
			
		||||
config.load_autoconfig()
 | 
			
		||||
keybindings.init(config)
 | 
			
		||||
generic.init(c)
 | 
			
		||||
 | 
			
		||||
c.tabs.show = 'never'
 | 
			
		||||
c.statusbar.show = 'never'
 | 
			
		||||
c.auto_save.session = False
 | 
			
		||||
 | 
			
		||||
c.url.start_pages = ['https://twitch.tv/']
 | 
			
		||||
 | 
			
		||||
keybindings.init(config)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										26
									
								
								.config/qutebrowser/generic.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.config/qutebrowser/generic.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
import dracula.draw
 | 
			
		||||
 | 
			
		||||
def init(c):
 | 
			
		||||
    #c.colors.webpage.darkmode.enabled = True
 | 
			
		||||
    #c.colors.webpage.darkmode.policy.images = 'never'
 | 
			
		||||
    c.colors.webpage.preferred_color_scheme = 'dark'
 | 
			
		||||
 | 
			
		||||
    #c.content.proxy = "socks://localhost:9050/"
 | 
			
		||||
    #c.content.headers.accept_language = "en-IE,en;q=0.9"
 | 
			
		||||
 | 
			
		||||
    c.downloads.position = 'bottom'
 | 
			
		||||
 | 
			
		||||
    c.fonts.hints = 'bold 18px default_family'
 | 
			
		||||
 | 
			
		||||
    c.tabs.background = True
 | 
			
		||||
    c.tabs.mousewheel_switching = False
 | 
			
		||||
    c.tabs.new_position.related = 'last'
 | 
			
		||||
 | 
			
		||||
    c.url.searchengines = {'DEFAULT': 'bookmarks.serguzim/?q={}'}
 | 
			
		||||
 | 
			
		||||
    dracula.draw.blood(c, {
 | 
			
		||||
        'spacing': {
 | 
			
		||||
            'vertical': 1,
 | 
			
		||||
            'horizontal': 3
 | 
			
		||||
        }
 | 
			
		||||
    })
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue