Hot answers tagged

124

In GNOME and other freedesktop.org-compliant desktop environments, such as KDE and Unity, applications are added to the desktop's menus or desktop shell via desktop entries, defined in text files with the .desktop extension (referred to as desktop files). The desktop environments construct menus for a user from the combined information extracted from ...


52

In Fedora 24 (also Ubuntu 20.04, and probably many more distros which use Gnome) the key combination SuperShift← or SuperShift→ moves windows between monitors by default. If you play with Super + Cursor Keys and then use SuperShift + Cursor Keys you should be able to move/minimise/maximise windows with ease.


51

For those who don't mind using keyboard shortcuts instead of the mouse scrollwheel, here they are (tested with Gnome 3.14.2): Super+Alt+8 : Toggle zoom enabled/disabled (when enabled, the next two keyboard shortcuts become active) Super+Alt++ : Zoom in (increases zoom factor by 1.0) Super+Alt+- : Zoom out (decreases zoom factor by 1.0, until it is 1.0) (...


50

I had the same issue after a fresh install of arch. I checked, double checked and triple checked the locale.gen and even removed every locale except en_US.UTF-8. I was just about to give up when I checked under settings, Regions & Language and discovered the language was not set even though I had run the command to set it. After picking english and ...


46

There are several extensions on the GNOME extensions site which can give you various modes of "snapping" your windows. One that works particularly well is gTile.     References Keyboard Shortcuts GNOME 3


42

Okay, got it: this line in my /etc/default/keyboard XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll" .. should not contain grp:alt_shift_toggle, which is the relevant xkb option according to this post. In addition, Gnome overrides xkb options according to this other post. As a consequence, this output: $ dconf read /org/gnome/desktop/input-sources/xkb-...


35

After Gnome 3.20, .header-bar.default-decoration doesn't work. You can put follow content into ~/.config/gtk-3.0/gtk.css: /* shrink headerbars (don't forget semicolons after each property) */ headerbar { min-height: 0px; padding-left: 2px; /* same as childrens vertical margins for nicer proportions */ padding-right: 2px; background-color: #...


33

Sounds like you messed up your /etc/locale.gen file. If you are english/US, comment out any of the other entries in that file, UNLESS YOU NEED THEM. They are for other languages. If you are american you more then likely only need en_US.UTF8. Edit the /etc/locale.gen file and uncomment en_US.UTF8. Comment out any others, unless of course you need them ...


29

Gnome 3 uses DCONF to store the preferences in a single binary file: ~/.config/dconf/user. As per the Gnome docs, it is recommended to save only the settings that you need and restore them with either dconf or gsettings. However, gsettings is only able to restore the value(s) for one single key at a time (plus, the value must be quoted) and that makes it a ...


28

create a file ~/.config/gtk-3.0/gtk.css ( add the below CSS ) then you will need to reload gnome-shell: ALT + F2 and type r I was able to reduce the app Titlebar on Gnome 3.20 with the following CSS: headerbar entry, headerbar spinbutton, headerbar button, headerbar separator { margin-top: 0px; /* same as headerbar side padding for nicer proportions */ ...


26

Since the remove buttons are no longer available in gnome-shell 3.26, the only way I know is deleting the extension directory itself. With Nautilus Open Nautilus and show hidden files (press CTRL + H). Go to your home folder. Navigate to .local/share/gnome-shell/extensions Delete the directory of the unwanted extension. Reload gnome-shell. Press ALT + F2, ...


23

You could set the corresponding xkb option via dconf-editor. Navigate to org > gnome > desktop > input-sources and add grp:caps_toggle to your xkb-options: Note each option is enclosed in single quotes, options are separated by comma+space. On older gnome3 releases you could do that also via System Settings > Keyboard (or gnome-control-center keyboard in ...


23

If you're looking for a way to visually edit configuration as in other answer, there's dconf-editor supplied with dconf-tools: sudo aptitude install dconf-tools If you fancy batch editing needed value, here's how you can read it: dconf read /org/gnome/desktop/input-sources/xkb-options And here's how to update it: dconf write /org/gnome/desktop/input-...


22

Super+L works in Fedora 24 which is running Gnome 3.20


22

There are two folders for gnome-shell extensions: ~/.local/share/gnome-shell/extensions for user-side /usr/share/gnome-shell/extensions for system-side


21

See shelltile. It's a neat little extension that allows the corner snapping, as well as other very useful features.


20

From Desktop entries in Arch linux wiki, this works on later versions of Gnome: update-desktop-database ~/.local/share/applications


20

That's caused by the latest gnome-settings-daemon updates... There is no such option in power settings because it was removed by the GNOME devs (the shutdown/power off action is considered "too destructive"). Bottom line: you can no longer power off your laptop by pressing the power off button. You could however add a new dconf/gsettings option (i.e....


20

How much is selected on double click can be configured via adding additional character classes to the default set. That means that adding a colon and other special characters that may show up in URLs leads to double click also selecting complete URLs. This can be configured via the gnome config database. For that one has to get the id of the gnome shell ...


17

Try using dconf Editor, here are the steps Open dconf Editor Goto org/gnome/gnome-session Check the property called "auto_save_session" The description says "If enabled, gnome-session will save the session automatically." If you don't have dconf Editor installed, the setting can also be changed via the command line with: gsettings set ...


17

This works for me in Gnome 3.14. Standard installation, no customization. gnome-screensaver-command --lock


17

Very good answer from Thomas Nyman. Gnome comes with gui tool gnome-desktop-item-edit assisting in creating *.desktop files. We need to use it from command line, or create a desktop file for it. Instructions to make Gnome Application from gnome-desktop-item-edit Open terminal windows and type the following command: gnome-desktop-item-edit --create-new /home/...


17

You can define the default file browser by editing the file ~/.local/share/applications/mimeapps.list. Open this file and change the line inode/directory as follow inode/directory=nautilus.desktop; If this doesn't work, you should change the filemanager in the file /usr/share/applications/mimeinfo.cache by adding (or updating) this line inode/...


16

To call a program by its name, shells search the directories in the $PATH environment variable. In Debian, the default $PATH for your user should include /home/YOUR-USER-NAME/bin (i.e. ~/bin). First make sure the directory ~/bin exists or create it if it does not: mkdir -p ~/bin You can symlink binaries to that directory to make it available to the shell: ...


16

Note: If you are on PopOS, there is an option to "Remove Window Titles" in the top bar menu that also controls tiling. This is what I use currently myself and it works great for only removing the superfluous non-CSD titlebars. Headerbar/CSD Actually, a section of the code that I found via reddit and posted above, namely headerbar entry, headerbar ...


16

Since gnome-shell exposes a JS eval interface on DBus which has access to all variables, the feat is possible with the following command: gdbus call --session --dest org.gnome.Shell \ --object-path /org/gnome/Shell \ --method org.gnome.Shell.Eval \ "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()" Which will activate ...


16

Go to the /etc/NetworkManager/system-connections/ directory, here all the connection details are saved. And use the cat command or any text editor as root to view the saved passwords. There should be a security related entry, like [vpn-secrets] or [wifi-security]. [wifi-security] auth-alg=open group= key-mgmt=wpa-psk pairwise= psk=sat004321 For VPN, [vpn-...


15

The details on how to do this were found here in this blog post titled: Locking the screen from the command line in Gnome 3.8. Manually triggering The dbus-send command can be used to send this message, in this case we're sending the "Lock" message to the screensaver. $ dbus-send --type=method_call --dest=org.gnome.ScreenSaver \ /org/gnome/...


15

This worked for me: gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false


15

Auto start x applications: One way to make an application auto start at user login is to add its .desktop file to /etc/xdg/autostart/ this will affect all users Just copy or link (ln -s) your telegram.desktop to /etc/xdg/autostart/ if you don't have a telegram.desktop create a new one, here is an example with Deepin Music Flatpak's package [Desktop Entry] ...


Only top voted, non community-wiki answers of a minimum length are eligible