All Projects → ronjouch → marathon

ronjouch / marathon

Licence: MIT license
minimal run-or-focus launcher for Linux/X

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to marathon

Chamferwm
A tiling X11 window manager with Vulkan compositor.
Stars: ✭ 200 (+270.37%)
Mutual labels:  xorg, x11
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+6931.48%)
Mutual labels:  xorg, x11
Xf86 Input Wacom
X.Org driver for Wacom devices
Stars: ✭ 201 (+272.22%)
Mutual labels:  xorg, x11
Picom
A lightweight compositor for X11
Stars: ✭ 2,299 (+4157.41%)
Mutual labels:  xorg, x11
godot-launcher
Alternative launcher for single-board computers
Stars: ✭ 107 (+98.15%)
Mutual labels:  launcher, xorg
Hideit.sh
Automagically hide/show a window by its name when the cursor is within a defined region or you mouse over it.
Stars: ✭ 171 (+216.67%)
Mutual labels:  xorg, x11
Unclutter Xfixes
A rewrite of unclutter using the x11-xfixes extension
Stars: ✭ 236 (+337.04%)
Mutual labels:  xorg, x11
Xsuspender
👀 💻 💤 🔋 Save battery by auto-suspending unfocused X11 applications.
Stars: ✭ 53 (-1.85%)
Mutual labels:  xorg, x11
Launcher
🚀 A distraction-free minimal homescreen for Android.
Stars: ✭ 116 (+114.81%)
Mutual labels:  minimal, launcher
Olauncher
Minimal AF (ad-free) launcher app for Android. Available at Play Store and F-Droid.
Stars: ✭ 211 (+290.74%)
Mutual labels:  minimal, launcher
Wallutils
🌆 Utilities for handling monitors, resolutions, wallpapers and timed wallpapers
Stars: ✭ 145 (+168.52%)
Mutual labels:  xorg, x11
Hypr
Hypr is a tiling window manager written in modern C++.
Stars: ✭ 659 (+1120.37%)
Mutual labels:  xorg, x11
Custard
custard window manager
Stars: ✭ 141 (+161.11%)
Mutual labels:  xorg, x11
Sara
Originally a fork of catwm, now an offspring of dwm with a streamlined featureset, plus some bspwm.
Stars: ✭ 179 (+231.48%)
Mutual labels:  xorg, x11
Octobtt
OctoBTT
Stars: ✭ 77 (+42.59%)
Mutual labels:  xorg, x11
Libagar
Cross-Platform GUI Toolkit (stable)
Stars: ✭ 212 (+292.59%)
Mutual labels:  xorg, x11
xwmfs
X11 Window-Manager file system based on FUSE
Stars: ✭ 21 (-61.11%)
Mutual labels:  xorg, x11
I3
A fork of the i3 window manager with gaps and some other features
Stars: ✭ 5,512 (+10107.41%)
Mutual labels:  xorg, x11
Jgmenu
A simple X11 menu
Stars: ✭ 523 (+868.52%)
Mutual labels:  launcher, x11
x11-fractional-display-scaling
Script and instructions to get fractional display scaling working nicely on Linux distros that use X11
Stars: ✭ 52 (-3.7%)
Mutual labels:  xorg, x11

marathon

marathon is a minimal shell-based launcher for Linux/X that tries to be smart about running or focusing apps. When calling marathon application,

  • If application is not running, marathon will run it.
  • Else marathon will just focus application

That way, after binding your favorite apps to a few easily-accessible OS global keyboard shortcuts, you can access them with a single keypress and forget about alt-tabbing or clicking app icons in your dock / window list.

Flags:

  • --toggle will emulate the Quake terminal-like behavior of minimizing already-focused windows. (By default, marathon leaves them untouched.)

  • --ignore-args-on-focus will ignore command arguments when focusing (e.g. --incognito in marathon google-chrome --incognito) while still passing them on initial run.

    • This is useful for applications who use a runner or spawn other processes, making ineffective post-exec searching for the fully-qualified command.
    • This is not what you want if the process you want to focus needs arguments to be uniquely identified (e.g. gvim -S work).
  • --launch-closed will use the active window list to determine if the requested program is running. By default, marathon looks in the process list. Useful to focus well-behaved single-instance programs closed to tray that respond to a re-launch by activating the window (e.g. Slack).

Installation

  • macOS is not supported, sorry (due to depending on Xorg utilities). But rejoice, you'll be well served with Automator or Alfred, see for example this guide

  • Linux:

    1. X is required, as there is (at time of writing) no equivalent to wmctrl / xdotool under Wayland. You'll have to disable Wayland. Suggestions welcome in issue #5 - Support Wayland.
    2. Install wmctrl and xdotool from your package manager.
    3. Drop marathon somewhere in your $PATH.
    4. Bind marathon command (optionally adding flags) to a keyboard shortcut, courtesy of your Desktop Environment / Window Manager:
      • GNOME → Settings → Devices → Keyboard → section Custom Shortcuts. Mine look like:
        GNOME Keyboard Settings screenshot
      • LXDE → your lxde-rc.xml

Nit: ensure the app process name (or window class if using --launch-closed) matches the executable filename. If not, a symlink will do the trick.

Support, license, contact

Bug Reports and Pull Requests are welcome.

Licensed under the MIT license, 2012-2018, Ronan Jouchet / @ronjouch

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].