Compare commits

...

23 Commits

Author SHA1 Message Date
Yushun Cheng 77b88434d8 [pipewire] Add microphone configuration for HP EliteBook. 2022-07-24 08:30:47 +08:00
Yushun Cheng f1424c6a51 [kde] Add HiDPI setting for openshot. 2022-07-15 23:29:25 +08:00
Yushun Cheng 0b60685c78 [kde] Add HiDPI support for Evince. 2022-07-15 20:44:43 +08:00
Yushun Cheng fb8bfd20b8 [kde] Further improve HiDPI settings for various applications. 2022-07-15 12:23:05 +08:00
Yushun Cheng eb4a524257 [fontconfig] Modify fonts.conf according to KDE styling. 2022-07-15 11:51:06 +08:00
Yushun Cheng 87d8a2ee33 [sabaki] Remove settings.json. 2022-07-15 11:40:28 +08:00
Yushun Cheng e891c264f7 [kde] Further improve HiDPI settings. 2022-07-14 20:12:24 +08:00
Yushun Cheng ad4ab72f4f [kde] Fix HiDPI setting. 2022-07-14 17:13:41 +08:00
Yushun Cheng 43783bb2b6 [kde][gtk3][gtk4] Fix GTK configs for KDE. 2022-07-14 08:31:40 +08:00
Yushun Cheng cb9995b150 [kde] Add kde-config.toml. 2022-07-14 08:27:49 +08:00
Yushun Cheng 943d400855 [nvim] Remove ibus stuff. 2022-07-13 17:07:50 +08:00
Yushun Cheng 96ea57b614 [redshift] Disable redshift on KDE. 2022-07-13 16:51:32 +08:00
Yushun Cheng b7839ced78 [plasma][fcitx5] Use fcitx5 as default input method on KDE. 2022-07-13 16:51:02 +08:00
Yushun Cheng 8d349e466d [plasma] Next version of profile.sh. 2022-07-13 16:49:54 +08:00
Yushun Cheng 0e6fd41ab7 [sh] Add proxy.sh. 2022-07-13 16:49:17 +08:00
Yushun Cheng 9d80b638be [zsh][sh] Move ZDOTDIR to profile.d. 2022-07-13 11:00:52 +08:00
Yushun Cheng 975abc97df [sh] Move options into individual profiles. 2022-07-13 10:56:10 +08:00
Yushun Cheng 857d0c5562 [zsh] Edit .zshrc a bit. 2022-07-13 10:44:56 +08:00
Yushun Cheng 99924728ea [sh] Replace echo with printf. 2022-07-13 10:42:58 +08:00
Yushun Cheng e2a5bfa267 [sh] Use printf instead of echo in chezmoi.sh. 2022-07-13 10:10:50 +08:00
Yushun Cheng ab7fe7f322 [gtk4] Add settings.ini. 2022-07-12 21:41:11 +08:00
Yushun Cheng 2322feb77b [plasma] Add profile.sh for plasma. 2022-07-12 10:07:22 +08:00
Yushun Cheng 1323a1bcbb [sh] Edit profile.sh a bit. 2022-07-12 10:07:01 +08:00
34 changed files with 374 additions and 339 deletions

View File

@ -155,7 +155,7 @@ font:
# Point size
{{ if eq .options.DEorWM "KDE" -}}
size: 10
size: 15
{{- else -}}
size: 9.5
{{- end }}

View File

@ -35,4 +35,6 @@ X-GNOME-Autostart-Notify=false
X-KDE-autostart-after=panel
X-KDE-StartupNotify=false
{{ if (not (eq .options.DEorWM "KDE")) -}}
Hidden=true
{{- end }}

View File

@ -81,6 +81,6 @@ Icon=redshift
Type=Application
Categories=Utility;
NoDisplay=true
{{ if eq .options.DEorWM "gnome" -}}
{{ if (or (eq .options.DEorWM "gnome") (eq .options.DEorWM "KDE")) -}}
Hidden=true
{{- end }}

View File

@ -1,101 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Default settings for every fonts.
-->
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<edit name="rgba" mode="assign">
<const>none</const>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcdnone</const>
</edit>
<edit name="dpi" mode="assign">
<double>102</double>
</edit>
</match>
<!--
Default settings for some fonts.
-->
<match>
<test name="family">
<string>OpenMoji</string>
</test>
<edit name="style" mode="assign">
<string>Black</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans</string>
</test>
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans CJK SC</string>
</test>
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans CJK TC</string>
</test>
<edit name="style" mode="assign">
<string>Regular</string>
</edit>
</match>
<!--
Aliases settings.
-->
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Color Emoji</family>
<family>OpenMoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>Noto Color Emoji</family>
<family>OpenMoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Source Code Pro</family>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>OpenMoji</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<!-- Default settings for every font. -->
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
<edit mode="assign" name="rgba">
<const>none</const>
</edit>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<!-- Default settings for some fonts. -->
<match>
<test name="family">
<string>OpenMoji</string>
</test>
<edit mode="assign" name="style">
<string>Black</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans</string>
</test>
<edit mode="assign" name="style">
<string>Regular</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans CJK SC</string>
</test>
<edit mode="assign" name="style">
<string>Regular</string>
</edit>
</match>
<match>
<test name="family">
<string>Noto Sans CJK TC</string>
</test>
<edit mode="assign" name="style">
<string>Regular</string>
</edit>
</match>
<!-- Alias settings. -->
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Color Emoji</family>
<family>OpenMoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>Noto Color Emoji</family>
<family>OpenMoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Source Code Pro</family>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>OpenMoji</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
</fontconfig>

View File

@ -4,13 +4,13 @@
gtk-application-prefer-dark-theme=true
gtk-button-images=true
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=24
gtk-cursor-theme-size=36
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-enable-event-sounds=false
gtk-enable-input-feedback-sounds=false
gtk-font-name=Noto Sans, 10
gtk-icon-theme-name=breeze
gtk-font-name=Sans Serif, 10
gtk-icon-theme-name=breeze-dark
gtk-menu-images=true
gtk-modules=gail:atk-bridge:colorreload-gtk-module
gtk-primary-button-warps-slider=false

View File

@ -0,0 +1,16 @@
{{ if eq .options.DEorWM "KDE" -}}
[Settings]
gtk-application-prefer-dark-theme=true
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=36
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Sans Serif, 10
gtk-icon-theme-name=breeze-dark
gtk-primary-button-warps-slider=false
{{- end }}
{{/*
# vim: syntax=dosini
*/}}

View File

@ -0,0 +1,45 @@
[kcminputrc]
[kcminputrc.Keyboard]
RepeatDelay = 300
RepeatRate = 50
[kcminputrc.Libinput.1102.4636.'ALP0019:00 044E:121C Touchpad']
NaturalScroll = true
ScrollFactor = 0.3
TapAndDrag = false
TapToClick = true
[kdeglobals]
[kdeglobals.General]
fixed = 'Monospace,15,-1,5,50,0,0,0,0,0'
font = 'Sans Serif,15,-1,5,50,0,0,0,0,0'
menuFont = 'Sans Serif,15,-1,5,50,0,0,0,0,0'
smallestReadableFont = 'Sans Serif,12,-1,5,50,0,0,0,0,0'
toolBarFont = 'Sans Serif,15,-1,5,50,0,0,0,0,0'
[kglobalshortcutsrc]
[kglobalshortcutsrc.ksmserver]
'Lock Session' = "Screensaver\tMeta+Shift+L,Meta+L\tScreensaver,Lock Session"
[kglobalshortcutsrc.kwin]
'Walk Through Windows' = 'Meta+Tab,Alt+Tab,Walk Through Windows'
'Walk Through Windows (Reverse)' = 'Meta+Shift+Backtab,Alt+Shift+Backtab,Walk Through Windows (Reverse)'
'Window Close' = 'Meta+C,Alt+F4,Close Window'
'Window Maximize' = 'Meta+K,Meta+PgUp,Maximize Window'
'Window Minimize' = 'Meta+J,Meta+PgDown,Minimize Window'
'Window Quick Tile Left' = 'Meta+H,Meta+Left,Quick Tile Window to the Left'
'Window Quick Tile Right' = 'Meta+L,Meta+Right,Quick Tile Window to the Right'
[plasma-localerc]
[plasma-localerc.Formats]
LC_MEASUREMENT = 'C'
LC_TIME = 'C'
[kwinrc]
[kwinrc.ModifierOnlyShortcuts]
Meta = 'org.kde.krunner,/App,,toggleDisplay'

View File

@ -3,31 +3,31 @@ require('plugins')
require('lang_conf')
-- IM
im = 'xkb:us::eng'
-- im = 'xkb:us::eng'
function enter_insert()
local handle = io.popen('ibus engine '..im)
handle:read('*a')
handle:close()
end
-- function enter_insert()
-- local handle = io.popen('ibus engine '..im)
-- handle:read('*a')
-- handle:close()
-- end
function exit_insert()
local handle = io.popen('ibus engine')
im = handle:read('*a')
handle:close()
-- function exit_insert()
-- local handle = io.popen('ibus engine')
-- im = handle:read('*a')
-- handle:close()
handle = io.popen('ibus engine xkb:us::eng')
handle:read('*a')
handle:close()
end
-- handle = io.popen('ibus engine xkb:us::eng')
-- handle:read('*a')
-- handle:close()
-- end
vim.cmd('nnoremap i :lua enter_insert()<CR>i')
vim.cmd('nnoremap a :lua enter_insert()<CR>a')
vim.cmd('nnoremap o :lua enter_insert()<CR>o')
vim.cmd('nnoremap I :lua enter_insert()<CR>I')
vim.cmd('nnoremap A :lua enter_insert()<CR>A')
vim.cmd('nnoremap O :lua enter_insert()<CR>O')
vim.cmd('inoremap <ESC> <ESC>:lua exit_insert()<CR>')
-- vim.cmd('nnoremap i :lua enter_insert()<CR>i')
-- vim.cmd('nnoremap a :lua enter_insert()<CR>a')
-- vim.cmd('nnoremap o :lua enter_insert()<CR>o')
-- vim.cmd('nnoremap I :lua enter_insert()<CR>I')
-- vim.cmd('nnoremap A :lua enter_insert()<CR>A')
-- vim.cmd('nnoremap O :lua enter_insert()<CR>O')
-- vim.cmd('inoremap <ESC> <ESC>:lua exit_insert()<CR>')
-- Control
vim.opt.backupcopy = 'yes'

View File

@ -0,0 +1,13 @@
{{ if eq .options.machine "HP EliteBook 755 G5" -}}
context.objects = [
{ factory = adapter
args = {
factory.name = api.alsa.pcm.source
node.name = "microphone"
node.description = "HP Microphone"
media.class = "Audio/Source"
api.alsa.path = "hw:1,0"
}
}
]
{{ end -}}

View File

@ -0,0 +1,42 @@
# XDG directories
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_CACHE_HOME="${HOME}/.cache"
# PATH
export PATH="${HOME}/.local/bin/control:${HOME}/.local/bin/scripts:${HOME}/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
# From profile.d
export USE_FISH=1
export GNUPGHOME="${XDG_CONFIG_HOME}/gnupg"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export EDITOR=nvim
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
# Proxies
export http_proxy='http://127.0.0.1:7890'
export https_proxy="${http_proxy}"
export ftp_proxy="${http_proxy}"
export rsync_proxy="${http_proxy}"
# From xdgrc.d
export TERMINAL=alacritty
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export QT_FONT_DPI=144
# Firefox
export BROWSER=firefox
export MOZ_ENABLE_WAYLAND=1
# Fcitx5
export INPUT_METHOD='fcitx5'
export XMODIFIERS='@im=fcitx5'
export GTK_IM_MODULE='fcitx5'
export QT_IM_MODULE='fcitx5'
export SDL_IM_MODULE='fcitx5'
export GLFW_IM_MODULE='fcitx5'
# chezmoi
export CHEZMOI_OS='linux'
export CHEZMOI_DEWM='KDE'

View File

@ -1,192 +0,0 @@
{
"app.always_show_result": false,
"app.enable_hardware_acceleration": true,
"app.hide_busy_delay": 200,
"app.lang": "zh-Hans",
"app.loadgame_delay": 100,
"app.startup_check_updates": true,
"app.startup_check_updates_delay": 3000,
"app.zoom_factor": 1,
"autoplay.max_sec_per_move": 99,
"autoplay.sec_per_move": 1,
"autoscroll.delay": 400,
"autoscroll.diff": 10,
"autoscroll.max_interval": 200,
"autoscroll.min_interval": 50,
"board.analysis_interval": 50,
"board.analysis_type": "scoreLead",
"board.show_analysis": true,
"board.variation_replay_interval": 500,
"board.variation_replay_mode": "move_by_move",
"cleanmarkup.annotations": false,
"cleanmarkup.arrow": true,
"cleanmarkup.circle": true,
"cleanmarkup.comments": false,
"cleanmarkup.cross": true,
"cleanmarkup.hotspots": false,
"cleanmarkup.label": true,
"cleanmarkup.line": true,
"cleanmarkup.square": true,
"cleanmarkup.triangle": true,
"cleanmarkup.winrate": false,
"comments.commit_delay": 500,
"comments.show_move_interpretation": true,
"console.max_history_count": 1000,
"debug.dev_tools": false,
"edit.click_currentvertex_to_remove": true,
"edit.copy_variation_strip_props": [
"AP",
"CA",
"FF",
"GM",
"ST",
"SZ",
"KM",
"HA",
"AN",
"BR",
"BT",
"CP",
"DT",
"EV",
"GN",
"GC",
"ON",
"OT",
"PB",
"PC",
"PW",
"RE",
"RO",
"RU",
"SO",
"TM",
"US",
"WR",
"WT"
],
"edit.flatten_inherit_root_props": [
"BR",
"BT",
"DT",
"EV",
"GN",
"GC",
"PB",
"PW",
"RE",
"SO",
"SZ",
"WT",
"WR"
],
"edit.history_batch_interval": 500,
"edit.max_history_count": 1000,
"edit.show_removenode_warning": true,
"edit.show_removeothervariations_warning": true,
"engines.analyze_commands": [
"analyze",
"kata-analyze",
"lz-analyze"
],
"engines.gemove_analyze_commands": [
"genmove_analyze",
"kata-genmove_analyze",
"lz-genmove_analyze"
],
"engines.list": [
{
"name": "GNUGo",
"path": "gnugo",
"args": "--mode gtp"
},
{
"name": "KataGo",
"path": "katago",
"args": "gtp -model /home/cys/.config/KataGo/models/kata1-b40c256-s10382453504-d2531003754.bin.gz -config /home/cys/.config/KataGo/gtp.cfg",
"commands": "time_settings 0 1 1"
}
],
"file.show_reload_warning": true,
"find.delay": 100,
"game.default_board_size": "19:19",
"game.default_handicap": 0,
"game.default_komi": 7.5,
"game.goto_end_after_loading": false,
"game.navigation_analysis_delay": 500,
"game.navigation_sensitivity": 40,
"game.show_ko_warning": true,
"game.show_suicide_warning": true,
"gamechooser.show_delay": 100,
"gamechooser.thumbnail_size": 153,
"graph.delay": 100,
"graph.grid_size": 22,
"graph.node_size": 4,
"gtp.console_log_enabled": false,
"gtp.console_log_path": null,
"gtp.engine_quit_timeout": 3000,
"gtp.move_delay": 300,
"infooverlay.duration": 2000,
"score.estimator_iterations": 100,
"scoring.method": "territory",
"setting.overwrite.v0.19.1": [],
"setting.overwrite.v0.19.3": [],
"setting.overwrite.v0.30.0-beta": [],
"setting.overwrite.v0.33.0": [],
"setting.overwrite.v0.33.4": [],
"setting.overwrite.v0.41.0": [],
"setting.overwrite.v0.43.3_4": [],
"setting.overwrite.v0.50.1": [],
"sgf.comment_properties": [
"C",
"N",
"UC",
"GW",
"DM",
"GB",
"BM",
"TE",
"DO",
"IT"
],
"sgf.format_code": false,
"sound.capture_delay_max": 500,
"sound.capture_delay_min": 300,
"sound.enable": true,
"theme.current": null,
"theme.custom_background": null,
"theme.custom_blackstones": null,
"theme.custom_board": null,
"theme.custom_whitestones": null,
"view.animated_stone_placement": true,
"view.coordinates_type": "A1",
"view.fuzzy_stone_placement": true,
"view.leftsidebar_minwidth": 100,
"view.leftsidebar_width": 200,
"view.peerlist_height": 130,
"view.peerlist_minheight": 58,
"view.properties_height": 50,
"view.properties_minheight": 20,
"view.show_comments": false,
"view.show_coordinates": false,
"view.show_graph": true,
"view.show_leftsidebar": true,
"view.show_menubar": true,
"view.show_move_colorization": true,
"view.show_move_numbers": false,
"view.show_next_moves": true,
"view.show_siblings": true,
"view.show_winrategraph": true,
"view.sidebar_minwidth": 100,
"view.sidebar_width": 200,
"view.winrategraph_blunderthreshold": 5,
"view.winrategraph_height": 90,
"view.winrategraph_invert": false,
"view.winrategraph_maxheight": 250,
"view.winrategraph_minheight": 30,
"window.height": 715,
"window.maximized": false,
"window.minheight": 440,
"window.minwidth": 526,
"window.width": 1349
}

View File

@ -1,7 +1,7 @@
CHEZMOI_DATA=$(chezmoi -S ~/.local/share/chezmoi data --format=json)
export CHEZMOI_OS=$(echo -nE "$CHEZMOI_DATA" | jq -j '.chezmoi.os')
export CHEZMOI_MACHINE=$(echo -nE ${CHEZMOI_DATA} | jq -j '.options.machine')
export CHEZMOI_DEWM=$(echo -nE ${CHEZMOI_DATA} | jq -j '.options.DEorWM')
export CHEZMOI_OS=$(printf '%s' "${CHEZMOI_DATA}" | jq -j '.chezmoi.os')
export CHEZMOI_MACHINE=$(printf '%s' "${CHEZMOI_DATA}" | jq -j '.options.machine')
export CHEZMOI_DEWM=$(printf '%s' "${CHEZMOI_DATA}" | jq -j '.options.DEorWM')
unset -v CHEZMOI_DATA

View File

@ -0,0 +1 @@
export USE_FISH=1

View File

@ -0,0 +1,4 @@
export http_proxy='http://127.0.0.1:7890'
export https_proxy="${http_proxy}"
export ftp_proxy="${http_proxy}"
export rsync_proxy="${http_proxy}"

View File

@ -0,0 +1,5 @@
if [ "${CHEZMOI_OS}" = 'windows' ]; then
export EDITOR=vim
else
export EDITOR=nvim
fi

View File

@ -0,0 +1 @@
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"

View File

@ -6,7 +6,7 @@ _append_path() {
_var_name="$1"
_path="$2"
case $(eval 'echo' '-nE' '":${'${_var_name}'}:') in
case $(eval 'printf' "'%s'" '":${'${_var_name}'}:') in
*:"$_path":* )
;;
* )
@ -21,7 +21,7 @@ _insert_path() {
_var_name="$1"
_path="$2"
case $(eval 'echo' '-nE' '"${'${_var_name}'}"') in
case $(eval 'printf' "'%s'" '"${'${_var_name}'}"') in
'' )
eval ${_var_name}'="${_path}"'
;;
@ -101,16 +101,6 @@ insert_path "$HOME/.local/bin/control"
export PATH
# Options
export TERMINAL=alacritty
export BROWSER=firefox
export USE_FISH=1
if [ ${CHEZMOI_OS} = 'windows' ]; then
export EDITOR=vim
else
export EDITOR=nvim
fi
# Load profiles from profile.d.
if test -d "$SH_CONFIG_DIR/profile.d"; then
for profile in "$SH_CONFIG_DIR"/profile.d/*.sh; do

View File

@ -0,0 +1,3 @@
if test "${XDG_SESSION_TYPE}" != 'tty'; then
export TERMINAL=alacritty
fi

View File

@ -1,4 +1,7 @@
case ${XDG_SESSION_TYPE} in
'wayland' ) export MOZ_ENABLE_WAYLAND=1 ;;
* )
esac
if test "${XDG_SESSION_TYPE}" != 'tty'; then
export BROWSER=firefox
case ${XDG_SESSION_TYPE} in
'wayland' ) export MOZ_ENABLE_WAYLAND=1 ;;
* )
esac
fi

View File

@ -1,9 +1,6 @@
if ! test -n "$XDGRC_SH"; then
export XDGRC_SH=1
# Ensure XDG_CONFIG_HOME exists.
test -n "$XDG_CONFIG_HOME" || export XDG_CONFIG_HOME="$HOME/.config"
# Source profiles.
XDGRC_DIR=${XDG_CONFIG_HOME}'/xdgrc.d'
if test -d ${XDGRC_DIR}; then

View File

@ -1,3 +1,5 @@
#!/usr/bin/zsh
if [ -n "$USE_FISH" ]; then
exec fish
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env GDK_DPI_SCALE=1.5 /usr/bin/emacs "$@"
else
exec /usr/bin/emacs "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env GDK_DPI_SCALE=1.5 /usr/bin/evince "$@"
else
exec /usr/bin/evince "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env GDK_DPI_SCALE=1.5 /usr/lib/firefox/firefox "$@"
else
exec /usr/lib/firefox/firefox "$@"
fi

View File

@ -0,0 +1,8 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env GDK_DPI_SCALE=1.5 joplin-bin "$@"
else
exec joplin-bin "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env XDG_CURRENT_DESKTOP=gnome GDK_DPI_SCALE=1.5 /usr/bin/libreoffice "$@"
else
exec /usr/bin/libreoffice "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env QT_SCALE_FACTOR=1.5 QT_FONT_DPI=96 /usr/bin/obs "$@"
else
exec /usr/bin/obs "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env QT_SCALE_FACTOR=1.5 QT_FONT_DPI=96 /usr/bin/openshot-qt "$@"
else
exec /usr/bin/openshot-qt "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env QT_SCALE_FACTOR=1.5 QT_FONT_DPI=96 /usr/bin/systemsettings "$@"
else
exec /usr/bin/systemsettings "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env QT_SCALE_FACTOR=1.5 QT_FONT_DPI=96 /usr/bin/systemsettings5 "$@"
else
exec /usr/bin/systemsettings5 "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env GDK_DPI_SCALE=1.5 /usr/bin/wechat-uos "$@"
else
exec /usr/bin/wechat-uos "$@"
fi

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
if [ "${XDG_SESSION_DESKTOP}" = 'plasmawayland' ]; then
exec env QT_SCALE_FACTOR=1.5 QT_FONT_DPI=96 /usr/bin/wemeet "$@"
else
exec /usr/bin/wemeet "$@"
fi

View File

@ -0,0 +1,40 @@
[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Comment=Browse the World Wide Web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=firefox %u
Icon=firefox
Terminal=false
X-MultipleArgs=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
StartupNotify=true
StartupWMClass=firefox
Categories=Network;WebBrowser;
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Name[en_GB]=New Window
Name[en_US]=New Window
Name[en_ZA]=New Window
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
Exec=firefox --new-window %u
[Desktop Action new-private-window]
Name=New Private Window
Name[en_GB]=New Private Window
Name[en_US]=New Private Window
Name[en_ZA]=New Private Window
Name[zh_CN]=新建隐私浏览窗口
Name[zh_TW]=新增隱私視窗
Exec=firefox --private-window %u

View File

@ -1,3 +1,3 @@
. $HOME/.config/sh/profile.sh
#!/usr/bin/zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
. "${HOME}/.config/sh/profile.sh"