Tangle scripts to /usr/local/bin
This commit is contained in:
parent
e174bbe5ae
commit
f9eedac1db
1 changed files with 16 additions and 17 deletions
31
scripts.org
31
scripts.org
|
|
@ -11,7 +11,7 @@ This repo contains scripts that I like to have available from my $PATH
|
|||
- test monospace instead of bitstream
|
||||
- remove flavours placeholder (once flavours is ready)
|
||||
- consider moving this to an alias
|
||||
#+begin_src sh :tangle ~/bin/dmenu_run_top
|
||||
#+begin_src sh :tangle ~/usr/local/bin/dmenu_run_top
|
||||
#!/bin/sh
|
||||
|
||||
# start flavours
|
||||
|
|
@ -36,7 +36,7 @@ dmenu_run \
|
|||
*** TODO
|
||||
- make work on mac
|
||||
- recreate the emojis file and test
|
||||
#+begin_src sh :tangle ~/bin/dmenuunicode
|
||||
#+begin_src sh :tangle ~/usr/local/bin/dmenuunicode
|
||||
#!/bin/sh
|
||||
|
||||
# Get user selection via dmenu from emoji file.
|
||||
|
|
@ -60,7 +60,7 @@ dmenu_run \
|
|||
- Better handled through polybar probably
|
||||
*** TODO
|
||||
- Add support for 3+ languages
|
||||
#+begin_src fish :tangle ~/bin/languagecycle
|
||||
#+begin_src fish :tangle ~/usr/local/bin/languagecycle
|
||||
#!/usr/bin/fish
|
||||
|
||||
if [ (xkblayout-state print "%n") = "Russian" ]
|
||||
|
|
@ -75,7 +75,7 @@ if [ (xkblayout-state print "%n") = "Russian" ]
|
|||
*** TODO
|
||||
- Currently this adds layouts to an endless list of layouts which can cause lag
|
||||
- This should be fixed but I'm not sure if I even like using alternate layouts
|
||||
#+begin_src fish :tangle ~/bin/layoutcycle
|
||||
#+begin_src fish :tangle ~/usr/local/bin/layoutcycle
|
||||
#!/usr/bin/fish
|
||||
|
||||
bsp-layout next --layouts tall,grid,rgrid,tiled
|
||||
|
|
@ -120,7 +120,7 @@ end
|
|||
** Colors
|
||||
> Taken from https://stackoverflow.com/questions/69138165/how-to-get-the-rgb-values-of-a-256-color-palette-terminal-color
|
||||
- Returns a representation of your currently set color scheme
|
||||
#+begin_src sh :tangle ~/bin/colors
|
||||
#+begin_src sh :tangle ~/usr/local/bin/colors
|
||||
#!/bin/sh
|
||||
|
||||
xdef="$HOME/.Xresources"
|
||||
|
|
@ -139,7 +139,7 @@ echo -e "\n"
|
|||
- Cycle between 3 window gap sizes I find aesthetic
|
||||
*** TODO
|
||||
- This is broken
|
||||
#+begin_src fish :tangle ~/bin/gapcycle
|
||||
#+begin_src fish :tangle ~/usr/local/bin/gapcycle
|
||||
#!/usr/bin/fish
|
||||
|
||||
set gap (bspc config window_gap)
|
||||
|
|
@ -159,7 +159,7 @@ echo -e "\n"
|
|||
|
||||
** Themepick
|
||||
- Broken in nix until I find an equivalent base16 theme setter and / or setup flavours
|
||||
#+begin_src fish :tangle ~/bin/themepick
|
||||
#+begin_src fish :tangle ~/usr/local/bin/themepick
|
||||
#!/usr/bin/fish
|
||||
|
||||
set theme (flavours list | tr ' ' '\n' | dmenu)
|
||||
|
|
@ -171,7 +171,7 @@ echo -e "\n"
|
|||
** Opaque-windows
|
||||
*** TODO
|
||||
- Handle this through lemonbar instead
|
||||
#+begin_src fish :tangle ~/bin/opaque-windows
|
||||
#+begin_src fish :tangle ~/usr/local/bin/opaque-windows
|
||||
#!/usr/bin/fish
|
||||
if ps -aux | grep picom | grep -v grep
|
||||
pkill picom
|
||||
|
|
@ -179,7 +179,7 @@ echo -e "\n"
|
|||
#+end_src
|
||||
|
||||
** Transparent-windows
|
||||
#+begin_src fish :tangle ~/bin/transparent-windows
|
||||
#+begin_src fish :tangle ~/usr/local/bin/transparent-windows
|
||||
#!/usr/bin/fish
|
||||
if ps -aux | grep picom | grep -v grep
|
||||
pkill picom
|
||||
|
|
@ -200,13 +200,13 @@ echo -e "\n"
|
|||
- I prefer this for passwords I might have to type manually occasionally
|
||||
*** TODO
|
||||
- This may be better as an alias
|
||||
#+begin_src bash :tangle ~/bin/generate-passphrase
|
||||
#+begin_src bash :tangle ~/usr/local/bin/generate-passphrase
|
||||
#!/bin/bash
|
||||
shuf -n3 /usr/share/dict/words | tr -d '\n'
|
||||
#+end_src
|
||||
** Passphrase
|
||||
- This more specifically inserts the generated passphrase into gnu pass
|
||||
#+begin_src fish :tangle ~/bin/passphrase
|
||||
#+begin_src fish :tangle ~/usr/local/bin/passphrase
|
||||
#!/usr/bin/fish
|
||||
generate-passphrase | pass insert -e $argv
|
||||
#+end_src
|
||||
|
|
@ -215,7 +215,7 @@ echo -e "\n"
|
|||
** Prune_local_branches
|
||||
*** TODO
|
||||
- Don't do this. Use a git alias.
|
||||
#+begin_src bash :tangle ~/bin/passphrase
|
||||
#+begin_src bash :tangle ~/usr/local/bin/passphrase
|
||||
#!/bin/bash
|
||||
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D
|
||||
#+end_src
|
||||
|
|
@ -227,7 +227,7 @@ git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs
|
|||
*** TODO
|
||||
- Remove lemobar, test with polybar
|
||||
- Handle API endpoint as a secret
|
||||
#+begin_src python :tangle ~/bin/sugar
|
||||
#+begin_src python :tangle ~/usr/local/bin/sugar
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
import requests
|
||||
|
|
@ -298,11 +298,10 @@ git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs
|
|||
** Jbrowse
|
||||
*** TODO
|
||||
- Probably handle these as aliases
|
||||
#+begin_src sh :tangle ~/bin
|
||||
#+begin_src sh :tangle ~/usr/local/bin
|
||||
/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser "https://everblue.atlassian.net/browse/"$1 &
|
||||
#+end_src
|
||||
** NotifyMe
|
||||
#+begin_src sh :tangle ~/bin
|
||||
#+begin_src sh :tangle ~/usr/local/bin
|
||||
osascript -e 'display notification "done!" with title "Notification"'
|
||||
#+end_src
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue