8000 GitHub - twoojoo/rofi-utils: A bunch of custom menus based on rofi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

twoojoo/rofi-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rofi Custom Utils

A collection of useful custom utilities based on rofi, fully written in bash syntax.

Dependencies

  • nerd-fonts (all utils)
  • xdotool (rofi-todo-list)
  • xclip (rofi-screenshot)
  • pinta (rofi-screenshot)

Installation

Just clone this repository and set a shortcut for each script.

git clone git@github.com:twoojoo/rofi-utils.git

I personally use the following shortcuts (set via i3wm config file):

  • Alt+Enter: rofi-chromium-bookmarks
  • Shift+Enter: rofi-window-switcher
  • Ctrl+Alt+Enter: rofi-path-launcher
  • Ctrl+Shift+Enter: rofi-todo-list
  • Ctrl+Shift+e: rofi-system-menu
  • Ctrl+Alt+x: rofi-tmuxinator
  • Ctrl+Alt+s: rofi-screenshot

Utilities

rofi-path-launcher

By reading a json config file launch applications by poviding them saved custom paths as arguments

  • default config file: ~/.rofi-path-launcher.config.json (will be created at the first run if doesn't exist yet)
  • can add or remove programs and paths directly form the rofi menu (edit option to be implemented)
  • example config (<path> is a placeholder for the selected path):
{
    "CodeOSS": {
        "command": "code <path>",
        "paths": [
            "~/Scripts/rofi",
            "~/Projects/dotfiles"
        ]
    },
    "SublimeText4": {
        "command": "subl <path>",
        "paths": [
            "~/Scripts/rofi",
            "~/Projects"
        ]
    },
    "Kate": {
        "command": "kate <path>",
        "paths": [
            "~/Notes"
        ]
    }
}

rofi-chromiun-bookmarks

Automatically reads saved Chromium bookmarks and provide a menu for them

  • options:

    • -f|--bookmarks-file <path>: use a different bookmarks file. Must have the same structures of Chromium's one (default: $HOME/.config/chromium/Default/Bookmarks)
    • -b|--alt-browser <browser>: provide an alternative browser (its command) to open the urls (e.g. -b firefox, -b konqueror, -b lynx, etc...)
    • -c|--post-command <cmd>: execute a command after the bookmark is opened (I personally use this option to immediately switch to the workspace that contains the Chromium window)
    • -d|--debug: run in debug mode
  • gets bookmarks both from bookmark_bar and other bookmark folders (custom folders not yet implemented)

  • bookmarks naming:

    • be sure that bookamarks names are unique among all bookmarks folders

    • for some reason, if a bookmark name contains more than 1 consective space character, the script won't be able to match the name with the url. Try to avoid this situation. Maybe this could be fixed in the script itself.

    • I find very proficient to use this pattern when naming bookmarks:

      Personal/Utils/<my-company-name> - <website-name> [- <section-name>]

      (e.g. "Personal - Gmail", "Personal - Github", "Personal - Github - Repositories", "Utils - Base64 - Encode", "Utils - Base64 - Decode", etc...)

      This helps a lot keeping them tidy in the rofi menu.

  • todo:

    • implement a remove option (an add options is also possible but it's way more easy to create the bookmark from the chromium tab itself)
    • fix consecutive space char bug

rofi-tmuxinator

Just picks the tmuxinator coniguration files from ~/.tmuxinator folder, and allow to select one of them (for now requires alacritty to be installed).


rofi-todo-list

A basyc, yet effective, to-do list completely handled by a set of rofi menus.

  • default config file: $HOME/.rofi-todo-list.config.json
  • todo:
    • add priorities

rofi-window-switcher

Just a wrapper around the native rofi window mode to use the same theme as the other scripts.


rofi-system-menu

A basic menu to poweroff, reboot or logout.


Theming

All the scripts will use the theme.rasi file that is placed in the same directory.

About

A bunch of custom menus based on rofi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0