Move two scripts to bin instead of scripts
This commit is contained in:
parent
75c3f12cec
commit
0ba6b68582
@ -800,6 +800,8 @@ fi
|
|||||||
* =setbg= - Set Background
|
* =setbg= - Set Background
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/bin/setbg
|
:header-args: :tangle ~/bin/setbg
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
@ -811,3 +813,52 @@ fi
|
|||||||
|
|
||||||
xwallpaper --zoom "$bgloc"
|
xwallpaper --zoom "$bgloc"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
* Insert Unicode Icon
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/bin/insert-unicode
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
# The famous "get a menu of emojis to copy" script.
|
||||||
|
|
||||||
|
# Must have xclip installed to even show menu.
|
||||||
|
xclip -h 2>/dev/null || exit 1
|
||||||
|
|
||||||
|
chosen=$(cut -d ';' -f1 ~/.local/share/emoji | rofi -dmenu -i -l 20 | sed "s/ .*//")
|
||||||
|
|
||||||
|
[ "$chosen" != "" ] || exit
|
||||||
|
|
||||||
|
# If you run this command with an argument, it will automatically insert the character.
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
xdotool key Shift+Insert
|
||||||
|
else
|
||||||
|
echo "$chosen" | tr -d '\n' | xsel -ib
|
||||||
|
dunstify "'$chosen' copied to clipboard." &
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* Insert Nerd Font Icon
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/bin/insert-nerd-fonts
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
# Must have xsel installed to even show menu.
|
||||||
|
xsel -h 2>/dev/null || exit 1
|
||||||
|
|
||||||
|
chosen=$(cat ~/.local/share/nerd-fonts | rofi -dmenu -i -l 20 | sed "s/ .*//")
|
||||||
|
|
||||||
|
[ "$chosen" != "" ] || exit
|
||||||
|
|
||||||
|
# If you run this command with an argument, it will automatically insert the character.
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
xdotool key Shift+Insert
|
||||||
|
else
|
||||||
|
echo "$chosen" | tr -d '\n' | xsel -ib
|
||||||
|
dunstify "'$chosen' copied to clipboard." &
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
@ -153,52 +153,6 @@ As an alternative, =sshfs= can be used:
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Icons Unicode
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/scripts/icons.sh
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+begin_src bash
|
|
||||||
# The famous "get a menu of emojis to copy" script.
|
|
||||||
|
|
||||||
# Must have xclip installed to even show menu.
|
|
||||||
xclip -h 2>/dev/null || exit 1
|
|
||||||
|
|
||||||
chosen=$(cut -d ';' -f1 ~/.local/share/emoji | rofi -dmenu -i -l 20 | sed "s/ .*//")
|
|
||||||
|
|
||||||
[ "$chosen" != "" ] || exit
|
|
||||||
|
|
||||||
# If you run this command with an argument, it will automatically insert the character.
|
|
||||||
if [ -n "$1" ]; then
|
|
||||||
xdotool key Shift+Insert
|
|
||||||
else
|
|
||||||
echo "$chosen" | tr -d '\n' | xsel -ib
|
|
||||||
dunstify "'$chosen' copied to clipboard." &
|
|
||||||
fi
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Icons Nerd Font
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/scripts/nerd-fonts.sh
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+begin_src bash
|
|
||||||
# Must have xsel installed to even show menu.
|
|
||||||
xsel -h 2>/dev/null || exit 1
|
|
||||||
|
|
||||||
chosen=$(cat ~/.local/share/nerd-fonts | rofi -dmenu -i -l 20 | sed "s/ .*//")
|
|
||||||
|
|
||||||
[ "$chosen" != "" ] || exit
|
|
||||||
|
|
||||||
# If you run this command with an argument, it will automatically insert the character.
|
|
||||||
if [ -n "$1" ]; then
|
|
||||||
xdotool key Shift+Insert
|
|
||||||
else
|
|
||||||
echo "$chosen" | tr -d '\n' | xsel -ib
|
|
||||||
dunstify "'$chosen' copied to clipboard." &
|
|
||||||
fi
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Org-Protocol-Capture-HTML
|
* Org-Protocol-Capture-HTML
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh
|
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user