Add missing custom bin scripts

This commit is contained in:
Ian Keane 2022-06-25 08:38:11 -04:00
parent 0425e3eabd
commit 50cba30751
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh
# The famous "get a menu of emojis to copy" script.
# 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 "$chosen" | xclip -selection clipboard
notify-send "'$chosen' copied to clipboard." &
fi

View file

@ -0,0 +1,9 @@
#!/usr/bin/fish
if ps -a | grep lemonbar
pkill lemonbar
end
sleep .1 &&
~/.config/lemonbar/lemonbar.fish | lemonbar -pb -f "BitstreamVeraSansMono:size=12" -B "#343D46" -F "#CDD3DE" &
sleep .1 &&
xdo above -t (xdo id -n root) (xdo id -n lemonbar)

View file

@ -0,0 +1,6 @@
#!/usr/bin/fish
set theme (flavours list | tr ' ' '\n' | dmenu)
flavours apply $theme &&
eval ~/.config/base16-shell/scripts/base16-$theme.sh