Когда-то я хочу отредактировать текст RTL с определенным шрифтом. Я нахожу это громоздким для изменения шрифта все время. Есть ли способ, которым я могу сказать gedit устанавливать определенный шрифт при запуске его через cli.
cli опции, кажется, не обеспечивают очень
Usage:
gedit [OPTION…] [FILE…] [+LINE[:COLUMN]]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gapplication Show GApplication options
--help-gtk Show GTK+ Options
Application Options:
-V, --version Show the application’s version
--list-encodings Display list of possible values for the encoding option
--encoding=ENCODING Set the character encoding to be used to open the files listed on the command line
--new-window Create a new top-level window in an existing instance of gedit
--new-document Create a new document in an existing instance of gedit
-w, --wait Open files and block process until files are closed
-s, --standalone Run gedit in standalone mode
--display=DISPLAY X display to use
Найденный ответом я предполагаю. Это может быть сделано с помощью dconf-editor
или gsettings
утилита cli.
Будьте осторожны при использовании обоих инструменты, поскольку они действительно мощны для разрушения системы.
https://howto8165.wordpress.com/2015/11/25/how-to-change-hidden-preferences-for-gedit/
Я создал два псевдонима/функции. Каждый устанавливает стандартный шрифт, когда я ввожу gedit
названное второе geditb
(b для Balochi, язык я говорю).
function gedit()
{
gsettings set org.gnome.gedit.preferences.editor editor-font 'Monospace 12'
/usr/bin/gedit
}
function geditb()
{
gsettings set org.gnome.gedit.preferences.editor editor-font 'Nafees 18'
/usr/bin/gedit
}