Skip to content

martinstark/sway-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

A collection of utility scripts for Sway/Wayland desktops.

Installation

Requires sway with tofi as launcher.

In sway config:

set $menu tofi-drun \
  --width 360 \
  --height 272 \
  | xargs -d '\n' swaymsg exec --

To install scripts as well as desktop entries, run:

chmod +x ./install.sh
./install.sh

Copies all scripts from src/ to ~/.local/bin/, and desktop files to ~/.local/share/applications.

Scripts

tofi-bluetooth

Interactive Bluetooth device manager using tofi.

  • Power on/off toggle
  • Device scanning
  • Connect/disconnect paired devices
  • Pair new devices
  • Remove paired devices
  • Shows device type icons and connection status
image image

Dependencies:

  • tofi
  • bluetoothctl (bluez)
  • notify-send (libnotify)

tofi-cliphist

Clipboard history selector. Selecting an item in clip history will put it in wl-copy.

image image

Dependencies:

  • tofi
  • cliphist
  • wl-copy (wl-clipboard)

tofi-cliphist-preview

Clipboard history selector with live preview support. Shows image previews for copied images and syntax-highlighted text previews for code/text entries.

Features:

  • Image preview (PNG, JPG, WebP, GIF)
  • Text preview with syntax highlighting
  • Preview window automatically positioned next to tofi
image

Dependencies:

  • tofi (with --stream-events support - requires custom build from tofi fork)
  • cliphist
  • wl-copy (wl-clipboard)
  • imv (image preview)
  • alacritty (terminal for text preview)
  • micro (text editor for preview)
  • jq (JSON parsing)
  • swaymsg (sway)

License

MIT

About

Collection of utility scripts for sway and tofi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages