Parcourir la source

Add tridactylrc

main
Ashton Charbonneau il y a 1 mois
Parent
révision
a8a1a01fce
2 fichiers modifiés avec 171 ajouts et 23 suppressions
  1. 27
    23
      README.md
  2. 144
    0
      tridactylrc

+ 27
- 23
README.md Voir le fichier

@@ -7,22 +7,12 @@ Profile configuration that can be set up directly within profile folders. Config
7 7
 1. Change browser theme at `about:addons#themes`
8 8
 2. Set up Firefox sync at `about:preferences#sync`
9 9
 3. Install and configure shared extensions
10
-	- [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
11
-		- **Import from Firefox Sync**
12
-		- `Enable cloud storage support` = `true`
13
-		- `Custom filters` =
14
-			- <https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt>
15
-			- <https://git.ashtonc.ca/ashton/ubo-filters/raw/branch/main/ubo-filters.txt>
10
+	- [Bypass Paywalls Clean](https://github.com/bpc-clone/bypass-paywalls-firefox-clean)
11
+		- `Opt-in` = `enable`
16 12
 	- [Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers/)
17 13
 		- Default = `[ "Work (Blue/Circle)" ]`
18
-		- Work = `[ "Personal (Green/Circle)" ]`
19
-	- [Temporary Containers](https://addons.mozilla.org/firefox/addon/temporary-containers/)
20
-		- **Import from Firefox Sync**
21
-		- `Container Name Prefix` = `T`
22
-		- `Container Number` = `Reuse available numbers`
23
-		- `Context Menu` = `false`
24
-		- `Keyboard shorcuts` = `[ "Alt+C", "Alt+X", "Alt+O" ]`
25
-		- Add shortcut to toolbar
14
+		- Work = `[ "Personal (Turquoise/Circle)" ]`
15
+		- `Keyboard shortcuts` = `Ctrl+Shift+1`
26 16
 	- [Hover Zoom+](https://addons.mozilla.org/firefox/addon/hover-zoom-plus/)
27 17
 		- `Use prev/next action keys (or mousewheel) to change video position by` = `4`
28 18
 		- `Show timestamp on videos` = `true`
@@ -33,27 +23,41 @@ Profile configuration that can be set up directly within profile folders. Config
33 23
 		- `Action keys` = `[ "Close", "View previous", "View next" ]`
34 24
 		- `Add viewed pictures to the browser's history` = `true`
35 25
 		- `Allow rewrite of headers for HTTP(S) request or response` = `true`
26
+	- [Temporary Containers](https://addons.mozilla.org/firefox/addon/temporary-containers/)
27
+		- **Import from Firefox Sync**
28
+		- `Container Name Prefix` = `T`
29
+		- `Container Number` = `Reuse available numbers`
30
+		- `Context Menu` = `false`
31
+		- `Keyboard shortcuts`
32
+			- Open new tab in new temp container = `Ctrl+Shift+2`
33
+			- Open new tab in current container = `Ctrl+Alt+t`
34
+			- Open new no container tab = `Ctrl+Shift+3`
35
+			- Open current tab in new temp container tab = `Ctrl+Alt+c`
36 36
 	- [Tridactyl](https://addons.mozilla.org/firefox/addon/tridactyl-vim/)
37
-	- [Bypass Paywalls Clean](https://github.com/bpc-clone/bypass-paywalls-firefox-clean)
38
-		- `Opt-in` = `enable`
37
+	- [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
38
+		- **Import from Firefox Sync**
39
+		- `Enable cloud storage support` = `true`
40
+		- `Custom filters` =
41
+			- <https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt>
42
+			- <https://git.ashtonc.ca/ashton/ubo-filters/raw/branch/main/ubo-filters.txt>
43
+		- `Keyboard shortcuts` = `[ "Ctrl+Alt+u" ]`
44
+		- Add shortcut to toolbar
39 45
 4. Install and configure additional extensions
40
-	- [Sponsorblock](https://addons.mozilla.org/firefox/addon/sponsorblock/)
41 46
 	- [DeArrow](https://addons.mozilla.org/firefox/addon/dearrow/)
42
-		- `"3rdparty"."Extensions"."[email protected]"."licenseKey" = "$key"`
43
-	- [Torrent Control](https://addons.mozilla.org/en-CA/firefox/addon/torrent-control/)
44
-	- [Reddit Enhancement Suite](https://addons.mozilla.org/firefox/addon/reddit-enhancement-suite/)
47
+		- `License key` = ...
45 48
 	- [KeePassXC-Browser](https://addons.mozilla.org/firefox/addon/keepassxc-browser/)
49
+	- [Reddit Enhancement Suite](https://addons.mozilla.org/firefox/addon/reddit-enhancement-suite/)
50
+	- [Sponsorblock](https://addons.mozilla.org/firefox/addon/sponsorblock/)
51
+	- [Torrent Control](https://addons.mozilla.org/en-CA/firefox/addon/torrent-control/)
46 52
 
47 53
 ## To do
48 54
 
49 55
 - Add `policies.json` file to this repo
50
-- Move from [Vimium C](https://github.com/gdh1995/vimium-c) to [Tridactyl](https://github.com/tridactyl/tridactyl) and set up `.tridactylrc`
51 56
 - Native messaging integration
52 57
 	- Play videos in mpv via hotkey
53 58
 	- Shortcut for external text editor
54 59
 	- Control browser instance via devtools protocol (playwright)
55
-- Disable and reuse reserved keyboard shortcuts (probably requires a patch)
56
-- Enable `ctrl+[1-9]` shortcuts on Linux
60
+- Disable and reuse reserved keyboard shortcuts (requires a patch)
57 61
 - Review quick navigation shortcuts
58 62
 	- Pages: specific pages, previously closed, last visited
59 63
 	- Tabs: move, pop out, close, duplicate

+ 144
- 0
tridactylrc Voir le fichier

@@ -0,0 +1,144 @@
1
+" Reset
2
+sanitise tridactyllocal tridactylsync
3
+sanitise downloads
4
+
5
+" UI
6
+set newtab about:blank
7
+set modeindicator false
8
+set smoothscroll true
9
+
10
+" Help
11
+bind <F1> viewconfig nmaps
12
+
13
+" Search
14
+unbind <C-f>
15
+
16
+" Bookmark
17
+unbind a
18
+bind A current_url bmark
19
+
20
+" Zoom
21
+unbind zi
22
+unbind zI
23
+unbind zo
24
+unbind zO
25
+unbind zm
26
+unbind zM
27
+unbind zr
28
+unbind zR
29
+bind zz zoom +0.1 true
30
+bind ZZ zoom -0.1 true
31
+bind zx zoom 1
32
+
33
+" Open or close tab
34
+unbind x
35
+unbind D
36
+bind xx tabclose
37
+bind X undo tab
38
+
39
+" Go to tab
40
+bind <C-1> tab 1
41
+bind <C-2> tab 2
42
+bind <C-3> tab 3
43
+bind <C-4> tab 4
44
+bind <C-5> tab 5
45
+bind <C-6> tab 6
46
+bind <C-7> tab 7
47
+bind <C-8> tab 8
48
+bind <C-9> tab 9
49
+bind <A-1> tab 1
50
+bind <A-2> tab 2
51
+bind <A-3> tab 3
52
+bind <A-4> tab 4
53
+bind <A-5> tab 5
54
+bind <A-6> tab 6
55
+bind <A-7> tab 7
56
+bind <A-8> tab 8
57
+bind <A-9> tab 9
58
+
59
+" Move tab
60
+unbind >>
61
+unbind <<
62
+bind > tabmove +1
63
+bind < tabmove -1
64
+
65
+" Hints
66
+set hintchars qwerasdzxcv
67
+
68
+" Scroll
69
+bind s scrollline 2
70
+bind w scrollline -2
71
+bind j scrollline 4
72
+bind k scrollline -4
73
+bind d scrollpage 0.4
74
+bind e scrollpage -0.4
75
+
76
+" Sites
77
+bindurl https://www.reddit.com <A-f> urlmodify -t www old
78
+
79
+" Hints
80
+unbind gF
81
+unbind ;i
82
+unbind ;b
83
+unbind ;o
84
+unbind ;I
85
+unbind ;k
86
+unbind ;K
87
+unbind ;y
88
+unbind ;Y
89
+unbind ;p
90
+unbind ;h
91
+unbind v
92
+unbind ;P
93
+unbind ;r
94
+unbind ;s
95
+unbind ;S
96
+unbind ;a
97
+unbind ;A
98
+unbind ;;
99
+unbind ;#
100
+unbind ;v
101
+unbind ;V
102
+unbind ;w
103
+unbind ;t
104
+unbind ;O
105
+unbind ;W
106
+unbind ;T
107
+unbind ;d
108
+unbind ;gd
109
+unbind ;z
110
+unbind ;m
111
+unbind ;M
112
+unbind ;gi
113
+unbind ;gI
114
+unbind ;gk
115
+unbind ;gy
116
+unbind ;gp
117
+unbind ;gP
118
+unbind ;gr
119
+unbind ;gs
120
+unbind ;gS
121
+unbind ;ga
122
+unbind ;gA
123
+unbind ;g;
124
+unbind ;g#
125
+unbind ;gv
126
+unbind ;gw
127
+unbind ;gb
128
+unbind ;gF
129
+unbind ;gf
130
+bind f hint
131
+bind F hint -t
132
+bind i hint -cF img i => tri.excmds.yankimage(tri.urlutils.getAbsoluteURL(i.src))
133
+
134
+" Misc
135
+unbind $
136
+unbind ^
137
+unbind <C-a>
138
+unbind <C-x>
139
+unbind <A-m>
140
+unbind <C-e>
141
+unbind <C-y>
142
+unbind <AS-ArrowUp><AS-ArrowUp><AS-ArrowDown><AS-ArrowDown><AS-ArrowLeft><AS-ArrowRight><AS-ArrowLeft><AS-ArrowRight>ba
143
+unbind g!
144
+unbind g?

Chargement…
Annuler
Enregistrer