system/gnome: sync config to 'A happy GNOME' theme from my NixOS config

This commit is contained in:
Gabriel Arazas 2022-05-24 15:11:32 +08:00
parent de8af8b8f0
commit 447faf813e
5 changed files with 94 additions and 36 deletions

View File

@ -0,0 +1,13 @@
# Nautilus-related preferences.
[org/gnome/nautilus/list-view]
use-tree-view=true
[org/gnome/nautilus/preferences]
show-create-link=true
[org/gtk/settings/file-chooser]
sort-directories-first=true
show-hidden=true
[re/sonny/Junction]
show-app-names=true

View File

@ -1,19 +1,36 @@
[org/gnome/desktop/interface]
enable-animations=true
locate-pointer=true
enable-animations=false
enable-hot-corners=false
gtk-im-module='gtk-im-context-simple'
show-battery-percentage=true
color-scheme='prefer-dark'
[org/gnome/desktop/notifications]
show-banners=true
[org/gtk/settings/file-chooser]
clock-format='24h'
[org/gnome/desktop/privacy]
disable-microphone=false
[org/gnome/shell]
disable-user-extensions=false
enabled-extensions=['arcmenu@arcmenu.com', 'just-perfection-desktop@just-perfection', 'gsconnect@andyholmes.github.io', 'flypie@schneegans.github.com', 'kimpanel@kde.org', 'workspaces-bar@fthx', 'burn-my-windows@schneegans.github.com', 'sermon@rovellipaolo-gmail.com', 'runcat@kolesnikov.se', 'mprisindicatorbutton@JasonLG1979.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com', 'windowsNavigator@gnome-shell-extensions.gcampax.github.com']
favorite-apps=['brave-browser.desktop', 'emacs.desktop', 'zotero-5.0.96.3.desktop', 'org.kde.krita.desktop', 'blender.desktop', 'com.usebottles.bottles.desktop']
# Desktop suspension and screensaver settings.
[org/gnome/desktop/session]
idle-delay=uint32 720
[org/gnome/desktop/screensaver]
lock-delay=uint32 120
# Enable night light.
[org/gnome/settings-daemon/plugins/color]
night-light-enabled=true
# Hardware settings.
[org/gnome/desktop/peripherals/touchpad]
tap-to-click=true
[org/gnome/mutter]
attach-modal-dialogs=true
@ -34,9 +51,18 @@ locations=[<(uint32 2, <('New York', 'KNYC', true, [(0.71180344078725644, -1.290
[org/gnome/system/location]
enabled=false
[org/gnome/desktop/wm/preferences]
workspace-names=['Web', 'Dev', 'Notes', 'Graphics', 'Audio']
# Disable notification pop-outs for the common messenger apps.
[/org/gnome/desktop/notifications/application/re-sonny-tangram]
show-banners=false
# Application configs.
[re/sonny/Junction]
show-app-names=true
[/org/gnome/desktop/notifications/application/org-gnome-polari]
show-banners=false
[/org/gnome/desktop/notifications/application/thunderbird]
show-banners=false
[/org/gnome/desktop/notifications/application/io-github-hexchat]
show-banners=false
[/org/gnome/desktop/notifications/application/org-gnome-evolution-alarm-notify]
show-banners=false

View File

@ -26,33 +26,14 @@ switch-to-workspace-right=['<Primary><Super>l', '<Super>Page_Down']
switch-to-workspace-down=@as []
toggle-fullscreen=['<Super>f']
toggle-maximized=['<Shift><Super>f']
toggle-on-all-workspaces=['<Super>y']
toggle-overview=['<Super>s']
toggle-tiled-left=@as []
toggle-tiled-right=@as []
[org/gnome/shell/extensions/pop-shell]
pop-workspace-down=['<Shift><Super>l', '<Shift><Super>Right', '<Shift><Super>Page_Down']
pop-workspace-up=['<Shift><Super>h', '<Shift><Super>Left', '<Shift><Super>Page_Up']
pop-monitor-up=['<Alt><Super>k', '<Alt><Super>Up']
pop-monitor-left=['<Alt><Super>h', '<Alt><Super>Left']
pop-monitor-right=['<Alt><Super>l', '<Alt><Super>Right']
pop-monitor-down=['<Alt><Super>j', '<Alt><Super>Down']
[org/gnome/shell/keybindings]
toggle-message-tray=['<Super>v']
# Bringing my old habits back when I use standalone window managers.
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
binding='<Super>Return'
command='kitty'
name='Terminal'
# The equivalent to the newspaper in the morning.
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1]
binding='<Shift><Super>r'
command='kitty -e newsboat'
name='News aggregator'
# We don't want to restore them shortcuts.
[org/gnome/mutter/wayland/keybindings]
restore-shortcuts=@as []

View File

@ -0,0 +1,43 @@
# arcmenu, the extensive and configurable menu
[org/gnome/shell/extensions/arcmenu]
arc-menu-icon=64
arc-menu-placement='Panel'
disable-recently-installed-apps=false
menu-button-icon='Arc_Menu_Icon'
menu-height=550
menu-hotkey='Super_L'
menu-layout='Runner'
enable-standlone-runner-menu=true
runner-position='Centered'
runner-menu-hotkey='Super_L'
runner-show-frequent-apps=true
search-provider-open-windows=true
show-activities-button=false
show-search-result-details=true
apps-show-extra-details=true
# Minor tweaks ahoy!
[org/gnome/shell/extensions/just-perfection]
activities-button=false
workspace-wrap-around=false
window-demands-attention-focus=true
ripple-box=false
# The lovely tool if you're a mouse handler.
[org/gnome/shell/extensions/flypie]
menu-configuration='[{"name":"Global palette","icon":"🐶️","shortcut":"<Super>space","centered":false,"id":0,"children":[{"name":"Close window","type":"Shortcut","icon":"window-close-symbolic","data":{"shortcut":"<Super>q"},"angle":-1},{"name":"Next workspace","icon":"go-next-symbolic","type":"Shortcut","data":{"shortcut":"<Control><Super>l"},"angle":90},{"name":"Favorites","icon":"emblem-favorite-symbolic-#fae","type":"Favorites","data":{},"angle":-1},{"name":"Fly-Pie settings","icon":"applications-system-symbolic","type":"Command","data":"gnome-extensions prefs flypie@schneegans.github.com","angle":-1},{"name":"Previous workspace","icon":"go-previous-symbolic","type":"Shortcut","data":{"shortcut":"<Control><Super>h"},"angle":270},{"name":"Running apps","icon":"flypie-menu-running-apps-symbolic-#74a","type":"RunningApps","data":{"activeWorkspaceOnly":false,"appGrouping":true,"hoverPeeking":true,"nameRegex":""},"angle":-1},{"name":"Maximize window","icon":"window-maximize-symbolic","type":"Shortcut","data":{"shortcut":"<Shift><Super>f"},"angle":-1}],"type":"CustomMenu","data":{},"touchButton":false,"superRMB":false}]'
# A little novelty couldn't hurt.
[org/gnome/shell/extensions/burn-my-windows]
close-animation='tv'
destroy-animation-time=500
destroy-dialogs=true
tv-animation-time=250
fire-close-effect=false
fire-open-effect=false
tv-close-effect=true
tv-open-effect=true
# Make app grid somewhat usable.
[org/gnome/shell/extensions/alphabetical-app-grid]
folder-order-position='start'

View File

@ -2,20 +2,15 @@
- name: Install dconf keyfiles
copy:
src: "{{ role_path }}/files/dconf/"
dest: /etc/dconf/db/a-happy-gnome.d
dest: "{{ '/etc/dconf/db/local.d' if ansible_facts['distribution'] == 'Fedora' else '/etc/dconf/db/a-happy-gnome.d' }}"
- name: Set 'user' dconf profile with the custom GNOME config
ansible.builtin.shell: grep "system-db:a-happy-gnome" && echo "system-db:a-happy-gnome" >> /etc/dconf/profile/user
when: ansible_facts["distribution"] != "Fedora"
- name: Update dconf database
ansible.builtin.shell: dconf update
- name: Enable night light in GNOME
dconf:
state: present
key: /org/gnome/settings-daemon/plugins/color/night-light-enabled
value: "true"
- name: Install GNOME extension manager
flatpak:
state: present