From 9ce5394be92b957ddd4acb438cad95a263efd5eb Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Wed, 8 Nov 2023 15:35:20 +0700 Subject: [PATCH] Add Pantheon desktop settings override --- katsu/modules/pantheon/pantheon-live.sh | 158 ++++++++++++++++++++++ katsu/modules/pantheon/pantheon-live.yaml | 1 + 2 files changed, 159 insertions(+) diff --git a/katsu/modules/pantheon/pantheon-live.sh b/katsu/modules/pantheon/pantheon-live.sh index 9deff650..2f61e300 100644 --- a/katsu/modules/pantheon/pantheon-live.sh +++ b/katsu/modules/pantheon/pantheon-live.sh @@ -8,6 +8,164 @@ PREFERRED=/usr/bin/gnome-session --builtin --session=pantheon DISPLAYMANAGER=/usr/sbin/lightdm EOF +cat > /usr/share/glib-2.0/schemas/io.elementary.desktop.gschema.override << EOF +[net.launchpad.plank.dock.settings:Pantheon] +# TODO: insert apps missing from official Fedora repositories once available +# - appcenter +# - io.elementary.mail +# - io.elementary.tasks +dock-items=['gala-multitaskingview.dockitem','firefox.dockitem','io.elementary.calendar.dockitem','io.elementary.music.dockitem','io.elementary.videos.dockitem','io.elementary.photos.dockitem','io.elementary.switchboard.dockitem'] +hide-delay=250 +hide-mode='window-dodge' +show-dock-item=false +theme='Gtk+' + +[org.freedesktop.ibus.general.hotkey:Pantheon] +triggers=['space'] + +[org.freedesktop.ibus.panel:Pantheon] +show=1 + +[org.gnome.desktop.background:Pantheon] +picture-options='zoom' +picture-uri='file:///usr/share/backgrounds/ultramarine-linux/39/foresty-skies-l.png' +primary-color='#000000' + +[org.gnome.desktop.datetime:Pantheon] +automatic-timezone=true + +[org.gnome.desktop.default-applications.terminal:Pantheon] +exec='io.elementary.terminal' + +[org.gnome.desktop.input-sources:Pantheon] +xkb-options=['grp:alt_shift_toggle'] + +[org.gnome.desktop.interface:Pantheon] +cursor-theme='elementary' +document-font-name='Open Sans 10' +font-antialiasing='grayscale' +font-hinting='slight' +font-name='Inter 9' +gtk-theme='io.elementary.stylesheet.blueberry' +icon-theme='elementary' +# Roboto Mono is no longer available on Fedora, use Monospace instead +#monospace-font-name='Roboto Mono 10' +monospace-font-name='Monospace 10' + +[org.gnome.desktop.peripherals.touchpad:Pantheon] +natural-scroll=true +tap-to-click=true + +[org.gnome.desktop.privacy:Pantheon] +remove-old-temp-files=true +remove-old-trash-files=true + +[org.gnome.desktop.session:Pantheon] +idle-delay=900 + +[org.gnome.desktop.sound:Pantheon] +theme-name='elementary' + +[org.gnome.desktop.wm.keybindings:Pantheon] +# defaults to Up, replaced by toggle below, so we need to clear it here +maximize=[] +move-to-workspace-1=['1','1'] +move-to-workspace-2=['2','2'] +move-to-workspace-3=['3','3'] +move-to-workspace-4=['4','4'] +move-to-workspace-5=['5','5'] +move-to-workspace-6=['6','6'] +move-to-workspace-7=['7','7'] +move-to-workspace-8=['8','8'] +move-to-workspace-9=['9','9'] +move-to-workspace-left=['Left'] +move-to-workspace-right=['Right'] +panel-main-menu=['space','F2'] +panel-run-dialog=[] +# Gala shows workspaces overview instead of desktop +show-desktop=['Down','s'] +switch-applications=[] +switch-applications-backward=[] +# See lp:1291788 for details about switch-input-source* +switch-input-source=[] +switch-input-source-backward=[] +switch-to-workspace-left=['Left'] +switch-to-workspace-right=['Right'] +switch-to-workspace-up=[] +switch-to-workspace-down=[] +switch-to-workspace-1=['1'] +switch-to-workspace-2=['2'] +switch-to-workspace-3=['3'] +switch-to-workspace-4=['4'] +switch-to-workspace-5=['5'] +switch-to-workspace-6=['6'] +switch-to-workspace-7=['7'] +switch-to-workspace-8=['8'] +switch-to-workspace-9=['9'] +switch-windows=['Tab'] +switch-windows-backward=['Tab'] +toggle-maximized=['Up'] +# defaults to Down used above, so we need to override it +unmaximize=['F5'] + +[org.gnome.desktop.wm.preferences:Pantheon] +# Make sure that all applications with CSD show their "Menu" button; +# otherwise, parts of the GUI of some GNOME applications is inaccessible. +#button-layout='close:maximize' +button-layout='close:menu,maximize' +mouse-button-modifier='' +resize-with-right-button=true +theme='elementary' + +# Drop overrides for Epiphany - it's not the default browser on Fedora, +# and epiphany in Feodra does not have the elementary OS downstream patches. +#[org.gnome.Epiphany.ui:Pantheon] +#expand-tabs-bar=false +#tabs-bar-visibility-policy='always' +# +#[org.gnome.Epiphany.web:Pantheon] +#cookies-policy='no-third-party' +#enable-adblock=false +#enable-smooth-scrolling=true + +[org.gnome.mutter:Pantheon] +auto-maximize=false +overlay-key='Super_L' +center-new-windows=true +workspaces-only-on-primary=true + +[org.gnome.mutter.keybindings:Pantheon] +toggle-tiled-left=['Left'] +toggle-tiled-right=['Right'] + +[org.gnome.nm-applet:Pantheon] +disable-connected-notifications=true +show-applet=false + +[org.gnome.settings-daemon.peripherals.touchpad:Pantheon] +horiz-scroll-enabled=true +natural-scroll=true +scroll-method='two-finger-scrolling' + +[org.gnome.settings-daemon.plugins.color:Pantheon] +night-light-temperature=4500 + +[org.gnome.settings-daemon.plugins.power:Pantheon] +idle-dim=false + +[org.gnome.settings-daemon.plugins.xsettings:Pantheon] +overrides={'Gtk/DialogsUseHeader': <0>, 'Gtk/EnablePrimaryPaste': <0>, 'Gtk/ShellShowsAppMenu': <0>, 'Gtk/DecorationLayout': <'close:menu,maximize'>} + +[org.gtk.Settings.FileChooser:Pantheon] +sort-directories-first=true + +[org.onboard:Pantheon] +theme='/usr/share/onboard/themes/Nightshade.theme' + +EOF + +glib-compile-schemas /usr/share/glib-2.0/schemas/ + cat >> /var/lib/livesys/livesys-session-extra << EOF ## set up lightdm autologin diff --git a/katsu/modules/pantheon/pantheon-live.yaml b/katsu/modules/pantheon/pantheon-live.yaml index e81e168e..8ecb21d5 100644 --- a/katsu/modules/pantheon/pantheon-live.yaml +++ b/katsu/modules/pantheon/pantheon-live.yaml @@ -38,6 +38,7 @@ dnf: - xdg-desktop-portal-gtk - xdg-desktop-portal-xapp - ultramarine-backgrounds-gnome + - rsms-inter-fonts # scripts: # post: