# change the accent color in GDM
# this works in Fedora, not sure about other distros
machinectl shell gdm@ $(type -P gsettings) set org.gnome.desktop.interface accent-color "ENTER_ACCENT_COLOR"

# add a bookmark to a location
echo "file:///ENTER/PATH/TO/DIRECTORY ENTER_NAME_HERE" >> $HOME/.config/gtk-3.0/bookmarks

# add a bookmark to / now that Nautilus 47 hides it away
echo "file:/// /" >> $HOME/.config/gtk-3.0/bookmarks

# disable automatic suspend after x time
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type "nothing"

# set power button behavior to power off
gsettings set org.gnome.settings-daemon.plugins.power power-button-action "interactive"

# disable hot corners
gsettings set org.gnome.desktop.interface enable-hot-corners false

# disable automatic workspaces
gsettings set org.gnome.mutter dynamic-workspaces false

# set number of workspaces
gsettings set org.gnome.desktop.wm.preferences num-workspaces ENTER_NUMBER_OF_WORKSPACES

# set alt-tab to only show apps on current workspace
gsettings set org.gnome.shell.app-switcher current-workspace-only true

# set accent color
gsettings set org.gnome.desktop.interface accent-color "ENTER_ACCENT_COLOR"

# disable notifications on lock screen
gsettings set org.gnome.desktop.notifications show-in-lock-screen false

# set mouse acceleration to flat (meaning no acceleration)
gsettings set org.gnome.desktop.peripherals.mouse accel-profile "flat"

# always show scrollbars in GTK apps
gsettings set org.gnome.desktop.interface overlay-scrolling false

# turn screen off after x seconds
gsettings set org.gnome.desktop.session idle-delay ENTER_SECONDS

# after screen turns off, lock after x seconds
gsettings set org.gnome.desktop.screensaver lock-delay ENTER_SECONDS

# disable recent files in nautilus
gsettings set org.gnome.desktop.privacy remember-recent-files false

# set clock format to 24h, or to 12h
# second command to set value for older file picker
gsettings set org.gnome.desktop.interface clock-format "24h"
gsettings set org.gtk.Settings.FileChooser clock-format "24h"

# show week day in top panel
gsettings set org.gnome.desktop.interface clock-show-weekday true

# set font anti-aliasing to greyscale
# some think it makes the text look softer, but removes the rainbowing when you look at text too closely
gsettings set org.gnome.desktop.interface font-antialiasing "grayscale"

# set GTK theme
gsettings set org.gnome.desktop.interface gtk-theme "ENTER_THEME_NAME"

# disable middle click to paste
gsettings set org.gnome.desktop.interface gtk-enable-primary-paste false

# show minimize and maximize buttons in titlebar
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"

# center new windows
gsettings set org.gnome.mutter center-new-windows true

# make Gnome wait 25 seconds to show "app is not responding" message rather than 5 seconds
# useful for games and users with hard drives
gsettings set org.gnome.mutter check-alive-timeout 25000

# allow setting volume above 100%
gsettings set org.gnome.desktop.sound allow-volume-above-100-percent true

# remove all folders from the app grid
gsettings reset-recursively org.gnome.desktop.app-folders

# change nautilus grid view to be smaller by default
gsettings set org.gnome.nautilus.icon-view default-zoom-level "small-plus"

# show hidden files in Files
gsettings set org.gtk.gtk4.Settings.FileChooser show-hidden true

# list directories in Files first
gsettings set org.gtk.gtk4.Settings.FileChooser sort-directories-first true

# show option for tree view when in list mode in Files
gsettings set org.gnome.nautilus.list-view use-tree-view true

# in Files, show right click option for creating a link to a file
gsettings set org.gnome.nautilus.preferences show-create-link true

# in Files, show a right click option for permanently deleting a file
gsettings set org.gnome.nautilus.preferences show-delete-permanently true

# for Ptyxis, follow system light/dark mode
gsettings set org.gnome.Ptyxis interface-style "system"

# for Ptyxis, use | beam instead of block
gsettings set org.gnome.Ptyxis cursor-shape "ibeam"

# for Ptyxis, change default size
gsettings set org.gnome.Ptyxis restore-window-size false
gsettings set org.gnome.Ptyxis default-columns ENTER_NUMBER
gsettings set org.gnome.Ptyxis default-rows ENTER_NUMBER

# for Ptyxis, disable session restore
gsettings set org.gnome.Ptyxis restore-session false