Skip to content

u/muntoo

In this archive from Mar 2012 to Apr 2024

5
posts
278
comments
3
media
1.7k
score
1 saved before deletion

Top posts

Top comments

I'm sorry. I can't hear you over the sound of me patenting the idea of breathing.

P.S. If you do not cease and desist your breathing, we will be forced to take action. Unless you are outside the country of the free.

83 points

I made something similar, but it has frecency (frequency + recency) filtering as well.

https://github.com/SicariusNoctis/frece#rofi

Perhaps the two could be combined? :D


EDIT: Got it to work with a few changes to your script:

#!/bin/bash

SRC_PATH="$HOME/.config/rofi/emoji-list"
DB_PATH="HOME/.config/rofi/emoji.db"

# Create database (see also: `frece update`)
[[ -f "$DB_PATH" ]] || frece init $DB_PATH $SRC_PATH

# Rofi
line=`frece print "$DB_PATH" | rofi -dmenu -theme emoji-selector-theme -i -markup-rows -p "" -columns 6`
[[ -z $line ]] && exit

# Increment entry and paste
frece increment "$DB_PATH" "$line"
a="${line#*>}"
b="${a%<*}"
echo -n $b | xsel -ipb
xdotool key Ctrl+Shift+v
59 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.