Browse Source

Small style fixes

tags/2.0.0
Fabian Winter 1 year ago
parent
commit
566016d9d8
1 changed files with 15 additions and 13 deletions
  1. 15
    13
      rofimoji.py

+ 15
- 13
rofimoji.py View File

@@ -1649,14 +1649,16 @@ emojis = """๐Ÿ˜€ grinning face
๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ flag: Wales
"""

skin_tone_selectable_emojis = {'๐Ÿ„', '๐Ÿ‘ผ', '๐Ÿ’‚', 'โœŒ', '๐Ÿ‘ƒ', '๐Ÿง™', '๐Ÿ–', '๐Ÿ•ด', '๐Ÿ––', '๐Ÿ‘', '๐Ÿ‘ฑ', '๐Ÿ‘‹', '๐Ÿง', '๐Ÿ‘ฐ', '๐Ÿง›',
'๐Ÿค›', '๐Ÿ‘Œ', '๐Ÿ‘‚', 'โœ', '๐ŸคŸ', '๐Ÿ™Ž', '๐Ÿšถ', '๐Ÿคด', '๐Ÿ‘', '๐Ÿ™', '๐Ÿง“', '๐Ÿšฃ', '๐Ÿ‘ฎ', '๐Ÿ™Œ', '๐Ÿ‘ง',
'โœ‹', '๐Ÿ‹', '๐Ÿ™‡', '๐Ÿง–', '๐Ÿ‘ท', '๐Ÿšต', '๐Ÿ›€', '๐Ÿคถ', '๐Ÿ‘Š', '๐Ÿ‘ฆ', '๐Ÿ‘ธ', '๐Ÿ’ช', '๐Ÿ™†', '๐Ÿคฑ', '๐Ÿคธ',
'๐Ÿคž', '๐Ÿ–•', 'โ›น', '๐Ÿ‘ฒ', '๐Ÿง‘', '๐Ÿ’', '๐Ÿง˜', '๐Ÿ™‹', 'โ˜', '๐Ÿง•', '๐Ÿ‘ต', '๐Ÿšด', '๐Ÿ‡', '๐Ÿคณ', '๐Ÿ™',
'๐Ÿง’', '๐Ÿ‘ถ', '๐Ÿฆธ', '๐Ÿ‘จ', '๐Ÿ‘†', '๐Ÿ’ƒ', '๐Ÿคพ', '๐Ÿ‚', '๐Ÿ›Œ', '๐Ÿคน', '๐Ÿ‘ˆ', 'โœŠ', '๐Ÿงš', '๐Ÿ’…', '๐Ÿคฝ',
'๐Ÿ™…', '๐Ÿง”', '๐Ÿคฒ', '๐Ÿ‘Ž', '๐Ÿ‘ด', '๐ŸŒ', '๐Ÿงœ', '๐Ÿ‘', '๐Ÿคš', '๐Ÿคต', '๐Ÿ’‡', '๐Ÿƒ', '๐ŸŠ', '๐Ÿคœ', '๐Ÿฆต',
'๐Ÿ‘‡', '๐Ÿ•บ', '๐Ÿฆน', '๐Ÿง—', '๐Ÿ‘ฉ', '๐Ÿ•ต', '๐Ÿ’†', '๐Ÿฆถ', '๐Ÿคฐ', '๐Ÿค˜', '๐Ÿคฆ', '๐Ÿคท', '๐Ÿ‘‰', '๐Ÿ‘ณ', '๐ŸŽ…',
'๐Ÿค™'}
skin_tone_selectable_emojis = {'๐Ÿ„', '๐Ÿ‘ผ', '๐Ÿ’‚', 'โœŒ', '๐Ÿ‘ƒ', '๐Ÿง™', '๐Ÿ–', '๐Ÿ•ด', '๐Ÿ––', '๐Ÿ‘', '๐Ÿ‘ฑ',
'๐Ÿ‘‹', '๐Ÿง', '๐Ÿ‘ฐ', '๐Ÿง›', '๐Ÿค›', '๐Ÿ‘Œ', '๐Ÿ‘‚', 'โœ', '๐ŸคŸ', '๐Ÿ™Ž', '๐Ÿšถ',
'๐Ÿคด', '๐Ÿ‘', '๐Ÿ™', '๐Ÿง“', '๐Ÿšฃ', '๐Ÿ‘ฎ', '๐Ÿ™Œ', '๐Ÿ‘ง', 'โœ‹', '๐Ÿ‹', '๐Ÿ™‡',
'๐Ÿง–', '๐Ÿ‘ท', '๐Ÿšต', '๐Ÿ›€', '๐Ÿคถ', '๐Ÿ‘Š', '๐Ÿ‘ฆ', '๐Ÿ‘ธ', '๐Ÿ’ช', '๐Ÿ™†', '๐Ÿคฑ',
'๐Ÿคธ', '๐Ÿคž', '๐Ÿ–•', 'โ›น', '๐Ÿ‘ฒ', '๐Ÿง‘', '๐Ÿ’', '๐Ÿง˜', '๐Ÿ™‹', 'โ˜', '๐Ÿง•', '๐Ÿ‘ต',
'๐Ÿšด', '๐Ÿ‡', '๐Ÿคณ', '๐Ÿ™', '๐Ÿง’', '๐Ÿ‘ถ', '๐Ÿฆธ', '๐Ÿ‘จ', '๐Ÿ‘†', '๐Ÿ’ƒ', '๐Ÿคพ',
'๐Ÿ‚', '๐Ÿ›Œ', '๐Ÿคน', '๐Ÿ‘ˆ', 'โœŠ', '๐Ÿงš', '๐Ÿ’…', '๐Ÿคฝ', '๐Ÿ™…', '๐Ÿง”', '๐Ÿคฒ',
'๐Ÿ‘Ž', '๐Ÿ‘ด', '๐ŸŒ', '๐Ÿงœ', '๐Ÿ‘', '๐Ÿคš', '๐Ÿคต', '๐Ÿ’‡', '๐Ÿƒ', '๐ŸŠ', '๐Ÿคœ',
'๐Ÿฆต', '๐Ÿ‘‡', '๐Ÿ•บ', '๐Ÿฆน', '๐Ÿง—', '๐Ÿ‘ฉ', '๐Ÿ•ต', '๐Ÿ’†', '๐Ÿฆถ', '๐Ÿคฐ', '๐Ÿค˜',
'๐Ÿคฆ', '๐Ÿคท', '๐Ÿ‘‰', '๐Ÿ‘ณ', '๐ŸŽ…', '๐Ÿค™'}

fitzpatrick_modifiers = """ neutral
๐Ÿป light skin
@@ -1667,7 +1669,7 @@ fitzpatrick_modifiers = """ neutral
"""


def select_skin_tone(emoji: chr):
def select_skin_tone(selected_emoji: chr):
rofi_skin = Popen(
args=[
'rofi',
@@ -1675,7 +1677,7 @@ def select_skin_tone(emoji: chr):
'-i',
'-multi-select',
'-p',
emoji + ' ',
selected_emoji + ' ',
'-kb-custom-1',
'Alt+c'
],
@@ -1683,12 +1685,12 @@ def select_skin_tone(emoji: chr):
stdout=PIPE
)

(stdout_skin, stderr_skin) = rofi_skin.communicate(input=fitzpatrick_modifiers.encode('utf-8'))
(stdout_skin, _) = rofi_skin.communicate(input=fitzpatrick_modifiers.encode('utf-8'))

if rofi_skin.returncode == 1:
return ''
else:
return stdout_skin.split()[0].decode('utf-8')
return stdout_skin.split()[0].decode('utf-8')


rofi = Popen(

Loadingโ€ฆ
Cancel
Save