• Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 3 years ago

Reviews

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

Repository Details

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

sgtk-menu

This project is archival

This project was my first attempt to launchers development. The code has been later reused and significantly improved in other projects. I no longer work on sgtk-menu. Please use launchers named below instead:

nwg-launchers

C++ version of the launchers provided by sgtk-menu. It works as well on wlroots-based compositors, as on X11. The project is community-driven, as I turned out to be a hopeless C++ programmer.

nwg-shell

An attempt to create a GTK-based shell for sway. The project includes a panel and a set of launchers, developed in Python and Go. The nwg-shell project is under active development.

The description below is archival as well

This project is an attempt to create a launcher, that behaves decently on sway, but also works on other window managers. It may or may not work on some DEs - I don't care much about it. For what I managed to test so far, see the Compatibility chart.

sgtk-menu uses pygobject to create a themeable, searchable, gtk3-based system launchers w/ some optional features:

  • .desktop entries-based system menu;
  • search box to find what you need quickly;
  • favourites (most frequently used entries) menu above (optional [-f | -fn FN] argument);
  • user-defined menu below (optional [-a | -af AF] argument);
  • sgtk-dmenu command: search and run commands in $PATH;
  • sgtk-bar command: user-defined horizontal or vertical button bar;
  • sgtk-grid command: a GNOME-like application grid.

Read wiki for more information. See screenshots for usage examples.

Background

Well, I didn't even think that sway needed a menu, being happy with wofi and dmenu-wayland. I started coding just to find out what the Desktop Menu Specification looks like, and also to learn some more pygobject. The best menu I know, however, does not (yet?) behave well on sway. So, I thought to share the code, which has already taken me more time that I had ever expected.

This code by Johan Malm helped me understand how to make use of .desktop entries. Many thanks!

How it works on sway

The problem to resolve on sway, was, that the Gtk.Menu class behaves differently / unexpectedly when open over Wayland and X11 windows. To work it around, the script opens the menu over a (semi-)transparent, floating window, that covers all the screen.

Packaging status

Packaging status

Arch Linux

Install sgtk-menu from AUR.

Fedora

sudo dnf install sgtk-menu

See wiki for more info.

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-look

GTK3 settings editor adapted to work in the wlroots environment
Go
476
star
5

nwg-launchers

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

nwg-displays

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

azote

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

nwg-drawer

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

nwg-dock

GTK3-based dock for sway
Go
158
star
10

nwg-dock-hyprland

GTK3-based dock for Hyprland
Go
153
star
11

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
12

nwg-bar

GTK3-based button bar for wlroots-based compositors
Go
115
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