Update css/js + few configs
This commit is contained in:
@@ -1,26 +1,14 @@
|
||||
#+TITLE: My own specific binaries
|
||||
:DRAWER:
|
||||
#+STARTUP: overview
|
||||
|
||||
#+LANGUAGE: en
|
||||
#+EMAIL: dehaeze.thomas@gmail.com
|
||||
#+AUTHOR: Dehaeze Thomas
|
||||
|
||||
#+HTML_LINK_HOME: ./index.html
|
||||
#+HTML_LINK_UP: ./index.html
|
||||
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
||||
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
#+SETUPFILE: ./setup/org-setup-file.org
|
||||
|
||||
#+PROPERTY: header-args:bash :comments both :mkdirp yes
|
||||
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
* =remote-desktop= - Remote Desktop Connect
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: remote-desktop
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/remote-desktop
|
||||
computer=$(echo -e 'RNICE\nPCMEL1\nPCNASS1\nPCMEG01' | dmenu -p 'Computer:' -l 20);
|
||||
|
||||
@@ -47,6 +35,9 @@
|
||||
#+end_src
|
||||
|
||||
* =print-rnice= - Print on Rnice
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: print-rnice
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/print-rnice
|
||||
nbpage=$(echo -e '1\n2\n4' | dmenu -p 'Number of pages per sheet' -l 20);
|
||||
@@ -64,6 +55,10 @@
|
||||
#+end_src
|
||||
|
||||
* =tmp14= - Mount/Umount tmp_14_days folder
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: tmp14
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/tmp_14_days
|
||||
if [ $1 == "mount" ]; then
|
||||
if sshfs -o allow_other,default_permissions -p 5022 dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; then
|
||||
@@ -82,6 +77,9 @@
|
||||
|
||||
|
||||
* =nas= - Interact with the NAS
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: nas
|
||||
:END:
|
||||
|
||||
As an alternative, =sshfs= can be used:
|
||||
#+begin_src bash :tangle no
|
||||
@@ -105,14 +103,30 @@ As an alternative, =sshfs= can be used:
|
||||
#+end_src
|
||||
|
||||
* =torrent-add= - Download Torrent
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: torrent-add
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/torrent-add
|
||||
transmission-remote ***REMOVED***:9091 --auth tdehaeze:$(pass nas/transmission | sed -n 1p) -a $1 && \
|
||||
dunstify 'Torrent' 'Successfully added' || \
|
||||
dunstify 'Torrent' 'Error'
|
||||
#+end_src
|
||||
|
||||
* =dl-add= - Direct Download with Aria2
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dl-add
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/dl-add
|
||||
aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p) add $1
|
||||
#+end_src
|
||||
|
||||
* =note-extract-fig= - Extract Figure from note file
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: note-extract-fig
|
||||
:END:
|
||||
|
||||
Script used to convert a figure drawn on my Boox note2 to a png file that can then be imported into a document.
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/note-extract-fig
|
||||
@@ -126,6 +140,10 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
#+end_src
|
||||
|
||||
* =share= - Share file with self-hosted =transfer.sh=
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: share
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/share
|
||||
if [ $TMUX ]; then
|
||||
tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://file.tdehaeze.xyz/ | xsel -ib && dunstify 'Upload' 'Successful' || dunstify --urgency=critical 'Upload' 'Failed';" && tmux select-pane -U
|
||||
@@ -137,6 +155,10 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
#+end_src
|
||||
|
||||
* =screen-select= - Xrandr pre-defined scripts
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: screen-select
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/screen-select
|
||||
option=$(echo -e "Work\nXPS\nHome" | rofi -i -dmenu)
|
||||
|
||||
@@ -148,7 +170,7 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
"Home")
|
||||
xrandr --output eDP1 --off --output DP2-2 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
||||
xrandr --output eDP1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
|
||||
;;
|
||||
,*)
|
||||
echo "== ! missing or invalid argument ! =="
|
||||
@@ -156,12 +178,16 @@ Script used to convert a figure drawn on my Boox note2 to a png file that can th
|
||||
esac
|
||||
|
||||
setbg && \ # Fix background if screen size/arangement has changed.
|
||||
$HOME/.config/polybar/scripts/launch.sh # restart polybar
|
||||
polybar-msg cmd restart # restart polybar
|
||||
|
||||
exit 0
|
||||
#+end_src
|
||||
|
||||
* =color-picker= - Pick color and copy to clipboard
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: color-picker
|
||||
:END:
|
||||
|
||||
#+begin_src bash :tangle ~/.local/bin/color-picker
|
||||
xcolor | xsel -b
|
||||
xcolor | tr -d '\n' | xsel -b
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user