diff options
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/dmapimg | 6 | ||||
-rwxr-xr-x | bin/guiscripts/dmclip | 83 | ||||
-rwxr-xr-x | bin/guiscripts/dmdsktp | 12 | ||||
-rwxr-xr-x | bin/guiscripts/dmemoji | 1423 | ||||
-rwxr-xr-x | bin/guiscripts/dmfm | 17 | ||||
-rwxr-xr-x | bin/guiscripts/dmhelp | 26 | ||||
-rwxr-xr-x | bin/guiscripts/dminw | 4 | ||||
-rwxr-xr-x | bin/guiscripts/dmlang | 7 | ||||
-rwxr-xr-x | bin/guiscripts/dmpass | 11 | ||||
-rwxr-xr-x | bin/guiscripts/dmpassgen | 20 | ||||
-rwxr-xr-x | bin/guiscripts/dmpdf | 14 | ||||
-rwxr-xr-x | bin/guiscripts/dmpower | 3 | ||||
-rwxr-xr-x | bin/guiscripts/dmpsbm | 2 | ||||
-rwxr-xr-x | bin/guiscripts/dmpsclip | 3 | ||||
-rwxr-xr-x | bin/guiscripts/dmvid | 14 | ||||
-rwxr-xr-x | bin/guiscripts/dmyt-not | 6 |
16 files changed, 1651 insertions, 0 deletions
diff --git a/bin/guiscripts/dmapimg b/bin/guiscripts/dmapimg new file mode 100755 index 0000000..25c414b --- /dev/null +++ b/bin/guiscripts/dmapimg @@ -0,0 +1,6 @@ +#!/bin/bash +appimage="$(\ + find ~/.local/share/appimages -type f -printf "%f\n" \ + | sed 's/\.[Aa]pp[Ii]mage$//g' \ + | dmenu -x -l 10 -g 1 -p "AppImage:")" +setsid ~/AppImages/"${appimage:-NOSEL}"* diff --git a/bin/guiscripts/dmclip b/bin/guiscripts/dmclip new file mode 100755 index 0000000..5282b35 --- /dev/null +++ b/bin/guiscripts/dmclip @@ -0,0 +1,83 @@ +#!/usr/bin/env bash +NotImage () { + echo -n "" | dmenu -p "NOT AN IMAGE" + exit +} + +# Display clipboard max length + +selection="$(echo -e "primary\nclipboard\nswap" | dmenu -l 1 -g 3 -p "selection:")" +if [[ "${selection}" == "swap" ]] +then + clipboard="$(xclip -o)" + xclip -o | xclip -sel c + echo -n "${clipboard}" | xclip -sel c + exit +elif [[ "${selection}" == "" ]] +then + exit 1 +fi +if "${selection}" == "primary" ]] +then + selection2="clipboard" +else + selection2="primary" +fi + + +clipboard="$(xclip -out -sel "${selection}" -r)" + +DICL_LEN=48 +if [[ "$(xclip -sel ${selection} -o | head -n1 | cut -c 2-4)" == "PNG" ]] +then + disp_clip="IMAGE" +else + disp_clip="$(echo -n "${clipboard}" | tr -d '\n' | cut -c -"${DICL_LEN}")" +fi + +menu_option="$(\ + echo -e "save\nload\nimage\nreplace" \ + | dmenu -l 1 -g 4 -p "'${disp_clip}'" \ +)" +[[ "${menu_option}" ]] || exit + +case "${menu_option}" in + + replace) + replace_text="$(echo -n "" | dmenu -l 0 -p "replace:")" + [[ "${replace_text}" ]] || exit + replace_by_text="$(echo -n "" | dmenu -l 0 -p "by:")" + [[ "${replace_by_text}" ]] || exit + echo "${clipboard}" \ + | sed "s/${replace_text}/${replace_by_text}/g" \ + | xclip -r -sel "${selection}" + ;; + + save) + echo "${clipboard}" >> /tmp/tmpclip.txt + ;; + load) + choice="$(\ + sort /tmp/tmpclip.txt \ + | uniq \ + | dmenu -g 1 -l 5 || exit \ + )" + echo -n "${choice}" | xclip -sel "${selection}" + ;; + + image) + # Menu + # 1: line from paragraph + # 2: param + # + file_name="tmp_xclip" + xclip -o -sel c > "/tmp/${file_name}.png" + file "/tmp/${file_name}.png" \ + | cut -d ':' -f 2 \ + | grep "image" || NotImage + # sed so that dmenu doesn't skip if one line + tesseract "/tmp/${file_name}.png" stdout > "/tmp/${file_name}" + sed "1i\ " "/tmp/${file_name}" | dmenu -l 10 -g 1 -p "PREVIEW:" -l 20 || exit + xclip -sel "${selection}" -in "/tmp/${file_name}" + ;; +esac diff --git a/bin/guiscripts/dmdsktp b/bin/guiscripts/dmdsktp new file mode 100755 index 0000000..2e0ef24 --- /dev/null +++ b/bin/guiscripts/dmdsktp @@ -0,0 +1,12 @@ +#!/bin/bash +# Searches through .desktop files and prompt to launch them via dmenu +gtk-launch \ + "$(\ + find ~/.local/share/applications \ + -maxdepth 1 \ + -type f \ + -not -iname "wine-extension*" -a -iname "*.desktop" \ + -printf "%f\n" \ + | cut -d. -f1 \ + | dmenu -i -p "app:" -g 1 \ + )" diff --git a/bin/guiscripts/dmemoji b/bin/guiscripts/dmemoji new file mode 100755 index 0000000..9f026b1 --- /dev/null +++ b/bin/guiscripts/dmemoji @@ -0,0 +1,1423 @@ +#!/bin/bash +# This files comes from: +# https://github.com/porras/dmenu-emoji +# +# If this file includes emojis below "__DATA__" it is generated. +# This file was generated: 2022-04-21 12:38:03+00:00 + +set -e + +case "$1" in + "list") + data=$(sed '0,/^__DATA__$/d' "$0") + echo "$data" + ;; + "copy") + input=$(tee) + if [ ! -z "$input" ]; then + emoji=${input::1} + echo -n "$emoji" | xclip -selection c + dunstify "dmemoji" "$emoji copied!" + fi + ;; + "") + bash $0 list | dmenu -x -g 1 -p 'Emoji: ' | bash $0 copy + ;; +esac + +exit + +__DATA__ +๐ grinning face +๐ grinning face with big eyes +๐ grinning face with smiling eyes +๐ beaming face with smiling eyes +๐ grinning squinting face +๐
grinning face with sweat +๐คฃ rolling on the floor laughing +๐ face with tears of joy +๐ slightly smiling face +๐ upside-down face +๐ซ melting face +๐ winking face +๐ smiling face with smiling eyes +๐ smiling face with halo +๐ฅฐ smiling face with hearts +๐ smiling face with heart-eyes +๐คฉ star-struck +๐ face blowing a kiss +๐ kissing face +โบ smiling face +๐ kissing face with closed eyes +๐ kissing face with smiling eyes +๐ฅฒ smiling face with tear +๐ face savoring food +๐ face with tongue +๐ winking face with tongue +๐คช zany face +๐ squinting face with tongue +๐ค money-mouth face +๐ค smiling face with open hands +๐คญ face with hand over mouth +๐ซข face with open eyes and hand over mouth +๐ซฃ face with peeking eye +๐คซ shushing face +๐ค thinking face +๐ซก saluting face +๐ค zipper-mouth face +๐คจ face with raised eyebrow +๐ neutral face +๐ expressionless face +๐ถ face without mouth +๐ซฅ dotted line face +๐ smirking face +๐ unamused face +๐ face with rolling eyes +๐ฌ grimacing face +๐คฅ lying face +๐ relieved face +๐ pensive face +๐ช sleepy face +๐คค drooling face +๐ด sleeping face +๐ท face with medical mask +๐ค face with thermometer +๐ค face with head-bandage +๐คข nauseated face +๐คฎ face vomiting +๐คง sneezing face +๐ฅต hot face +๐ฅถ cold face +๐ฅด woozy face +๐ต face with crossed-out eyes +๐คฏ exploding head +๐ค cowboy hat face +๐ฅณ partying face +๐ฅธ disguised face +๐ smiling face with sunglasses +๐ค nerd face +๐ง face with monocle +๐ confused face +๐ซค face with diagonal mouth +๐ worried face +๐ slightly frowning face +โน frowning face +๐ฎ face with open mouth +๐ฏ hushed face +๐ฒ astonished face +๐ณ flushed face +๐ฅบ pleading face +๐ฅน face holding back tears +๐ฆ frowning face with open mouth +๐ง anguished face +๐จ fearful face +๐ฐ anxious face with sweat +๐ฅ sad but relieved face +๐ข crying face +๐ญ loudly crying face +๐ฑ face screaming in fear +๐ confounded face +๐ฃ persevering face +๐ disappointed face +๐ downcast face with sweat +๐ฉ weary face +๐ซ tired face +๐ฅฑ yawning face +๐ค face with steam from nose +๐ก pouting face +๐ angry face +๐คฌ face with symbols on mouth +๐ smiling face with horns +๐ฟ angry face with horns +๐ skull +โ skull and crossbones +๐ฉ pile of poo +๐คก clown face +๐น ogre +๐บ goblin +๐ป ghost +๐ฝ alien +๐พ alien monster +๐ค robot +๐บ grinning cat +๐ธ grinning cat with smiling eyes +๐น cat with tears of joy +๐ป smiling cat with heart-eyes +๐ผ cat with wry smile +๐ฝ kissing cat +๐ weary cat +๐ฟ crying cat +๐พ pouting cat +๐ see-no-evil monkey +๐ hear-no-evil monkey +๐ speak-no-evil monkey +๐ kiss mark +๐ love letter +๐ heart with arrow +๐ heart with ribbon +๐ sparkling heart +๐ growing heart +๐ beating heart +๐ revolving hearts +๐ two hearts +๐ heart decoration +โฃ heart exclamation +๐ broken heart +โค red heart +๐งก orange heart +๐ yellow heart +๐ green heart +๐ blue heart +๐ purple heart +๐ค brown heart +๐ค black heart +๐ค white heart +๐ฏ hundred points +๐ข anger symbol +๐ฅ collision +๐ซ dizzy +๐ฆ sweat droplets +๐จ dashing away +๐ณ hole +๐ฃ bomb +๐ฌ speech balloon +๐จ left speech bubble +๐ฏ right anger bubble +๐ญ thought balloon +๐ค zzz +๐ waving hand +๐ค raised back of hand +๐ hand with fingers splayed +โ raised hand +๐ vulcan salute +๐ซฑ rightwards hand +๐ซฒ leftwards hand +๐ซณ palm down hand +๐ซด palm up hand +๐ OK hand +๐ค pinched fingers +๐ค pinching hand +โ victory hand +๐ค crossed fingers +๐ซฐ hand with index finger and thumb crossed +๐ค love-you gesture +๐ค sign of the horns +๐ค call me hand +๐ backhand index pointing left +๐ backhand index pointing right +๐ backhand index pointing up +๐ middle finger +๐ backhand index pointing down +โ index pointing up +๐ซต index pointing at the viewer +๐ thumbs up +๐ thumbs down +โ raised fist +๐ oncoming fist +๐ค left-facing fist +๐ค right-facing fist +๐ clapping hands +๐ raising hands +๐ซถ heart hands +๐ open hands +๐คฒ palms up together +๐ค handshake +๐ folded hands +โ writing hand +๐
nail polish +๐คณ selfie +๐ช flexed biceps +๐ฆพ mechanical arm +๐ฆฟ mechanical leg +๐ฆต leg +๐ฆถ foot +๐ ear +๐ฆป ear with hearing aid +๐ nose +๐ง brain +๐ซ anatomical heart +๐ซ lungs +๐ฆท tooth +๐ฆด bone +๐ eyes +๐ eye +๐
tongue +๐ mouth +๐ซฆ biting lip +๐ถ baby +๐ง child +๐ฆ boy +๐ง girl +๐ง person +๐ฑ person: blond hair +๐จ man +๐ง person: beard +๐ฉ woman +๐ง older person +๐ด old man +๐ต old woman +๐ person frowning +๐ person pouting +๐
person gesturing NO +๐ง deaf person +๐ person bowing +๐คฆ person facepalming +๐คท person shrugging +๐ฎ police officer +๐ต detective +๐ guard +๐ฅท ninja +๐ท construction worker +๐ซ
person with crown +๐คด prince +๐ธ princess +๐ณ person wearing turban +๐ฒ person with skullcap +๐ง woman with headscarf +๐คต person in tuxedo +๐ฐ person with veil +๐คฐ pregnant woman +๐ซ pregnant man +๐ซ pregnant person +๐คฑ breast-feeding +๐ผ baby angel +๐
Santa Claus +๐คถ Mrs. Claus +๐ฆธ superhero +๐ฆน supervillain +๐ง mage +๐ง fairy +๐ง vampire +๐ง merperson +๐ง elf +๐ง genie +๐ง zombie +๐ง troll +๐ person getting massage +๐ person getting haircut +๐ถ person walking +๐ง person standing +๐ง person kneeling +๐ person running +๐ woman dancing +๐บ man dancing +๐ด person in suit levitating +๐ฏ people with bunny ears +๐ง person in steamy room +๐ง person climbing +๐คบ person fencing +๐ horse racing +โท skier +๐ snowboarder +๐ person golfing +๐ person surfing +๐ฃ person rowing boat +๐ person swimming +โน person bouncing ball +๐ person lifting weights +๐ด person biking +๐ต person mountain biking +๐คธ person cartwheeling +๐คผ people wrestling +๐คฝ person playing water polo +๐คพ person playing handball +๐คน person juggling +๐ง person in lotus position +๐ person taking bath +๐ person in bed +๐ญ women holding hands +๐ซ woman and man holding hands +๐ฌ men holding hands +๐ kiss +๐ couple with heart +๐ช family +๐ฃ speaking head +๐ค bust in silhouette +๐ฅ busts in silhouette +๐ซ people hugging +๐ฃ footprints +๐ฆฐ red hair +๐ฆฑ curly hair +๐ฆณ white hair +๐ฆฒ bald +๐ต monkey face +๐ monkey +๐ฆ gorilla +๐ฆง orangutan +๐ถ dog face +๐ dog +๐ฆฎ guide dog +๐ฉ poodle +๐บ wolf +๐ฆ fox +๐ฆ raccoon +๐ฑ cat face +๐ cat +๐ฆ lion +๐ฏ tiger face +๐
tiger +๐ leopard +๐ด horse face +๐ horse +๐ฆ unicorn +๐ฆ zebra +๐ฆ deer +๐ฆฌ bison +๐ฎ cow face +๐ ox +๐ water buffalo +๐ cow +๐ท pig face +๐ pig +๐ boar +๐ฝ pig nose +๐ ram +๐ ewe +๐ goat +๐ช camel +๐ซ two-hump camel +๐ฆ llama +๐ฆ giraffe +๐ elephant +๐ฆฃ mammoth +๐ฆ rhinoceros +๐ฆ hippopotamus +๐ญ mouse face +๐ mouse +๐ rat +๐น hamster +๐ฐ rabbit face +๐ rabbit +๐ฟ chipmunk +๐ฆซ beaver +๐ฆ hedgehog +๐ฆ bat +๐ป bear +๐จ koala +๐ผ panda +๐ฆฅ sloth +๐ฆฆ otter +๐ฆจ skunk +๐ฆ kangaroo +๐ฆก badger +๐พ paw prints +๐ฆ turkey +๐ chicken +๐ rooster +๐ฃ hatching chick +๐ค baby chick +๐ฅ front-facing baby chick +๐ฆ bird +๐ง penguin +๐ dove +๐ฆ
eagle +๐ฆ duck +๐ฆข swan +๐ฆ owl +๐ฆค dodo +๐ชถ feather +๐ฆฉ flamingo +๐ฆ peacock +๐ฆ parrot +๐ธ frog +๐ crocodile +๐ข turtle +๐ฆ lizard +๐ snake +๐ฒ dragon face +๐ dragon +๐ฆ sauropod +๐ฆ T-Rex +๐ณ spouting whale +๐ whale +๐ฌ dolphin +๐ฆญ seal +๐ fish +๐ tropical fish +๐ก blowfish +๐ฆ shark +๐ octopus +๐ spiral shell +๐ชธ coral +๐ snail +๐ฆ butterfly +๐ bug +๐ ant +๐ honeybee +๐ชฒ beetle +๐ lady beetle +๐ฆ cricket +๐ชณ cockroach +๐ท spider +๐ธ spider web +๐ฆ scorpion +๐ฆ mosquito +๐ชฐ fly +๐ชฑ worm +๐ฆ microbe +๐ bouquet +๐ธ cherry blossom +๐ฎ white flower +๐ชท lotus +๐ต rosette +๐น rose +๐ฅ wilted flower +๐บ hibiscus +๐ป sunflower +๐ผ blossom +๐ท tulip +๐ฑ seedling +๐ชด potted plant +๐ฒ evergreen tree +๐ณ deciduous tree +๐ด palm tree +๐ต cactus +๐พ sheaf of rice +๐ฟ herb +โ shamrock +๐ four leaf clover +๐ maple leaf +๐ fallen leaf +๐ leaf fluttering in wind +๐ชน empty nest +๐ชบ nest with eggs +๐ grapes +๐ melon +๐ watermelon +๐ tangerine +๐ lemon +๐ banana +๐ pineapple +๐ฅญ mango +๐ red apple +๐ green apple +๐ pear +๐ peach +๐ cherries +๐ strawberry +๐ซ blueberries +๐ฅ kiwi fruit +๐
tomato +๐ซ olive +๐ฅฅ coconut +๐ฅ avocado +๐ eggplant +๐ฅ potato +๐ฅ carrot +๐ฝ ear of corn +๐ถ hot pepper +๐ซ bell pepper +๐ฅ cucumber +๐ฅฌ leafy green +๐ฅฆ broccoli +๐ง garlic +๐ง
onion +๐ mushroom +๐ฅ peanuts +๐ซ beans +๐ฐ chestnut +๐ bread +๐ฅ croissant +๐ฅ baguette bread +๐ซ flatbread +๐ฅจ pretzel +๐ฅฏ bagel +๐ฅ pancakes +๐ง waffle +๐ง cheese wedge +๐ meat on bone +๐ poultry leg +๐ฅฉ cut of meat +๐ฅ bacon +๐ hamburger +๐ french fries +๐ pizza +๐ญ hot dog +๐ฅช sandwich +๐ฎ taco +๐ฏ burrito +๐ซ tamale +๐ฅ stuffed flatbread +๐ง falafel +๐ฅ egg +๐ณ cooking +๐ฅ shallow pan of food +๐ฒ pot of food +๐ซ fondue +๐ฅฃ bowl with spoon +๐ฅ green salad +๐ฟ popcorn +๐ง butter +๐ง salt +๐ฅซ canned food +๐ฑ bento box +๐ rice cracker +๐ rice ball +๐ cooked rice +๐ curry rice +๐ steaming bowl +๐ spaghetti +๐ roasted sweet potato +๐ข oden +๐ฃ sushi +๐ค fried shrimp +๐ฅ fish cake with swirl +๐ฅฎ moon cake +๐ก dango +๐ฅ dumpling +๐ฅ fortune cookie +๐ฅก takeout box +๐ฆ crab +๐ฆ lobster +๐ฆ shrimp +๐ฆ squid +๐ฆช oyster +๐ฆ soft ice cream +๐ง shaved ice +๐จ ice cream +๐ฉ doughnut +๐ช cookie +๐ birthday cake +๐ฐ shortcake +๐ง cupcake +๐ฅง pie +๐ซ chocolate bar +๐ฌ candy +๐ญ lollipop +๐ฎ custard +๐ฏ honey pot +๐ผ baby bottle +๐ฅ glass of milk +โ hot beverage +๐ซ teapot +๐ต teacup without handle +๐ถ sake +๐พ bottle with popping cork +๐ท wine glass +๐ธ cocktail glass +๐น tropical drink +๐บ beer mug +๐ป clinking beer mugs +๐ฅ clinking glasses +๐ฅ tumbler glass +๐ซ pouring liquid +๐ฅค cup with straw +๐ง bubble tea +๐ง beverage box +๐ง mate +๐ง ice +๐ฅข chopsticks +๐ฝ fork and knife with plate +๐ด fork and knife +๐ฅ spoon +๐ช kitchen knife +๐ซ jar +๐บ amphora +๐ globe showing Europe-Africa +๐ globe showing Americas +๐ globe showing Asia-Australia +๐ globe with meridians +๐บ world map +๐พ map of Japan +๐งญ compass +๐ snow-capped mountain +โฐ mountain +๐ volcano +๐ป mount fuji +๐ camping +๐ beach with umbrella +๐ desert +๐ desert island +๐ national park +๐ stadium +๐ classical building +๐ building construction +๐งฑ brick +๐ชจ rock +๐ชต wood +๐ hut +๐ houses +๐ derelict house +๐ house +๐ก house with garden +๐ข office building +๐ฃ Japanese post office +๐ค post office +๐ฅ hospital +๐ฆ bank +๐จ hotel +๐ฉ love hotel +๐ช convenience store +๐ซ school +๐ฌ department store +๐ญ factory +๐ฏ Japanese castle +๐ฐ castle +๐ wedding +๐ผ Tokyo tower +๐ฝ Statue of Liberty +โช church +๐ mosque +๐ hindu temple +๐ synagogue +โฉ shinto shrine +๐ kaaba +โฒ fountain +โบ tent +๐ foggy +๐ night with stars +๐ cityscape +๐ sunrise over mountains +๐
sunrise +๐ cityscape at dusk +๐ sunset +๐ bridge at night +โจ hot springs +๐ carousel horse +๐ playground slide +๐ก ferris wheel +๐ข roller coaster +๐ barber pole +๐ช circus tent +๐ locomotive +๐ railway car +๐ high-speed train +๐
bullet train +๐ train +๐ metro +๐ light rail +๐ station +๐ tram +๐ monorail +๐ mountain railway +๐ tram car +๐ bus +๐ oncoming bus +๐ trolleybus +๐ minibus +๐ ambulance +๐ fire engine +๐ police car +๐ oncoming police car +๐ taxi +๐ oncoming taxi +๐ automobile +๐ oncoming automobile +๐ sport utility vehicle +๐ป pickup truck +๐ delivery truck +๐ articulated lorry +๐ tractor +๐ racing car +๐ motorcycle +๐ต motor scooter +๐ฆฝ manual wheelchair +๐ฆผ motorized wheelchair +๐บ auto rickshaw +๐ฒ bicycle +๐ด kick scooter +๐น skateboard +๐ผ roller skate +๐ bus stop +๐ฃ motorway +๐ค railway track +๐ข oil drum +โฝ fuel pump +๐ wheel +๐จ police car light +๐ฅ horizontal traffic light +๐ฆ vertical traffic light +๐ stop sign +๐ง construction +โ anchor +๐ ring buoy +โต sailboat +๐ถ canoe +๐ค speedboat +๐ณ passenger ship +โด ferry +๐ฅ motor boat +๐ข ship +โ airplane +๐ฉ small airplane +๐ซ airplane departure +๐ฌ airplane arrival +๐ช parachute +๐บ seat +๐ helicopter +๐ suspension railway +๐ mountain cableway +๐ก aerial tramway +๐ฐ satellite +๐ rocket +๐ธ flying saucer +๐ bellhop bell +๐งณ luggage +โ hourglass done +โณ hourglass not done +โ watch +โฐ alarm clock +โฑ stopwatch +โฒ timer clock +๐ฐ mantelpiece clock +๐ twelve oโclock +๐ง twelve-thirty +๐ one oโclock +๐ one-thirty +๐ two oโclock +๐ two-thirty +๐ three oโclock +๐ three-thirty +๐ four oโclock +๐ four-thirty +๐ five oโclock +๐ five-thirty +๐ six oโclock +๐ก six-thirty +๐ seven oโclock +๐ข seven-thirty +๐ eight oโclock +๐ฃ eight-thirty +๐ nine oโclock +๐ค nine-thirty +๐ ten oโclock +๐ฅ ten-thirty +๐ eleven oโclock +๐ฆ eleven-thirty +๐ new moon +๐ waxing crescent moon +๐ first quarter moon +๐ waxing gibbous moon +๐ full moon +๐ waning gibbous moon +๐ last quarter moon +๐ waning crescent moon +๐ crescent moon +๐ new moon face +๐ first quarter moon face +๐ last quarter moon face +๐ก thermometer +โ sun +๐ full moon face +๐ sun with face +๐ช ringed planet +โญ star +๐ glowing star +๐ shooting star +๐ milky way +โ cloud +โ
sun behind cloud +โ cloud with lightning and rain +๐ค sun behind small cloud +๐ฅ sun behind large cloud +๐ฆ sun behind rain cloud +๐ง cloud with rain +๐จ cloud with snow +๐ฉ cloud with lightning +๐ช tornado +๐ซ fog +๐ฌ wind face +๐ cyclone +๐ rainbow +๐ closed umbrella +โ umbrella +โ umbrella with rain drops +โฑ umbrella on ground +โก high voltage +โ snowflake +โ snowman +โ snowman without snow +โ comet +๐ฅ fire +๐ง droplet +๐ water wave +๐ jack-o-lantern +๐ Christmas tree +๐ fireworks +๐ sparkler +๐งจ firecracker +โจ sparkles +๐ balloon +๐ party popper +๐ confetti ball +๐ tanabata tree +๐ pine decoration +๐ Japanese dolls +๐ carp streamer +๐ wind chime +๐ moon viewing ceremony +๐งง red envelope +๐ ribbon +๐ wrapped gift +๐ reminder ribbon +๐ admission tickets +๐ซ ticket +๐ military medal +๐ trophy +๐
sports medal +๐ฅ 1st place medal +๐ฅ 2nd place medal +๐ฅ 3rd place medal +โฝ soccer ball +โพ baseball +๐ฅ softball +๐ basketball +๐ volleyball +๐ american football +๐ rugby football +๐พ tennis +๐ฅ flying disc +๐ณ bowling +๐ cricket game +๐ field hockey +๐ ice hockey +๐ฅ lacrosse +๐ ping pong +๐ธ badminton +๐ฅ boxing glove +๐ฅ martial arts uniform +๐ฅ
goal net +โณ flag in hole +โธ ice skate +๐ฃ fishing pole +๐คฟ diving mask +๐ฝ running shirt +๐ฟ skis +๐ท sled +๐ฅ curling stone +๐ฏ bullseye +๐ช yo-yo +๐ช kite +๐ฑ pool 8 ball +๐ฎ crystal ball +๐ช magic wand +๐งฟ nazar amulet +๐ชฌ hamsa +๐ฎ video game +๐น joystick +๐ฐ slot machine +๐ฒ game die +๐งฉ puzzle piece +๐งธ teddy bear +๐ช
piรฑata +๐ชฉ mirror ball +๐ช nesting dolls +โ spade suit +โฅ heart suit +โฆ diamond suit +โฃ club suit +โ chess pawn +๐ joker +๐ mahjong red dragon +๐ด flower playing cards +๐ญ performing arts +๐ผ framed picture +๐จ artist palette +๐งต thread +๐ชก sewing needle +๐งถ yarn +๐ชข knot +๐ glasses +๐ถ sunglasses +๐ฅฝ goggles +๐ฅผ lab coat +๐ฆบ safety vest +๐ necktie +๐ t-shirt +๐ jeans +๐งฃ scarf +๐งค gloves +๐งฅ coat +๐งฆ socks +๐ dress +๐ kimono +๐ฅป sari +๐ฉฑ one-piece swimsuit +๐ฉฒ briefs +๐ฉณ shorts +๐ bikini +๐ womanโs clothes +๐ purse +๐ handbag +๐ clutch bag +๐ shopping bags +๐ backpack +๐ฉด thong sandal +๐ manโs shoe +๐ running shoe +๐ฅพ hiking boot +๐ฅฟ flat shoe +๐ high-heeled shoe +๐ก womanโs sandal +๐ฉฐ ballet shoes +๐ข womanโs boot +๐ crown +๐ womanโs hat +๐ฉ top hat +๐ graduation cap +๐งข billed cap +๐ช military helmet +โ rescue workerโs helmet +๐ฟ prayer beads +๐ lipstick +๐ ring +๐ gem stone +๐ muted speaker +๐ speaker low volume +๐ speaker medium volume +๐ speaker high volume +๐ข loudspeaker +๐ฃ megaphone +๐ฏ postal horn +๐ bell +๐ bell with slash +๐ผ musical score +๐ต musical note +๐ถ musical notes +๐ studio microphone +๐ level slider +๐ control knobs +๐ค microphone +๐ง headphone +๐ป radio +๐ท saxophone +๐ช accordion +๐ธ guitar +๐น musical keyboard +๐บ trumpet +๐ป violin +๐ช banjo +๐ฅ drum +๐ช long drum +๐ฑ mobile phone +๐ฒ mobile phone with arrow +โ telephone +๐ telephone receiver +๐ pager +๐ fax machine +๐ battery +๐ชซ low battery +๐ electric plug +๐ป laptop +๐ฅ desktop computer +๐จ printer +โจ keyboard +๐ฑ computer mouse +๐ฒ trackball +๐ฝ computer disk +๐พ floppy disk +๐ฟ optical disk +๐ dvd +๐งฎ abacus +๐ฅ movie camera +๐ film frames +๐ฝ film projector +๐ฌ clapper board +๐บ television +๐ท camera +๐ธ camera with flash +๐น video camera +๐ผ videocassette +๐ magnifying glass tilted left +๐ magnifying glass tilted right +๐ฏ candle +๐ก light bulb +๐ฆ flashlight +๐ฎ red paper lantern +๐ช diya lamp +๐ notebook with decorative cover +๐ closed book +๐ open book +๐ green book +๐ blue book +๐ orange book +๐ books +๐ notebook +๐ ledger +๐ page with curl +๐ scroll +๐ page facing up +๐ฐ newspaper +๐ rolled-up newspaper +๐ bookmark tabs +๐ bookmark +๐ท label +๐ฐ money bag +๐ช coin +๐ด yen banknote +๐ต dollar banknote +๐ถ euro banknote +๐ท pound banknote +๐ธ money with wings +๐ณ credit card +๐งพ receipt +๐น chart increasing with yen +โ envelope +๐ง e-mail +๐จ incoming envelope +๐ฉ envelope with arrow +๐ค outbox tray +๐ฅ inbox tray +๐ฆ package +๐ซ closed mailbox with raised flag +๐ช closed mailbox with lowered flag +๐ฌ open mailbox with raised flag +๐ญ open mailbox with lowered flag +๐ฎ postbox +๐ณ ballot box with ballot +โ pencil +โ black nib +๐ fountain pen +๐ pen +๐ paintbrush +๐ crayon +๐ memo +๐ผ briefcase +๐ file folder +๐ open file folder +๐ card index dividers +๐
calendar +๐ tear-off calendar +๐ spiral notepad +๐ spiral calendar +๐ card index +๐ chart increasing +๐ chart decreasing +๐ bar chart +๐ clipboard +๐ pushpin +๐ round pushpin +๐ paperclip +๐ linked paperclips +๐ straight ruler +๐ triangular ruler +โ scissors +๐ card file box +๐ file cabinet +๐ wastebasket +๐ locked +๐ unlocked +๐ locked with pen +๐ locked with key +๐ key +๐ old key +๐จ hammer +๐ช axe +โ pick +โ hammer and pick +๐ hammer and wrench +๐ก dagger +โ crossed swords +๐ซ water pistol +๐ช boomerang +๐น bow and arrow +๐ก shield +๐ช carpentry saw +๐ง wrench +๐ช screwdriver +๐ฉ nut and bolt +โ gear +๐ clamp +โ balance scale +๐ฆฏ white cane +๐ link +โ chains +๐ช hook +๐งฐ toolbox +๐งฒ magnet +๐ช ladder +โ alembic +๐งช test tube +๐งซ petri dish +๐งฌ dna +๐ฌ microscope +๐ญ telescope +๐ก satellite antenna +๐ syringe +๐ฉธ drop of blood +๐ pill +๐ฉน adhesive bandage +๐ฉผ crutch +๐ฉบ stethoscope +๐ฉป x-ray +๐ช door +๐ elevator +๐ช mirror +๐ช window +๐ bed +๐ couch and lamp +๐ช chair +๐ฝ toilet +๐ช plunger +๐ฟ shower +๐ bathtub +๐ชค mouse trap +๐ช razor +๐งด lotion bottle +๐งท safety pin +๐งน broom +๐งบ basket +๐งป roll of paper +๐ชฃ bucket +๐งผ soap +๐ซง bubbles +๐ชฅ toothbrush +๐งฝ sponge +๐งฏ fire extinguisher +๐ shopping cart +๐ฌ cigarette +โฐ coffin +๐ชฆ headstone +โฑ funeral urn +๐ฟ moai +๐ชง placard +๐ชช identification card +๐ง ATM sign +๐ฎ litter in bin sign +๐ฐ potable water +โฟ wheelchair symbol +๐น menโs room +๐บ womenโs room +๐ป restroom +๐ผ baby symbol +๐พ water closet +๐ passport control +๐ customs +๐ baggage claim +๐
left luggage +โ warning +๐ธ children crossing +โ no entry +๐ซ prohibited +๐ณ no bicycles +๐ญ no smoking +๐ฏ no littering +๐ฑ non-potable water +๐ท no pedestrians +๐ต no mobile phones +๐ no one under eighteen +โข radioactive +โฃ biohazard +โฌ up arrow +โ up-right arrow +โก right arrow +โ down-right arrow +โฌ down arrow +โ down-left arrow +โฌ
left arrow +โ up-left arrow +โ up-down arrow +โ left-right arrow +โฉ right arrow curving left +โช left arrow curving right +โคด right arrow curving up +โคต right arrow curving down +๐ clockwise vertical arrows +๐ counterclockwise arrows button +๐ BACK arrow +๐ END arrow +๐ ON! arrow +๐ SOON arrow +๐ TOP arrow +๐ place of worship +โ atom symbol +๐ om +โก star of David +โธ wheel of dharma +โฏ yin yang +โ latin cross +โฆ orthodox cross +โช star and crescent +โฎ peace symbol +๐ menorah +๐ฏ dotted six-pointed star +โ Aries +โ Taurus +โ Gemini +โ Cancer +โ Leo +โ Virgo +โ Libra +โ Scorpio +โ Sagittarius +โ Capricorn +โ Aquarius +โ Pisces +โ Ophiuchus +๐ shuffle tracks button +๐ repeat button +๐ repeat single button +โถ play button +โฉ fast-forward button +โญ next track button +โฏ play or pause button +โ reverse button +โช fast reverse button +โฎ last track button +๐ผ upwards button +โซ fast up button +๐ฝ downwards button +โฌ fast down button +โธ pause button +โน stop button +โบ record button +โ eject button +๐ฆ cinema +๐
dim button +๐ bright button +๐ถ antenna bars +๐ณ vibration mode +๐ด mobile phone off +โ female sign +โ male sign +โง transgender symbol +โ multiply +โ plus +โ minus +โ divide +๐ฐ heavy equals sign +โพ infinity +โผ double exclamation mark +โ exclamation question mark +โ red question mark +โ white question mark +โ white exclamation mark +โ red exclamation mark +ใฐ wavy dash +๐ฑ currency exchange +๐ฒ heavy dollar sign +โ medical symbol +โป recycling symbol +โ fleur-de-lis +๐ฑ trident emblem +๐ name badge +๐ฐ Japanese symbol for beginner +โญ hollow red circle +โ
check mark button +โ check box with check +โ check mark +โ cross mark +โ cross mark button +โฐ curly loop +โฟ double curly loop +ใฝ part alternation mark +โณ eight-spoked asterisk +โด eight-pointed star +โ sparkle +ยฉ copyright +ยฎ registered +โข trade mark +#๏ธโฃ keycap: # +*๏ธโฃ keycap: * +0๏ธโฃ keycap: 0 +1๏ธโฃ keycap: 1 +2๏ธโฃ keycap: 2 +3๏ธโฃ keycap: 3 +4๏ธโฃ keycap: 4 +5๏ธโฃ keycap: 5 +6๏ธโฃ keycap: 6 +7๏ธโฃ keycap: 7 +8๏ธโฃ keycap: 8 +9๏ธโฃ keycap: 9 +๐ keycap: 10 +๐ input latin uppercase +๐ก input latin lowercase +๐ข input numbers +๐ฃ input symbols +๐ค input latin letters +๐
ฐ A button (blood type) +๐ AB button (blood type) +๐
ฑ B button (blood type) +๐ CL button +๐ COOL button +๐ FREE button +โน information +๐ ID button +โ circled M +๐ NEW button +๐ NG button +๐
พ O button (blood type) +๐ OK button +๐
ฟ P button +๐ SOS button +๐ UP! button +๐ VS button +๐ Japanese โhereโ button +๐ Japanese โservice chargeโ button +๐ท Japanese โmonthly amountโ button +๐ถ Japanese โnot free of chargeโ button +๐ฏ Japanese โreservedโ button +๐ Japanese โbargainโ button +๐น Japanese โdiscountโ button +๐ Japanese โfree of chargeโ button +๐ฒ Japanese โprohibitedโ button +๐ Japanese โacceptableโ button +๐ธ Japanese โapplicationโ button +๐ด Japanese โpassing gradeโ button +๐ณ Japanese โvacancyโ button +ใ Japanese โcongratulationsโ button +ใ Japanese โsecretโ button +๐บ Japanese โopen for businessโ button +๐ต Japanese โno vacancyโ button +๐ด red circle +๐ orange circle +๐ก yellow circle +๐ข green circle +๐ต blue circle +๐ฃ purple circle +๐ค brown circle +โซ black circle +โช white circle +๐ฅ red square +๐ง orange square +๐จ yellow square +๐ฉ green square +๐ฆ blue square +๐ช purple square +๐ซ brown square +โฌ black large square +โฌ white large square +โผ black medium square +โป white medium square +โพ black medium-small square +โฝ white medium-small square +โช black small square +โซ white small square +๐ถ large orange diamond +๐ท large blue diamond +๐ธ small orange diamond +๐น small blue diamond +๐บ red triangle pointed up +๐ป red triangle pointed down +๐ diamond with a dot +๐ radio button +๐ณ white square button +๐ฒ black square button +๐ chequered flag +๐ฉ triangular flag +๐ crossed flags +๐ด black flag +๐ณ white flag +๐ฆ letter a +๐ง letter b +๐จ letter c +๐ฉ letter d +๐ช letter e +๐ซ letter f +๐ฌ letter g +๐ญ letter h +๐ฎ letter i +๐ฏ letter j +๐ฐ letter k +๐ฑ letter l +๐ฒ letter m +๐ณ letter n +๐ด letter o +๐ต letter p +๐ท letter r +๐ธ letter s +๐น letter t +๐บ letter u +๐ป letter v +๐พ letter y +๐ฟ letter z diff --git a/bin/guiscripts/dmfm b/bin/guiscripts/dmfm new file mode 100755 index 0000000..34a9e2c --- /dev/null +++ b/bin/guiscripts/dmfm @@ -0,0 +1,17 @@ +#!/bin/bash + +file=1 +while [ "$file" ]; do + file=$(ls -1 --group-directories-first | dmenu -i -l 8 -g 1 -p "$(basename $(pwd)):") + if [ -e "$file" ]; then + owd=$(pwd) + if [ -d "$file" ]; then + cd "$file" + else [ -f "$file" ] + if which xdg-open &> /dev/null; then + exec xdg-open "$owd/$file" & + unset file + fi + fi + fi +done diff --git a/bin/guiscripts/dmhelp b/bin/guiscripts/dmhelp new file mode 100755 index 0000000..653fa1f --- /dev/null +++ b/bin/guiscripts/dmhelp @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +program="${1:-$(dmenu_path | dmenu -l 4 -g 5)}" +opfil="/tmp/dmh_options.txt" +test -z "${program}" && exit 1 + +if ${program} --help > "${opfil}" +then + option="$(\ + grep -E "^ *-[-a-Z]* " "${opfil}" \ + | tr -s ' ' \ + | sort | uniq \ + | column -l 2 -t \ + | dmenu -x -l 20 -g 1 -p "${program}" \ + | awk '{print $1}' \ + )" +elif man $program > "${opfil}" +then + echo lesgo +else + echo "No options found for '${program}'" > /dev/stderr + exit 1 +fi +test -z "${option}" && exit 1 + +rm -f "${opfil}" +${program} ${option} diff --git a/bin/guiscripts/dminw b/bin/guiscripts/dminw new file mode 100755 index 0000000..2ff32a1 --- /dev/null +++ b/bin/guiscripts/dminw @@ -0,0 +1,4 @@ +#!/bin/bash +WINDOWID=${1:-$(xdotool getwindowfocus)} +WIDTH=$(xdotool getwindowgeometry -s ${WINDOWID} | grep WIDTH | cut -d ' ' -f 2) +dmenu_run -w ${1:-$(xdotool getwindowfocus)} -z ${WIDTH} diff --git a/bin/guiscripts/dmlang b/bin/guiscripts/dmlang new file mode 100755 index 0000000..0009704 --- /dev/null +++ b/bin/guiscripts/dmlang @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +choice="$(\ + echo -e "us\ngb\nbe" \ + | dmenu \ + -p "($(setxkbmap -query | awk 'NR==3 {print $2}'))" \ +)" +setxkbmap "${choice:-us}" diff --git a/bin/guiscripts/dmpass b/bin/guiscripts/dmpass new file mode 100755 index 0000000..9d79660 --- /dev/null +++ b/bin/guiscripts/dmpass @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +store="$HOME/.password-store" +lscmd="ls --group-directories-first" +dmenucmd="dmenu -l 4 -g 2" +while [ -d "${store}/${file}" ] +do + choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $dmenucmd)" + [ "$choice" ] || break + file="${file}/${choice}" +done +pass show -c "${file}" diff --git a/bin/guiscripts/dmpassgen b/bin/guiscripts/dmpassgen new file mode 100755 index 0000000..c627a1d --- /dev/null +++ b/bin/guiscripts/dmpassgen @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +choice="$(echo -ne "multiline\nsingle" | dmenu -l 1 -g 2)" +test -z "${choice}" && exit 1 + +password="$(echo -n "" | dmenu -p "name:")" +test -z "${password}" && exit 1 + +if [[ "${choice}" == "multiline" ]] +then + logins="$(ls -1 ~/.password-store/e-mails | awk -F '.gpg' '{print $1}')" + login="$(echo "$logins" | dmenu -g 1 -l 8 -p "login:")" + test -z "${login}" && exit 1 + url="$(echo -n "" | dmenu -p "url:")" + test -z "${url}" && exit 1 + echo -e "${password}\nlogin: ${login}\nurl: ${url}" | pass insert -mf "${password}" + pass generate -ci "${password}" +else + pass generate -cf "${password}" +fi + diff --git a/bin/guiscripts/dmpdf b/bin/guiscripts/dmpdf new file mode 100755 index 0000000..cf1f0dd --- /dev/null +++ b/bin/guiscripts/dmpdf @@ -0,0 +1,14 @@ +#!/bin/bash + +find ${1:-~/docs ~/Downloads} 2> /dev/null | grep -E ".+\.pdf" | sort > /tmp/dmpdf +choice="$(\ + sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' /tmp/dmpdf \ + | awk '{printf "%s %s\n", NR ":", $0}' \ + | dmenu -l 10 -g 1 -x -i \ + | grep -oE "^[0-9]+:" \ +)" +if [ -z "$choice" ]; then + exit +fi +file="$(sed -n "${choice::-1}p" /tmp/dmpdf)" +evince "$file" & diff --git a/bin/guiscripts/dmpower b/bin/guiscripts/dmpower new file mode 100755 index 0000000..bd847d6 --- /dev/null +++ b/bin/guiscripts/dmpower @@ -0,0 +1,3 @@ +#!/bin/sh +choice="$(echo -e "poweroff\nreboot\nhibernate" | dmenu -l 1 -g 3)" +test -z "$choice" || systemctl "$choice" diff --git a/bin/guiscripts/dmpsbm b/bin/guiscripts/dmpsbm new file mode 100755 index 0000000..3b00b2c --- /dev/null +++ b/bin/guiscripts/dmpsbm @@ -0,0 +1,2 @@ +#!/bin/sh +grep -v '^#' ~/.local/share/bookmarks | dmenu -c -x -g 1 -l 10 | cut -f1 -d' ' | xclip -sel c && xdotool key Ctrl+Shift+v diff --git a/bin/guiscripts/dmpsclip b/bin/guiscripts/dmpsclip new file mode 100755 index 0000000..8577e91 --- /dev/null +++ b/bin/guiscripts/dmpsclip @@ -0,0 +1,3 @@ +#!/bin/sh +dmenu -l 10 -g 1 -c -x < /tmp/tmpclip.txt | xclip -sel c +xdotool key Ctrl+Shift+v diff --git a/bin/guiscripts/dmvid b/bin/guiscripts/dmvid new file mode 100755 index 0000000..ee7f865 --- /dev/null +++ b/bin/guiscripts/dmvid @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +find ${1:-~/movies ~/Downloads} 2> /dev/null | grep -E ".+\.(webm|mp4|mpeg|mkv)$" | sort > /tmp/dmvids +choice="$(\ + sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' /tmp/dmvids \ + | awk '{printf "%s %s\n", NR ":", $0}' \ + | dmenu -l 10 -g 1 -x -i \ + | grep -zoE "^[0-9]+:" \ +)" +if [ -z "$choice" ]; then + exit +fi +vid="$(sed -n "${choice::-1}p" /tmp/dmvids)" +mpv "$vid" diff --git a/bin/guiscripts/dmyt-not b/bin/guiscripts/dmyt-not new file mode 100755 index 0000000..4783a8d --- /dev/null +++ b/bin/guiscripts/dmyt-not @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# Open a video from channels.yt-not by selecting the channel +channel="$(awk '{print $2}' ~/.local/share/yt-not/channels.yt-not | dmenu -l 2 -g 4)" +video_id="$(awk "/$channel/ {print \$3}" ~/.local/share/yt-not/channels.yt-not )" +video="https://youtube.com/watch?v=${video_id}" +mpv $video |