-
Notifications
You must be signed in to change notification settings - Fork 1
/
2024-06-24-linux-use-tips.html
169 lines (169 loc) · 6.6 KB
/
2024-06-24-linux-use-tips.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="This post records some linux use tips">
<link rel="alternate"
type="application/rss+xml"
href="https://chenyo.me/rss.xml"
title="RSS feed for https://chenyo.me">
<title>Linux use tips</title>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'],['\\(','\\)']]}});
</script>
<meta name="author" content="chenyo">
<meta name="referrer" content="no-referrer">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/style.css" type="text/css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"/>
<link rel="favicon" type="image/x-icon" href="favicon.ico">
<script src="assets/search.js"></script></head>
<body>
<div id="preamble" class="status">
<header>
<h1><a href="https://chenyo.me">Chenyo's org-static-blog</a></h1>
<nav>
<a href="https://chenyo.me">Home</a>
<a href="archive.html">Archive</a>
<a href="tags.html">Tags</a>
<div id="search-container">
<input type="text" id="search-input" placeholder="Search anywhere...">
<i class="fas fa-search search-icon"></i>
</div>
</nav>
</header></div>
<div id="content">
<div class="post-date">24 Jun 2024</div><h1 class="post-title"><a href="https://chenyo.me/2024-06-24-linux-use-tips.html">Linux use tips</a></h1>
<nav id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org37fc08e">1. i3</a>
<ul>
<li><a href="#org4045976">1.1. Move specific workspaces between different monitors (ref)</a></li>
</ul>
</li>
<li><a href="#orgea6949f">2. Org</a>
<ul>
<li><a href="#orgb3984b6">2.1. Format code blocks</a></li>
</ul>
</li>
<li><a href="#orgb39b55f">3. Emacs</a>
<ul>
<li><a href="#org86284de">3.1. Prefix argument</a></li>
<li><a href="#org6be7689">3.2. Help functions</a></li>
</ul>
</li>
<li><a href="#org2c7ccba">4. Vim</a>
<ul>
<li><a href="#org807aae2">4.1. Delete a word backwards</a></li>
</ul>
</li>
<li><a href="#org2426f93">5. Firefox</a>
<ul>
<li><a href="#orgebec975">5.1. Cache bypass refresh</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div id="outline-container-org37fc08e" class="outline-2">
<h2 id="org37fc08e"><span class="section-number-2">1.</span> i3</h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-org4045976" class="outline-3">
<h3 id="org4045976"><span class="section-number-3">1.1.</span> Move specific workspaces between different monitors <a href="https://i3wm.org/docs/user-contributed/swapping-workspaces.html">(ref)</a></h3>
<div class="outline-text-3" id="text-1-1">
<ol class="org-ol">
<li>Adjust the monitor relative positions.</li>
<li>Use <code class="src src-bash">i3-msg -- move workspace to output right</code> to move the <b><b>current</b></b> workspace to the monitor on the right</li>
</ol>
</div>
</div>
</div>
<div id="outline-container-orgea6949f" class="outline-2">
<h2 id="orgea6949f"><span class="section-number-2">2.</span> Org</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-orgb3984b6" class="outline-3">
<h3 id="orgb3984b6"><span class="section-number-3">2.1.</span> Format code blocks</h3>
<div class="outline-text-3" id="text-2-1">
<ul class="org-ul">
<li>Use the shortcut <code>< s <TAB></code> to create a code block.</li>
<li>Use <code>C-c '</code> to enter the code environment to use the language major mode.</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-orgb39b55f" class="outline-2">
<h2 id="orgb39b55f"><span class="section-number-2">3.</span> Emacs</h2>
<div class="outline-text-2" id="text-3">
</div>
<div id="outline-container-org86284de" class="outline-3">
<h3 id="org86284de"><span class="section-number-3">3.1.</span> Prefix argument</h3>
<div class="outline-text-3" id="text-3-1">
<ul class="org-ul">
<li>When the function includes <code>(interactive "P")</code>, it means one can add a prefix argument <code>C-u 1</code> (or any integer) to trigger some effect.</li>
</ul>
</div>
</div>
<div id="outline-container-org6be7689" class="outline-3">
<h3 id="org6be7689"><span class="section-number-3">3.2.</span> Help functions</h3>
<div class="outline-text-3" id="text-3-2">
<ul class="org-ul">
<li><code>Ctrl-h K</code> get the function name given a shortcut</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-org2c7ccba" class="outline-2">
<h2 id="org2c7ccba"><span class="section-number-2">4.</span> Vim</h2>
<div class="outline-text-2" id="text-4">
</div>
<div id="outline-container-org807aae2" class="outline-3">
<h3 id="org807aae2"><span class="section-number-3">4.1.</span> Delete a word backwards</h3>
<div class="outline-text-3" id="text-4-1">
<ul class="org-ul">
<li><code>diw</code> or <code>daw</code></li>
</ul>
</div>
</div>
</div>
<div id="outline-container-org2426f93" class="outline-2">
<h2 id="org2426f93"><span class="section-number-2">5.</span> Firefox</h2>
<div class="outline-text-2" id="text-5">
</div>
<div id="outline-container-orgebec975" class="outline-3">
<h3 id="orgebec975"><span class="section-number-3">5.1.</span> Cache bypass refresh</h3>
<div class="outline-text-3" id="text-5-1">
<ul class="org-ul">
<li><code>Ctrl+Shift+R</code></li>
</ul>
</div>
</div>
</div>
<div class="taglist"><a href="https://chenyo.me/tags.html">Tags</a>: <a href="https://chenyo.me/tag-tool.html">tool</a> <a href="https://chenyo.me/tag-linux.html">linux</a> <a href="https://chenyo.me/tag-i3.html">i3</a> <a href="https://chenyo.me/tag-arch.html">arch</a> </div></div>
<div id="postamble" class="status"><div id="search-results"></div>
<footer>
<div class="footer-content">
<div class="footer-left">
<p>© 2024 chenyo. Some rights reserved.</p>
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">
<img alt="Creative Commons License" style="border-width: 0"
src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png"/>
</a>
</div>
<div class="social-links">
<a href="https://t.me/chenyo17" target="_blank" rel="noopener noreferrer">
<i class="fab fa-telegram"></i>
</a>
<a href="https://github.com/chenyo-17" target="_blank" rel="noopener noreferrer">
<i class="fab fa-github"></i>
</a>
</div>
</footer></div>
</body>
</html>