Compare commits

...

6 Commits

Author SHA1 Message Date
Yushun Cheng cbebd28676 [fontconfig] Update style; add spacing config for monospace. 2022-08-11 18:50:25 +08:00
Yushun Cheng a4109b688b [rime] Remove full-shape space to avoid mis-type. 2022-08-11 18:45:47 +08:00
Yushun Cheng ac0ddadd08 [emacs] Add a new emacsclient desktop entry. 2022-08-11 17:59:45 +08:00
Yushun Cheng 8ac395cfd9 [emacs] Update license for tomorrow theme. 2022-08-11 14:26:47 +08:00
Yushun Cheng 9c37dba8ff [gnome-clocks] Add a wrapper. 2022-08-08 10:54:17 +08:00
Yushun Cheng 8abb0b352d [mupdf] Add wrapper and desktop entry. 2022-08-06 11:35:24 +08:00
9 changed files with 97 additions and 13 deletions

View File

@ -10,6 +10,14 @@
;;;; The above copyright notice and this permission notice shall be included in
;;;; all copies or substantial portions of the Software.
;;;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;;;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;;;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
;;;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;;;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
;;;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;;;; DEALINGS IN THE SOFTWARE.
;;; color-theme-tomorrow.el --- GNU Emacs port of the Tomorrow Theme.
;;; Commentary:

View File

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Default settings for every font. -->
<match target="font">
<edit mode="assign" name="antialias">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<edit mode="assign" name="rgba">
<edit name="rgba" mode="assign">
<const>none</const>
</edit>
<edit mode="assign" name="autohint">
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
</match>
@ -24,7 +24,7 @@
<test name="family">
<string>OpenMoji</string>
</test>
<edit mode="assign" name="style">
<edit name="style" mode="assign">
<string>Black</string>
</edit>
</match>
@ -32,7 +32,7 @@
<test name="family">
<string>Noto Sans</string>
</test>
<edit mode="assign" name="style">
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
@ -40,7 +40,7 @@
<test name="family">
<string>Noto Sans CJK SC</string>
</test>
<edit mode="assign" name="style">
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
@ -48,10 +48,18 @@
<test name="family">
<string>Noto Sans CJK TC</string>
</test>
<edit mode="assign" name="style">
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="spacing" mode="assign">
<int>100</int>
</edit>
</match>
<!-- Alias settings. -->
<alias>
<family>serif</family>

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ $(echo "${DPI_SCALE} >= 1.5" | bc) = '1' ]; then
exec env GDK_BACKEND=x11 GDK_SCALE=2 gnome-clocks
else
exec gnome-clocks
fi

View File

@ -0,0 +1,3 @@
#!/usr/bin/sh
mupdf -Y "${DPI_SCALE}" "$@"

View File

@ -0,0 +1,22 @@
[Desktop Entry]
Name=Emacs (Client)
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacsclient -nc %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
StartupNotify=true
StartupWMClass=Emacs
Keywords=emacsclient;
Actions=new-window;new-instance;
[Desktop Action new-window]
Name=New Window
Exec=emacsclient -nc %F
[Desktop Action new-instance]
Name=New Instance
Exec=emacs %F

View File

@ -0,0 +1,16 @@
[Desktop Entry]
Name=MuPDF
GenericName=PDF file viewer
Exec=mupdf-wrapper %f
TryExec=mupdf
Icon=mupdf
Terminal=false
Type=Application
MimeType=application/epub+zip;application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;image/jpeg;image/pjpeg;image/png;image/tiff;image/x-tiff
Categories=Viewer;Graphics;
Actions=View
NoDisplay=true
[Desktop Action View]
Name=View with mupdf
Exec=mupdf-wrapper %f

View File

@ -0,0 +1,22 @@
[Desktop Entry]
Name[zh_CN]=时钟
Name=Clocks
GenericName[zh_CN]=时钟
GenericName=Clocks
X-GNOME-FullName=GNOME Clocks
Comment[zh_CN]=时钟可用来查看世界时间,外加闹钟、秒表和定时功能
Comment=Clocks for world times, plus alarms, stopwatch and a timer
Keywords[zh_CN]=time;timer;alarm;world clock;stopwatch;time zone;钟;表;定时;计时;时间;时区;
Keywords=time;timer;alarm;world clock;stopwatch;time zone;
TryExec=gnome-clocks
Exec=gnome-clocks-wrapper
Icon=org.gnome.clocks
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;Clock;
StartupNotify=true
# DBusActivatable=true
X-GNOME-UsesNotifications=true
X-Geoclue-Reason[zh_CN]=允许为您的时区显示世界时钟。
X-Geoclue-Reason=Allows world clocks to be displayed for your time zone.
X-Purism-FormFactor=Workstation;Mobile;

View File

@ -6,7 +6,6 @@ patch:
{{- end }}
"switches/@0/states": ["中文", "西文"]
"switches/@1/reset": 0
"punctuator/half_shape/ ": [" ", " "]
{{- if eq .chezmoi.os "windows" }}
# Font.
"style/font_face": "Microsoft JhengHei"

View File

@ -6,7 +6,6 @@ patch:
{{- end }}
"switches/@0/states": ["中文", "英文"]
"switches/@1/reset": 0
"punctuator/half_shape/ ": [" ", " "]
{{- if eq .chezmoi.os "windows" }}
# Font.
"style/font_face": "微软雅黑"