Improve configs
This commit is contained in:
		
							parent
							
								
									cc1c39d20d
								
							
						
					
					
						commit
						54c3bc1744
					
				
					 7 changed files with 43 additions and 30 deletions
				
			
		
							
								
								
									
										19
									
								
								.bin/.e
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								.bin/.e
									
										
									
									
									
								
							|  | @ -33,6 +33,18 @@ declare -A mapper=( | |||
| 	["zsh"]="$HOME/.config/zsh/.zshrc" | ||||
| ) | ||||
| 
 | ||||
| declare -A directory=( | ||||
| 	["bspwm"]="$HOME/.config/bspwm/" | ||||
| 	["env.d"]="$HOME/.config/env.d/" | ||||
| 	["home-manager"]="$HOME/.config/home-manager/" | ||||
| 	["hyprland"]="$HOME/.config/hypr/" | ||||
| 	["nvim"]="$HOME/.config/astronvim/lua/user/" | ||||
| 	["polybar"]="$HOME/.config/polybar/" | ||||
| 	["qutebrowser"]="$HOME/.config/qutebrowser/" | ||||
| 	["waybar"]="$HOME/.config/waybar/" | ||||
| 	["zsh"]="$HOME/.config/zsh/" | ||||
| ) | ||||
| 
 | ||||
| declare -A hooks=( | ||||
| 	["qutebrowser"]="qutebrowser :config-source" | ||||
| 	["qutebrowser-kiosk"]="qutebrowser-kiosk :config-source" # broken due to qutebrowser-kiosk being an alias | ||||
|  | @ -58,6 +70,13 @@ then | |||
| 	exit 1 | ||||
| fi | ||||
| 
 | ||||
| working_dir="${directory["$1"]}" | ||||
| if [ -n "$working_dir" ] | ||||
| then | ||||
| 	# shellcheck disable=SC2164 | ||||
| 	cd "$working_dir" | ||||
| fi | ||||
| 
 | ||||
| $EDITOR "$target" | ||||
| 
 | ||||
| hook="${hooks["$1"]}" | ||||
|  |  | |||
|  | @ -103,6 +103,12 @@ command = 'flatpak run com.teamspeak.TeamSpeak3 -nosingleinstance' | |||
| hosts = [] | ||||
| group = 'chat' | ||||
| 
 | ||||
| [apps.teamspeak-notify-move] | ||||
| command = 'ts-control events-move' | ||||
| delay = 5 | ||||
| hosts = [] | ||||
| group = 'chat' | ||||
| 
 | ||||
| [apps.thunderbird] | ||||
| command = 'thunderbird' | ||||
| hosts = [] | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| ### Workspace rules | ||||
| # Workspace rules | ||||
| 
 | ||||
| windowrulev2 = workspace $ws_web silent, class:(qutebrowser) | ||||
| windowrulev2 = workspace $ws_web, class:(firefox) | ||||
|  | @ -17,11 +17,12 @@ windowrulev2 = workspace $ws_msg silent, class:(thunderbird) | |||
| windowrulev2 = workspace $ws_msg silent, class:(Signal) | ||||
| 
 | ||||
| 
 | ||||
| ### Specific rules | ||||
| # Specific rules | ||||
| 
 | ||||
| windowrulev2 = move 100%-300 100%-30, class:(steam), title:^(notificationtoasts) | ||||
| windowrulev2 = nofocus, class:(steam), title:^(notificationtoasts) | ||||
| windowrulev2 = float, class:(steam), title:^(Friends List) | ||||
| windowrulev2 = float, class:(zenity), title:^(Progress) | ||||
| windowrulev2 = noinitialfocus, class:(steam), title:^(Friends List) | ||||
| windowrulev2 = workspace $ws_chat silent, class:(steam), title:^(Friends List) | ||||
| 
 | ||||
|  |  | |||
|  | @ -9,9 +9,6 @@ def init(c): | |||
| 
 | ||||
|     #c.content.proxy = "socks://localhost:9050/" | ||||
|     c.content.headers.accept_language = "en-US,en;q=0.5" | ||||
|     c.content.headers.custom = { | ||||
|         "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | ||||
|     } | ||||
|     #c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" | ||||
|     c.content.tls.certificate_errors = 'block' | ||||
| 
 | ||||
|  |  | |||
|  | @ -2,19 +2,17 @@ def init(c): | |||
|     c.bind(',v', 'spawn io.freetubeapp.FreeTube {url}') | ||||
|     c.bind(',V', 'hint links spawn io.freetubeapp.FreeTube {hint-url}') | ||||
| 
 | ||||
|     # ungoogled-chromium | ||||
|     c.bind(',b', 'spawn chromium {url}') | ||||
|     c.bind(',B', 'hint links spawn chromium {hint-url}') | ||||
|     # firefox | ||||
|     c.bind(',f', 'spawn firefox {url}') | ||||
|     c.bind(',F', 'hint links spawn firefox {hint-url}') | ||||
|     # external | ||||
|     c.bind(',eb', 'spawn chromium {url}') | ||||
|     c.bind(',eB', 'hint links spawn chromium {hint-url}') | ||||
|     c.bind(',ef', 'spawn firefox {url}') | ||||
|     c.bind(',eF', 'hint links spawn firefox {hint-url}') | ||||
|     c.bind(',es', 'spawn xdg-open steam://openurl/{url}') | ||||
| 
 | ||||
|     c.bind(',j',  'spawn --userscript format_json dracula') | ||||
| 
 | ||||
|     c.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}') | ||||
|     c.bind(',rr', 'open {url:scheme}://unddit.com{url:path}{url:query}') | ||||
|     c.bind(',rt', 'open {url:scheme}://teddit.net{url:path}{url:query}') | ||||
|     c.bind(',s', 'spawn xdg-open steam://openurl/{url}') | ||||
| 
 | ||||
|     gpg_key = '723B78C0BF8D8C721D2C4EEF41E544A54E2533B2' | ||||
| 
 | ||||
|  | @ -24,20 +22,23 @@ def init(c): | |||
|     c.bind(',Po', 'spawn --userscript qutebrowser-keepassxc --only-otp --key ' + gpg_key, mode='normal') | ||||
|     c.bind(',Pp', 'spawn --userscript qutebrowser-keepassxc --autotype --key ' + gpg_key, mode='normal') | ||||
| 
 | ||||
|     c.unbind('M') | ||||
|     c.bind('M', 'spawn --userscript qutebrowser-linkwarden', mode='normal') | ||||
| 
 | ||||
|     c.bind(',q', 'spawn --userscript qr {url}') | ||||
|     c.bind(',Q', 'hint links spawn --userscript qr {hint-url}') | ||||
| 
 | ||||
|     # output | ||||
|     c.bind(',oq', 'spawn --userscript qr {url}') | ||||
|     c.bind(',oQ', 'hint links spawn --userscript qr {hint-url}') | ||||
|     c.bind(',oj',  'spawn --userscript format_json dracula') | ||||
|     # cookies | ||||
|     c.bind(',cd', 'jseval document.cookie = "XDEBUG_SESSION=phpstorm; expires=Fri, 01 Jan 9999 00:00:00 GMT; path=/"') | ||||
|     # query | ||||
|     c.bind(',qd', 'jseval let sp = new URLSearchParams(window.location.search); sp.append("filter-source", "1"); sp.append("filter-source", "2"); window.location.search = sp.toString();') | ||||
| 
 | ||||
|     c.bind('<Alt-9>', 'tab-focus 9') | ||||
| 
 | ||||
|     c.bind('<Ctrl-Tab>', 'tab-next') | ||||
|     c.bind('<Ctrl-Shift-Tab>', 'tab-prev') | ||||
| 
 | ||||
|     c.unbind('M') | ||||
|     c.bind('M', 'spawn --userscript qutebrowser-linkwarden', mode='normal') | ||||
| 
 | ||||
|     try: | ||||
|         import unalix | ||||
|         c.unbind('yy') | ||||
|  |  | |||
|  | @ -1,5 +0,0 @@ | |||
| [Unit] | ||||
| Description=Current graphical user session | ||||
| Documentation=man:systemd.special(7) | ||||
| RefuseManualStart=no | ||||
| StopWhenUnneeded=no | ||||
|  | @ -1,6 +0,0 @@ | |||
| [Unit] | ||||
| Description=Autostart several tools and services | ||||
| 
 | ||||
| [Service] | ||||
| KillMode=process | ||||
| ExecStart=/bin/sh -c ". $HOME/.profile && autostart-manage exec '%i'" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue