dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4d55ecd959a24b8bcb5f1cb5228570e9728e1646
parent f35c23f66eeb593d6ab58e3ed71e08b2ebec50fb
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri, 29 Oct 2021 11:39:51 +0200

dmenusymbols script

Diffstat:
Ascripts/dmenusymbols | 15+++++++++++++++
Msxhkd/sxhkdrc | 2+-
2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/scripts/dmenusymbols b/scripts/dmenusymbols @@ -0,0 +1,15 @@ +#!/bin/sh +# Get user selection via dmenu from emoji file. +chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -l 30 | sed "s/ .*//") + +# Exit if none chosen. +[ -z "$chosen" ] && exit + +# If you run this command with an argument, it will automatically insert the +# character. Otherwise, show a message that the emoji has been copied. +if [ -n "$1" ]; then + xdotool type "$chosen" +else + printf "%s" "$chosen" | clc + notify "'$chosen' copied to clipboard." "" +fi diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc @@ -11,7 +11,7 @@ alt + shift + 4 super + shift + m dmenuman super + ctrl + space - dmenuunicode + dmenusymbols super + l slock -m "$(figlet -f big LOCKED)"