Giter VIP home page Giter VIP logo

gdm-tools's Introduction

gdm-tools

This is a set of tools for Gnome's Display/Login Manager (GDM).

Currently, it includes only 'set-gdm-theme' tool and 'gnomeconf2gdm'.

Caution!!! ⚠️

gdm-tools is not being actively maintained anymore. There may be small bug fixes and other changes here and there but don't expect any new features or even bug fixes if they require too much fiddling around in the code.

GDM Settings app is a GUI alternative to gdm-tools. It is being actively maintained and has much more settings and customization options.

gnomeconf2gdm

A script that gets Settings from Gnome Desktop and applies them to GDM

set-gdm-theme

This is a command-line program which provides a nice interface to set GDM theme and background image.

Features:

  • Set GDM theme and background
  • Manage backup of the default GDM theme
  • Extract default theme to be able to use it in weird gnome sessions such as Ubuntu
  • Reset everything to its original form

Installation

Arch Linux and Arch-Based distros

This program is available as gdm-tools and gdm-tools-git in the AUR. Use your favourite AUR helper to install it.

Example:

yay -S gdm-tools

Others

Before installing this program, make sure you have installed all the dependencies stated below in Dependencies section.

Method 1:

  1. Download the zip file (or tar.gz file)
  2. Extract it somewhere on your system
  3. Open the extracted folder in terminal
  4. Type ./install and press Enter
  5. Now type your password and press Enter.

Method 2:

First, make sure you have installed git. On Debian-like systems that can be done by running the command sudo apt install git in terminal.

Then, run following commands in terminal.

git clone --depth=1 --single-branch https://github.com/realmazharhussain/gdm-tools.git
cd gdm-tools
./install.sh

Dependencies

set-gdm-tools depends on following package:

  1. GLib 2.0 (Developer Edition)

    it has different package names in different distros
    Debian/Ubuntu: libglib2.0-dev
    Arch/Manjaro: glib2
    Fedora/CentOS: glib2-devel

  2. DConf (Command-Line Version)

    it has different package names in different distros
    Debian/Ubuntu: dconf-cli
    Arch/Manjaro: dconf
    Fedora/CentOS: dconf

You can install these dependencies using package manager on terminal.

For example, on Debian, Ubuntu and derivatives, you will need to run the following command in order to install the dependencies

sudo apt install libglib2.0-dev dconf-cli

On Arch/Manjaro

sudo pacman -S glib2 dconf 

Usage

gnomeconf2gdm

gnomeconf2gdm can be used as follows:

gnomeconf2gdm [option]

where option is one of the following:

Option Function
{no option} Apply settings to GDM
-r, reset Reset GDM settings to default
-h, help, --help Show help message

set-gdm-theme

You can use set-gdm-theme as follows:

set-gdm-theme {Option} [theme] [image]

where option is one of the following:

Option Function
-l, list List all available valid GDM themes
-s, set Set a specific theme and/or background
-r, reset Reset everything to the original state
-b, backup Manage backup of the default GDM theme
-x, extract Extract default GDM theme for use inside gnome
-h, help, --help Display a short help message
-e, examples Explain the commands with examples

Examples:

set-gdm-theme list
set-gdm-theme set
set-gdm-theme -s default ~/cat.jpg
set-gdm-theme set Yaru-dark
set-gdm-theme reset
set-gdm-theme -b update
set-gdm-theme backup restore
set-gdm-theme extract

FAQ:

  1. Why can't I apply/set GDM themes downloaded from gnome-look.org or other pling.com like websites?

    Ans: Themes available in GDM Themes section of those websites are for old versions of GDM and current versions of GDM don't use that kind of themes. Newer versions of GDM use a compiled gnome-shell theme as their theme. Download and install (system-wide) themes available in Gnome Shell Themes section of those websites. They will work on newer versions of GDM and are supported by set-gdm-theme command.

  2. When I try to set default GDM theme using set-gdm-theme tool, it sets some other theme instead of the default theme. What should I do?

    Ans: You should reinstall the package gnome-shell-common (if that's not available, then gome-shell) and then run the command set-gdm-theme set --background; set-gdm-theme backup update. This should fix the issue.

  3. Why does that happen?

    Ans: That could happen if you use some other program to set GDM theme before using set-gdm-theme tool. More information is available in WARNING section of set-gdm-theme(1) man page. To read it, install gdm-tools and then run the command man 1 set-gdm-theme on the terminal. When man page shows up, type /warning and press enter. This will take you straight to the warning section of man page.

Contribute

If you like the project and want to contribute, you can do so by providing feedback or directly contributing code to it. To provide feedback, you can open an issue on github. If you don't know how to do that you can email me directly at [email protected].

You can also contribute on Patreon.

gdm-tools's People

Contributors

insanolanbiri avatar lluttrell avatar realmazharhussain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gdm-tools's Issues

Bell Icon (above No Notification text) disappear

Hello, Bro Hussain.

I have a small problem with gdm-tools. Same as title of this issue, I see a bug or error in your theme because bell icon above no notification has dissappear in my favorite GNOME DE and tested all of theme too (except Adwaita or default shell theme). I want you to fix that problem. This tool make my GDM fresh and matching with my theme

https://forum.manjaro.org/uploads/default/optimized/3X/2/3/23c481a029d802461c1017caf8729ebf62eb0bc9_2_690x387.jpeg

I wait your update on my Github timeline. I love this tool.

Thanks for your hardwork and favors.

CMIIW, my English is bad

"Show password" icon missing in gdm after setting theme.

I'm using ZorinPurple-Dark Theme.
The theme is working but the "show password" icon inside the password input is showing a wierd image. (also tried with Orchis theme, still missing)

Also looks like I get an error while using set-gdm-theme

[~] ➤ set-gdm-theme -l                                                       
default
ZorinPurple-Dark
[~] ➤ set-gdm-theme -s ZorinPurple-Dark /home/paradox/Pictures/wall-blank.png
cp: cannot create regular file '/usr/share/gnome-shell/theme/gdm-background': No such file or directory
Background set to image '/home/paradox/Pictures/wall-blank.png'
Theme set to 'ZorinPurple-Dark'

My system:

[~] ➤ paru -Q | grep gdm   
gdm 40.1-2
gdm-tools-git 66.15e1065-1
libgdm 40.1-2
[~] ➤ paru -Q | grep gnome-shell
gnome-shell 1:40.4-1

EDIT: Could not find a way to take screenshot in gdm so here's a crappy photo from my phone's camera.
20210927_180650

set-gdm-theme no longer working on gnome 44

What happened?

Hey, thanks for the great tools!

After the upgrade to Gnome 44, the command fails to apply the bagckground to the primary display (secondary monitor does show the applied background). The background is the usual ugly gray.

Expected behavior

Primary monitor shows the established background image via set-gdm-theme

To Reproduce

set-gdm-theme set -b /path/to/image on gnome 44

Detailed Explaination (Optional)

No response

Program Version

repo master branch

Source

source code

Environment

  • OS: Opensuse Tumbleweed
  • DE: Gnome 44

Showing wrong/unknown background.

The image I'm trying to set is a pure dark png but instead I get a blurry picture of something that looks like a mountain. I have no idea where that image came from.

[~] ➤ set-gdm-theme -l                                                       
default
ZorinPurple-Dark
[~] ➤ set-gdm-theme -s ZorinPurple-Dark /home/paradox/Pictures/wall-blank.png
cp: cannot create regular file '/usr/share/gnome-shell/theme/gdm-background': No such file or directory
Background set to image '/home/paradox/Pictures/wall-blank.png'
Theme set to 'ZorinPurple-Dark'

My system:

[~] ➤ paru -Q | grep gdm   
gdm 40.1-2
gdm-tools-git 66.15e1065-1
libgdm 40.1-2
[~] ➤ paru -Q | grep gnome-shell
gnome-shell 1:40.4-1

Sorry for the poor quality image. I couldn't figure out how to take screenshot in gdm.

20210927_182327

[BUG] set-gdm-theme make ugly transparent interface on screenshot UI

What happened?

Hello, Bro.
I have problem with changing GDM theme with gdm-tools on GNOME 42. If I use it, my screenshot UI look ugly with bad transparency. I want you to fix that small problem.

Expected behavior

You can see from this picts. I can't do it from gnome-screenshot, so I just take photo from my phone
IMG_20220507_160507

To Reproduce

Enable or set a GDM theme from 3rd party theme. If reset this config to default, that problem disappear

Detailed Explaination (Optional)

I can't describe clearly because my English is bad

Program Version

I'm forgot what version I use

Source

Source code

Environment

  • OS: openSUSE Tumbleweed
  • DE: GNOME 42.0

Multi-monitors background scale

On multi-monitors, the background image will be stretched to all screens, which will cause the background image to be blurred and the scale is inappropriate. Can the background image be displayed separately on each monitor?

I love this tool very much!

Any way to switch icons?

I want to use different icons in GDM (for the battery, volume, and other icons) but I can't find a way to do it with your tool, is there a way to do this or can you add this functionality to your tool?

gnomeconf2gdm can't change cursor theme (on some systems)

Hello, Bro Hussain.
I found issue again on gnomeconf2gdm. This feature can't change my cursor theme in gdm. I try to change /usr/share/glib-2.0/schemas/99_manjaro-settings.gschema.override and nothing happened.

Cursor theme on GDM
IMG_20220103_103059

Cursor theme on desktop
Screenshot from 2022-01-03 10-54-41

If you have spare times, please fix that bug. Thanks for your hard works.

Please add other relevent values to gnomeconf2gdm

Description

Please also add gtk-theme, cursor-size, and text-scaling-factor in gnomeconf2gdm.

Explaination

I have modified /usr/local/bin/gnomeconf2gdm:

  printValues 'Interface' 'org/gnome/desktop/interface'\
              'cursor-theme
               icon-theme
               show-battery-percentage
               clock-show-weekday
               clock-format'

with:

  printValues 'Interface' 'org/gnome/desktop/interface'\
              'clock-show-weekday
               clock-format
               cursor-theme
               cursor-size
               gtk-theme
               icon-theme
               show-battery-percentage
               text-scaling-factor'

It seems to have worked (not sure about gtk-theme dconf value though).

And if gdm3 can set other dconf values from /etc/dconf/db/gdm.d/99-gnomeconf2gdm then please also add them as well.

As close the gdm look to the desktop the better.

Ubuntu 21.10 compatibility

In Ubuntu 21.10 the theme css file is no longer gdm3.css but gdm.css, GDM looks for the gdm.css file but it doesn't exist. Adding the gdm.css file inside gnome-shell-theme.gresource the theme is loaded correctly.

As of now, the script will cause a blank error screen at boot.
I've edited the script to use gdm.css and it works.

I also had to use sudo update-alternatives --config gdm-theme.gresource and select the one that was edited, the manual should mention this might be needed.

How to install gdm themes with gdm-tools

When I install a new gdm theme from gnome-look.org, and copy it in /usr/share/themes, it doesn't show up in set-gdm-theme list, only the adwaita ones are visible. How to install gdm theme with this tool??

Add option to make install.sh hands-free

I want to install gdm-tools automatically, hands-free via ansible, however, it hangs on certain parts:
the apt install ... and the interactive copy cp -i requires user input.

The apt package dependencies are easier to fix, as simply installing them separately fixes the issue.

However, for the interactive copies I would like to have a: -F|--force Overwrite gdm-tools configuration files, so that it dies not hang.

Optionally, having a deb package would solve both issues, though it might be an overkill.

[BUG] cannot set gdm icon theme

Is your feature request related to a problem? Please describe.
Its annoying that I can't set an icon theme for gdm.

Describe the solution you'd like
You should add a way to set the gdm icon theme.

Any way to scale the login (greeter) screen to 2x with gdm-tools

Description

Not sure if this should be a feature request, or I just missed something in the man pages. I have login screens that don't seem to respect the scaling set in the running gdm theme? Don't know if I'm saying this right, I'd like to scale the greeter screen 2x without doing it globally if possible.

Explaination

No response

I am no longer able to set an image as a background

Hi,
The previous version worked fine with Ubuntu 20.04.2 LTS.
I have updated the script with the latest changes, but I am no longer able to set an image as a background.
I can only change the background color and theme.

I tried to reset with:
set-gdm-theme -r
Without results..

I do:
apt install --reinstall gnome-shell-common
And reinstall everything again, but without solving anything..

Thank, you,
Francesco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.