Add missing custom bin scripts
This commit is contained in:
parent
0425e3eabd
commit
50cba30751
3 changed files with 33 additions and 0 deletions
18
dotfiles/bin/.local/bin/dmenuunicode
Executable file
18
dotfiles/bin/.local/bin/dmenuunicode
Executable 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
|
||||
9
dotfiles/bin/.local/bin/lemonlaunch
Executable file
9
dotfiles/bin/.local/bin/lemonlaunch
Executable 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)
|
||||
6
dotfiles/bin/.local/bin/themepick
Executable file
6
dotfiles/bin/.local/bin/themepick
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue