• Stars
    star
    476
  • Rank 92,280 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 2 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GTK3 settings editor adapted to work in the wlroots environment

nwg-look

This application is a part of the nwg-shell project.

Contributing: please read the general contributing rules for the nwg-shell project.

Nwg-look is a GTK3 settings editor, designed to work properly in wlroots-based Wayland environment. The look and feel is strongly influenced by LXAppearance, but nwg-look is intended to free the user from a few inconveniences:

  • It works natively on Wayland. You no longer need Xwayland, nor strange env variables for it to run.
  • It applies gsettings directly, with no need to use workarounds. You don't need to set gsettings in the sway config file. You don't need the import-gsettings script.

nwg-look

Packaging status

Dependencies

Depending on your distro, you may also need to install gotk3 dependencies.

Installation

  1. Clone the repository, cd into it.
  2. make build
  3. sudo make install

Usage

$ nwg-look -h
Usage of nwg-look:
  -a    Apply stored gsetting and quit
  -d    turn on Debug messages
  -r    Restore default values and quit
  -v    display Version information

The -a flag has been added just in case. When you press the "Apply" button, in addition to applying the changes, a backup file is also created. You may apply gsetting again w/o running the GUI, by just nwg-look -a. No idea if it's going to be useful in real life. ;)

Usage in sway

The default way to apply GTK setting on sway Wayland compositor has been described in the GTK 3 settings on Wayland Wiki section. You no longer need it. Nwg-look loads and saves gsettings values directly, and does not care about the ~/.config/gtk-3.0/settings.ini file. It only exports your settings to it, unless you use the -n flag.

Therefore, if your sway config file contains either

set $gnome-schema org.gnome.desktop.interface

exec_always {
    gsettings set $gnome-schema gtk-theme 'Your theme'
    gsettings set $gnome-schema icon-theme 'Your icon theme'
    gsettings set $gnome-schema cursor-theme 'Your cursor Theme'
    gsettings set $gnome-schema font-name 'Your font name'
}

or if you use the import-gsettings script:

exec_always import-gsettings

to parse and apply the settings.ini file, remove these lines.

Backward compatibility

Some gsetting keys have no direct counterparts in the Gtk.Settings type. While exporting the settings.ini file, nwg-look uses the most similar values:

gsettings Gtk.Settings
font-hinting gtk-xft-hintstyle
font-antialiasing gtk-xft-antialias
font-rgba-order gtk-xft-rgba

Some Other settings have been left just for LXAppearance compatibility, and possible use of your settings.ini file elsewhere:

  • Toolbar style
  • Toolbar icon size

have been deprecated since GTK 3.10, and the values are ignored.

  • Show button images
  • Show menu images

have been deprecated since GTK 3.10, and have no corresponding gsettings values.

  • Enable event sounds
  • Enable input feedback sounds

don't seem to change anything in non-GNOME environment.

More Repositories

1

autotiling

Script for sway and i3 to automatically switch the horizontal / vertical window split orientation
Python
872
star
2

nwg-shell

Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
CSS
793
star
3

nwg-panel

GTK3-based panel for sway and Hyprland Wayland compositors
Python
583
star
4

nwg-launchers

GTK-based launchers: application grid, button bar, dmenu for sway and other window managers
C++
401
star
5

nwg-displays

Output management utility for sway and Hyprland.
Python
356
star
6

azote

Wallpaper manager for wlroots-based compositors and some other WMs
Python
351
star
7

nwg-drawer

Application drawer for wlroots-based Wayland compositors
Go
229
star
8

nwg-dock

GTK3-based dock for sway
Go
158
star
9

nwg-dock-hyprland

GTK3-based dock for Hyprland
Go
153
star
10

nwg-wrapper

Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors
Python
135
star
11

nwg-bar

GTK3-based button bar for wlroots-based compositors
Go
115
star
12

sgtk-menu

GTK launchers for sway & other WMs w/ menu, dmenu, application grid and button bar
Python
112
star
13

tint2-executors

Collection of executors for Tint2 panel
Python
83
star
14

nwg-iso

Arch Linux ISO with nwg-shell for sway and Hyprland
CSS
76
star
15

nwg-shell-config

nwg-shell configuration utility
Python
57
star
16

nwg-menu

MenuStart plugin to nwg-panel, also capable of working standalone
Go
54
star
17

swayinfo

Some goodies for use in Sway and i3 wm
Python
48
star
18

gopsuinfo

A gopsutil-based command to display system usage info as text in panels like Waybar or icon/text in tint2 and nwg-panel executors
Go
33
star
19

psuinfo

A psutil-based command to display customizable system usage info in a single line, for Tint2 executors or CLI
Python
28
star
20

nwg-hello

GTK3-based greeter for greetd written in python
Python
26
star
21

t2ec

Package of info scripts for Tint2 or other panels
Python
17
star
22

nwg-icon-picker

GTK icon chooser with a text search option
Python
16
star
23

nwg-clipman

nwg-shell clipboard manager - a GTK3-based GUI for cliphist
Python
15
star
24

nwgocc

nwg Control Center - Go version
Go
14
star
25

obhud

Openbox HUD ia s Python script for handling laptop-specific keys and events in Openbox window manager
Python
8
star
26

azote-palettes

Create a color palette out of an image
Python
6
star
27

nwgcc

nwg Control Center
Python
6
star
28

nwg-piotr

Config files for my GitHub profile.
5
star
29

rof

Launcher script to avoid running multiple instance of the same window
Shell
5
star
30

ddcpopup

simple GUI for basic ddcutil features and a ddcutil output parser for use with bars / panels
Go
4
star
31

sway-save-outputs

Script to save current sway outputs configuration to a text file
Python
4
star
32

lightdm-nwg-greeter

A fork of LightDM Elephant Greeter, intended to replace sddm on nwg-iso.
Python
3
star
33

RamblerGPXEditor

An Openstreetmap-based visual GPX editor for Android
Java
3
star
34

squarely

A puzzle game which utilizes the python-pyglet library.
Python
3
star
35

dwl

djpohly/dwl with my selection of patches and pending pull requests applied
C
3
star
36

nwg-readme-browser

WebKitGTK-based README file browser
Python
3
star
37

obbackup

Simple graphical tool to backup/restore Openbox config files in few clicks
Python
2
star
38

EistReturns

Arcade-puzzle game
Java
2
star
39

nwg-shell-wallpapers

Selection of wallpapers contributed to the nwg-shell project
Shell
2
star
40

nwg-shell-resources

common files used by other nwg-shell components
CSS
2
star
41

river_output_switcher

automated output switcher for river Wayland compositor
Python
1
star