Simple popup for using marks in Sway

Overview

Simple popup for using marks in Sway

This allows you to use vim-like marks in sway easily.

image

Usage:

bindsym --to-code $mod+m exec sway-marker mark
bindsym --to-code $mod+grave exec sway-marker goto

After adding this to your sway config you can use marks like this:

mod+m and then type a character will create a mark on the currently focused container (window)

mod+grave(`) then type a character will focus the previously marked container.

Installation

Arch Linux: install the AUR package

Binary: you can download a binary from the releases page

Compiling: install rust, gtk and gtk-layer-shell and build with cargo build --release. The file will be in target/release/sway-marker.

You might also like...
A working example of multi targets compilation for Rust using Github Actions.

A working example of multi targets compilation for Rust using Github Actions. Supports Windows, MacOSX, x86_64, ARM and Raspberry PI Linux.

Cookiecutter templates for Serverless applications using AWS SAM and the Rust programming language.

Cookiecutter SAM template for Lambda functions in Rust This is a Cookiecutter template to create a serverless application based on the Serverless Appl

A tool that generates a Sublime Text project file that helps you get started using Scoggle.

README A tool that generates a Sublime Text project file that helps you get started using Scoggle. While Scoggle-Gen may not find every single source

Universal changelog generator using conventional commit+ with monorepo support. Written in Rust.
Universal changelog generator using conventional commit+ with monorepo support. Written in Rust.

chlog Universal changelog generator using conventional commit+ with monorepo support. chlog can generate the changelog from the conventional commits w

RTIC monotonic implementation using the RP2040's Timer peripheral

rp2040-monotonic RTIC monotonic implementation using the RP2040's Timer peripheral. Documentation License Licensed under either of Apache License, Ver

The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor.

The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor. It currently provides 2 examples and various inline todos on how to extend this.

Sketches I created using Rust + Nannou
Sketches I created using Rust + Nannou

Sketches Motivation I have followed generative artists like Ben Kovach and Tyler Hobbs for a while, and their artwork is truly impressive. Check them

Showcase for pathological compile times when using knuffel / chumsky / VERY LARGE types

netherquote Showcase for pathological compile times when using knuffel / chumsky / VERY LARGE types. How to reproduce The rust toolchain version is pi

Rust library to detect bots using a user-agent string

Rust library to detect bots using a user-agent string

Comments
  • FTBFS: in gtk-layer-shell-0

    FTBFS: in gtk-layer-shell-0

    Command cargo build --release ends with:

       Compiling gtk-layer-shell-sys v0.2.0
    error: failed to run custom build command for `gtk-layer-shell-sys v0.2.0`
    
    Caused by:
      process didn't exit successfully: `/home/matej/archiv/knihovna/repos/tmp/sway-marker/target/release/build/gtk-layer-shell-sys-c07fa2b5d4ec3513/build-script-build` (exit code: 1)
      --- stdout
      cargo:rerun-if-env-changed=GTK_LAYER_SHELL_0_NO_PKG_CONFIG
      cargo:rerun-if-env-changed=PKG_CONFIG
      cargo:rerun-if-env-changed=GTK_LAYER_SHELL_0_STATIC
      cargo:rerun-if-env-changed=GTK_LAYER_SHELL_0_DYNAMIC
      cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
      cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
      cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
      cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
      cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
      cargo:rerun-if-env-changed=PKG_CONFIG_PATH
      cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
      cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
      cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
      cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
      cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
      cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
      cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
      cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
    
      --- stderr
      `"pkg-config" "--libs" "--cflags" "gtk-layer-shell-0" "gtk-layer-shell-0 >= 0.1"` did not exit successfully: exit code: 1
      --- stderr
      Package gtk-layer-shell-0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gtk-layer-shell-0.pc'
      to the PKG_CONFIG_PATH environment variable
      Package 'gtk-layer-shell-0', required by 'virtual:world', not found
      Package 'gtk-layer-shell-0', required by 'virtual:world', not found
    
    warning: build failed, waiting for other jobs to finish...
    error: build failed
    

    Complete build log

    Also, technical question … is this sway dependent, wouldn't it work with another Wayland compatible window manager/compositor? Shouldn't it be wl-marker. Otherwise, the idea seems intriguing.

    opened by mcepl 7
  • Intorduce `--markup` option & use `clap` to parse arguments

    Intorduce `--markup` option & use `clap` to parse arguments

    This allows user to change the size, color and other properties of text, as well as setting a custom message.

    Example:

    sway-marker -m "<span color='red' font_desc='22'>{}</span>" mark
    
    opened by MaxVerevkin 0
  • Suppression of cancellation by Ctrl

    Suppression of cancellation by Ctrl

    After starting sway-maker, pressing Ctrl cancels it. https://github.com/rvaiya/keyd/issues/157

    I would be happy if I could make it so that modifier keys such as Ctrl are ignored, how do you feel about that?

    opened by funcrab 0
Releases(0.2)
Owner
null
🏪 Modern emoji picker popup for desktop, based on Emoji Mart, built with Tauri and Svelte

Emoji Mart desktop popup Modern emoji picker popup app for desktop, based on the amazing Emoji Mart web component. ?? Built as a popup: quick invocati

Vincent Emonet 10 Jul 3, 2023
Garden monitoring system using m328p Arduino Uno boards. 100% Rust [no_std] using the avr hardware abstraction layer (avr-hal)

uno-revive-rs References Arduino Garden Controller Roadmap uno-revive-rs: roadmap Components & Controllers 1-2 Uno R3 m328p Soil moisture sensor: m328

Ethan Gallucci 1 May 4, 2022
A simple workshop to learn how to write, test and deploy AWS Lambda functions using the Rust programming language

Rust Lambda Workshop Material to host a workshop on how to build and deploy Rust Lambda functions with AWS SAM and Cargo Lambda. Intro What is Serverl

Luciano Mammino 13 Mar 28, 2024
Concatenate Amazon S3 files remotely using flexible patterns

S3 Concat This tool has been migrated into s3-utils, please use that crate for future updates. A small utility to concatenate files in AWS S3. Designe

Isaac Whitfield 33 Dec 15, 2022
Mix async code with CPU-heavy thread pools using Tokio + Rayon

tokio-rayon Mix async code with CPU-heavy thread pools using Tokio + Rayon Resources Documentation crates.io TL;DR Sometimes, you're doing async stuff

Andy Barron 74 Jan 2, 2023
🦀 Rust-based implementation of a Snowflake Generator which communicates using gRPC

Clawflake Clawflake is a Rust application which implements Twitter Snowflakes and communicates using gRPC. Snowflake ID numbers are 63 bits integers s

n1c00o 5 Oct 31, 2022
A federated forum / link aggregator using ActivityPub.

lotide A federated forum / link aggregator using ActivityPub. To track progress and report issues, visit the issue tracker. Submit patches on the mail

null 9 Oct 16, 2022
A pure Rust PLONK implementation using arkworks as a backend.

PLONK This is a pure Rust implementation of the PLONK zk proving system Usage use ark_plonk::prelude::*; use ark_ec::bls12::Bls12; use rand_core::OsRn

rust-zkp 201 Dec 31, 2022
This crate allows you to safely initialize Dynamically Sized Types (DST) using only safe Rust.

This crate allows you to safely initialize Dynamically Sized Types (DST) using only safe Rust.

Christofer Nolander 11 Dec 22, 2022
k-mer counter in Rust using the rust-bio and rayon crates

krust is a k-mer counter written in Rust and run from the command line that will output canonical k-mers and their frequency across the records in a f

null 14 Jan 7, 2023