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