Rofi… making it fly faster…

Forum Forums General Tips and Tricks Rofi… making it fly faster…

  • This topic has 3 replies, 4 voices, and was last updated Jan 18-12:26 am by ex_Koo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #50034
    Member
    manyroads

      As many of you know, Rofi is a powerful dmenu ‘replacement’ menu. It ‘supposedly’ runs faster by some 25% if used with j4-dmenu rather than plain dmenu. I have not measured the speed, but I can say it is blistering fast on my machines. If you have not used it either way, here are some examples. Simply mate these with your preferred keybindings and place them in an autostart. These will work with any Desktop Environment or Window Manager.

      Rofi showing all active applications: with & without j4-dmenu

      without j4-dmenu==> rofi -modi window -show window -show-icons -sidebar-mode
      with j4-dmenu==> j4-dmenu-desktop –dmenu=’rofi -modi window -show window -show-icons -sidebar-mode’

      Compound rofi fully searchable menu: with & without j4-dmenu

      without j4-dmenu==> rofi -modi drun,window,run -show drun -show-icons -sidebar-mode -location 0 -width 360
      with j4-dmenu==> j4-dmenu-desktop –dmenu=’rofi -modi drun,window,run -show drun -show-icons -sidebar-mode -location 0 -width 360′

      Pax vobiscum,
      Mark Rabideau - http://many-roads.com
      "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
      dwm & i3wm ~Reg. Linux User #449130
      20 Jan 2021 ~ "End of an Error"

      #50037
      Member
      PPC
        Helpful
        Up
        0
        ::

        And I always suggest this script- “rofi-locate”, the fastest GUI way to find (by name contents) and run files:

        xdg-open "$(locate home media | rofi -threads 0 -dmenu -i -p "locate:")"

        P.

        • This reply was modified 2 years, 3 months ago by PPC.
        #50041
        Member
        sleekmason
          Helpful
          Up
          0
          ::

          Thank you for all of the commands. Looks interesting. Currently using dmenu for a “custom apps” line, as well as an “all apps” line. Maybe rofi needs to fit in somewhere as well:)

          #50046
          Member
          ex_Koo
            Helpful
            Up
            0
            ::

            @ PPC

            Been using locate for a while and rofi got this from gotbletu.
            https://github.com/gotbletu/shownotes/blob/master/rofi-scripts-collection/rofi-locate.sh

            Also I update the data base as well.
            sudo updatedb

            bindsym $mod+shift+l exec –no-startup-id xdg-open “$(locate home media | rofi -threads 0 -dmenu -i -p “locate:”)”
            bindsym $mod+shift+s exec –no-startup-id xdg-open “$(locate home system | rofi -threads 0 -width 100 -dmenu -i -p “locate:”)” <<< with system added.

            All about db commands.
            https://www.lifewire.com/updatedb-linux-command-4095883

            • This reply was modified 2 years, 3 months ago by ex_Koo.
            • This reply was modified 2 years, 3 months ago by ex_Koo.
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.