Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍚 riceswap

[heavily wip] hyprland/quickshell rice swappper cli tool.

no documentation yet, but try it out.

run riceswap -h for help

its fully crossplatform as its just a bash script.

installation

# not an install script, the full script that is moved to ~/.local/bin
curl -fsSL "https://raw.githubusercontent.com/im-vihar/riceswap/main/riceswap" -o ~/.local/bin/riceswap && chmod +x ~/.local/bin/riceswap && riceswap

inititialize

Warning

err there's a gray area where if you run this with files actually inside ~/.config/hypr and /quickshell you may loose them. just create a new profile with riceswap create <name> and move your hypr and quickshell folder into ~/.config/riceswap/profiles<name>

riceswap init
custom ui (using rofi/fuzzel) if you're someone like me, you have multiple profiles, and so a simple switch-like keybind that just runs riceswap set scroll isnt enough. a simple rofi/fuzzel -dmenu script works well. and then just bind a key to run this script on press.

rofi:

#!/usr/bin/env bash

# Force include standard binary folders just in case
export PATH="$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:/bin:$PATH"

# 1. Parse the available profiles clean into Rofi
CHOSEN=$(riceswap list | awk 'NR>2 {print $2}' | rofi -dmenu -i -p "🍚 riceswap set" -theme-str 'entry { placeholder: "Search profiles..."; }')

# 2. If the user didn't hit Escape/cancel, apply the selected profile
if [ -n "$CHOSEN" ]; then
    riceswap set "$CHOSEN"
fi

fuzzel:

#!/usr/bin/env bash

# Force include standard binary folders just in case
export PATH="$HOME/.local/bin:$HOME/bin:/usr/local/bin:/usr/bin:/bin:$PATH"

# 1. Parse the available profiles clean into Fuzzel (using absolute paths or explicit PATH)
CHOSEN=$(riceswap list | awk 'NR>2 {print $2}' | fuzzel --dmenu --prompt="🍚 riceswap set: " --placeholder="Search profiles...")

# 2. If the user didn't hit Escape/cancel, apply the selected profile
if [ -n "$CHOSEN" ]; then
   riceswap set "$CHOSEN"
fi

About

[heavily wip] hyprland/quickshell rice swappper cli tool.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages