Compare commits

...

194 Commits

Author SHA1 Message Date
71a0c2601d Update config 2021-05-02 11:27:39 +02:00
500ec4bd54 Add ESRF calendar 2021-04-27 15:45:51 +02:00
18a4af6127 Update android applications 2021-04-26 11:02:01 +02:00
0472bbccf1 Large update 2021-04-25 19:10:57 +02:00
601126b68d Remove trailing / 2021-03-14 19:29:31 +01:00
9098a3bec1 Use org-media-note to annotate movies 2021-02-14 19:15:16 +01:00
40e49c8dda Do not break lines for emails 2021-02-14 19:14:10 +01:00
be94b96bc5 Update docker-compose ver / use yaml for traefik 2021-02-14 19:13:40 +01:00
13aea680b6 Use B2 instead of Mega 2021-02-13 23:54:12 +01:00
a6864b6e77 Publish to html 2021-02-10 18:02:02 +01:00
ad36127789 Add few useful functions 2021-02-10 18:01:53 +01:00
239dc7b38d Move one script to private file 2021-02-10 18:00:14 +01:00
0b46d4b5c8 simpler binding for collapse 2021-02-10 17:59:43 +01:00
5c8c83a201 Better headings + use personal hugo container 2021-02-10 17:59:19 +01:00
fb781b71fa Adblocking config 2021-02-10 17:59:11 +01:00
553319970b convert file shortcut 2021-02-10 17:58:59 +01:00
a607adbf19 Add Aria2 web UI 2021-01-11 16:32:27 +01:00
e99046dc7c Add Dotfiles to home page 2021-01-11 16:32:19 +01:00
adb34d7e1e Add dotfiles caddy configuration 2021-01-11 14:50:37 +01:00
88b1e01575 Add noweb when required 2021-01-11 14:38:26 +01:00
0e9a45e9c5 Correct indentation 2021-01-08 01:45:55 +01:00
d5e5b6cd57 Publish the rest of the html files 2021-01-08 01:43:48 +01:00
583dc1e64b Publish HTML 2021-01-08 01:34:53 +01:00
be509cf109 Better sizes for floating windows 2021-01-08 01:32:36 +01:00
3e97711adc Change indentation of all blocks.
Use (setq org-src-preserve-indentation t) for Emacs.
2021-01-08 01:26:27 +01:00
e7288abcac Not more capitals for org properties 2021-01-08 01:22:41 +01:00
e74efcfa72 Add netrc config 2021-01-08 00:06:05 +01:00
9423ab44b0 Do not leave insert mode whithout reason! 2021-01-08 00:05:35 +01:00
60606eaef7 Change indentation 2021-01-08 00:05:21 +01:00
414d0d9d49 Simplify MPV config
automatic put video on screen corner
2021-01-08 00:05:16 +01:00
4f7d852c59 Add link to data 2021-01-03 22:56:34 +01:00
f7de6d2b6a Add nas file 2021-01-03 22:54:40 +01:00
a1339e9d0a Nicer home page 2021-01-03 22:52:53 +01:00
6bdccb68da Update links 2021-01-01 21:59:59 +01:00
85e9caebe4 Update css/js + few configs 2021-01-01 20:12:34 +01:00
2cfa706a42 add windows file 2020-12-13 16:39:07 +01:00
82cb303780 Better ncmpcpp interface 2020-12-09 22:15:30 +01:00
566fac75b0 Start i3 using startx (no DM anymore) 2020-12-09 22:14:58 +01:00
2899365292 Automatically synchronize Sent inbox 2020-12-09 22:14:17 +01:00
c00db589fe Add few "org-structure-templates" 2020-11-25 18:04:49 +01:00
13241304d3 Change "tags" for "keywords" 2020-11-25 12:23:20 +01:00
0fe6aa49e9 Add Matlab snippets 2020-11-25 12:22:24 +01:00
0391813725 Dark mode + new default page 2020-11-25 12:22:10 +01:00
423156f080 Add right click for bluetooth => open manager 2020-11-25 12:21:55 +01:00
e02fa0dc0b Right click on connection => open manager 2020-11-25 12:21:51 +01:00
f3d6cd381e Use zathura as the Pdf viewer for latex 2020-11-25 12:20:45 +01:00
403e2d2c0e Add latexmk and lsp to latex packages 2020-11-25 12:20:28 +01:00
ffad1b4596 Add yt link => works for html and markdown 2020-11-25 12:19:59 +01:00
161f2e16dc video tag => allows html export for mp4 videos 2020-11-25 12:19:38 +01:00
ed780e17c6 Do not show archive files in agenda: faster agenda 2020-11-25 12:19:20 +01:00
4f4585a226 Add FZF keybindings 2020-11-16 13:49:12 +01:00
c5f7ae96f5 Change home screen settings 2020-11-16 13:49:01 +01:00
a10e2fbcc5 Add gitlab config 2020-11-16 13:48:54 +01:00
6ea4bf277d Add comment about SSDs 2020-11-16 13:48:44 +01:00
565ab0d8b5 Remove automatic start of blueman-applet/synology 2020-11-16 13:48:18 +01:00
9479203efa Add synctex 2020-11-16 12:02:57 +01:00
bcd151651b Add bluetooth module 2020-11-15 19:26:54 +01:00
6501e49fb9 Add toggle connection (wifi/ethernet) 2020-11-15 19:02:51 +01:00
69b4e979c3 Add vimrc-mode, correct path of babel library 2020-11-05 17:04:35 +01:00
e17e650295 Update linebreak settings with vim 2020-11-05 17:04:10 +01:00
8e8122b9c8 Add latex html output 2020-11-03 16:49:46 +01:00
fa3f4be374 Move all config files outside or dotfiles folder 2020-11-03 16:49:29 +01:00
8b4863bb4d Correct one path 2020-11-03 16:45:31 +01:00
67763fee73 Add LaTeX config file 2020-11-03 16:45:22 +01:00
b6fa5e5f4a Remove Awesome folder 2020-11-03 16:45:16 +01:00
23195919fe Wrap results with quotes 2020-11-03 16:37:34 +01:00
ea7cb53ce0 Test is babel output displays with github 2020-11-03 16:36:42 +01:00
8dcfe3c1b5 Change readme.org 2020-11-03 16:34:09 +01:00
ba6a9c78f6 Change readme file 2020-11-03 16:30:08 +01:00
c140774d56 Remove not used toolboxes 2020-11-03 16:27:35 +01:00
409883c535 Update html pages 2020-11-03 16:27:09 +01:00
df6a78225a Add papers to repositories 2020-11-03 12:06:04 +01:00
635f0d521d Huge update of doom config 2020-11-03 11:41:52 +01:00
72753e5509 Add a way to drag and drop files for attachment 2020-11-03 11:41:39 +01:00
0b921c4313 Add quotes when needed 2020-11-03 11:41:18 +01:00
ab901b1e70 Add bindings to save page as pdf/png 2020-11-03 11:40:49 +01:00
2c228e5a8a Update RSS feeds 2020-11-03 11:40:25 +01:00
ccb90f6506 Add few useful programs 2020-11-03 11:40:11 +01:00
8f0d2dd755 Add snippets for latex figures 2020-11-03 11:39:54 +01:00
cd9697c18b Update some scripts 2020-11-03 11:39:35 +01:00
b5fa40b136 Add confirmation for reboot/shutdown 2020-11-03 11:39:23 +01:00
58b93e92a4 Add useful private binaries 2020-11-03 11:39:08 +01:00
35a67aa156 Add environment variable for bitwarden 2020-11-03 11:37:10 +01:00
fc3a3c8de5 Minor typography 2020-11-03 11:35:21 +01:00
5412ee0cec Compositor config when sharing screen with zoom 2020-11-03 11:34:58 +01:00
487b1b4e3b Add git helper for repositories 2020-11-03 11:34:41 +01:00
8d37961d52 More specific headers arguments 2020-11-03 11:34:12 +01:00
bdd50f2a21 Emacs files for matlab were added 2 times 2020-11-03 11:33:56 +01:00
2ce93010f7 Add Jellyfin configuration for music 2020-11-03 11:33:34 +01:00
d2f887b680 Change config name for wireguard 2020-11-03 11:33:19 +01:00
39233b5e78 Automatic html export of bookmarks 2020-11-03 11:32:38 +01:00
c27b88619a Passwords are shared using Syncthing 2020-11-03 11:32:04 +01:00
7cacb1c07b Automatic update of the website 2020-11-03 11:31:37 +01:00
659fed0501 Remove vim todos form old config 2020-11-03 11:31:16 +01:00
74f821bbc1 Use systemctl to start mopidy 2020-11-03 11:30:57 +01:00
8969447a68 Add script to extract figure from page 2020-11-03 11:30:40 +01:00
a1be22f44b Add Inkscape Config 2020-11-03 11:30:27 +01:00
83a4ac8f74 Remove nm-applet and add bluetooth applet 2020-06-03 21:54:08 +02:00
0aaf3e8bef Minor update 2020-06-03 21:53:52 +02:00
2cd93f2989 Add matlab toolbox 2020-06-03 21:53:29 +02:00
9f8fbdc244 Add script to mount/unmount device, delete udiskie 2020-06-03 21:52:47 +02:00
1de35ae984 Add screenshot binding 2020-06-03 13:41:20 +02:00
156b805d59 Add short to open sxiv in current folder 2020-05-26 10:56:21 +02:00
0e1c98253d Change indentation 2020-05-26 10:35:12 +02:00
1602b84454 Add rsync to ranger 2020-05-26 10:35:01 +02:00
9bbbb42a85 Org-Publish 2020-05-26 08:40:15 +02:00
cde58c3f2d Add org-roam-bibtex, improve key bindings 2020-05-26 08:39:24 +02:00
b7ede0ee6f Reworks newsboat macros 2020-05-26 08:38:11 +02:00
c78c3edbdb Rework ranger custom bindings 2020-05-26 08:36:47 +02:00
6a0de89832 Improve buku systemd timer 2020-05-26 08:36:28 +02:00
a3408a4ef2 Update bindings (quit => i3exit) 2020-05-26 08:35:45 +02:00
22512e3ed2 Add keybinding for org-roam 2020-05-26 08:35:32 +02:00
8689d13065 Rework how neomutt opens attachments 2020-05-26 08:34:37 +02:00
d09e7873c4 Remove functions that are now binaries.
Also, input config is now part of bash.org
2020-05-26 08:34:07 +02:00
14d997b598 Split the binaries into two files 2020-05-26 08:33:31 +02:00
1a3ec0b964 Remove org-noter as it is included in doom 2020-05-05 11:55:10 +02:00
4772957789 Add few emacs packages 2020-05-05 11:55:01 +02:00
7349543d4c Start aria2c on boot. Remove password 2020-05-05 00:18:23 +02:00
e06f14dc64 Add few research shortcuts 2020-05-05 00:02:36 +02:00
4e7a44f10e Add Download script with aria2 on qutebrowser 2020-05-05 00:00:45 +02:00
a631912084 Debug notification scripts 2020-05-04 23:59:35 +02:00
5753b1792b Add aria2 config 2020-05-04 23:37:04 +02:00
e1559e0ccd Add few RSS feeds 2020-05-01 00:33:01 +02:00
b689ccaa3d Add khal time format 2020-05-01 00:32:44 +02:00
f7165e041f Add calendar module to polybar 2020-05-01 00:32:00 +02:00
981590ab78 Add loopback module 2020-04-30 21:57:54 +02:00
94862c1514 Add backlinks when exporting to html 2020-04-16 19:09:03 +02:00
87d8d177db Add custom face for org-roam-links 2020-04-16 19:08:53 +02:00
7a964ef8f2 Update roam template 2020-04-16 19:08:45 +02:00
bc47a778e9 Change on filepath 2020-04-16 19:08:30 +02:00
97c28fcffa Huge Update - Change all ressources directory 2020-04-16 15:55:56 +02:00
b8405753c0 Add library of babel 2020-04-16 15:33:59 +02:00
02f5ede7a0 Add an emacs snippet file 2020-04-16 13:23:24 +02:00
b9f56b0f1e Rework the addition of bookmarks from qutebrowser 2020-04-16 12:05:54 +02:00
6b37e825dd Remove starship 2020-04-16 12:05:32 +02:00
ac695cebf0 Add Audio Fest youtube channel 2020-04-16 12:05:18 +02:00
c44835d677 Add MBeautifier 2020-04-16 12:05:09 +02:00
9bb0661300 Mostly change of indentation 2020-04-16 12:04:57 +02:00
cd1fc13e7e Default "audio" section for play/pause to work
https://github.com/mopidy/mopidy/issues/1603#issuecomment-612293632
2020-04-11 09:57:28 +02:00
74f3caa8b3 Removed zathura .desktop as it is already included 2020-04-10 23:39:48 +02:00
8e4fc7a6d8 Add alt+esc to see notification history 2020-04-10 17:36:33 +02:00
b386a04548 Remove one test module 2020-04-10 17:07:01 +02:00
9e94049968 Add scripts to download youtube videos 2020-04-10 16:38:44 +02:00
e2f9f7c072 Add many nerd-font icons 2020-04-10 16:38:31 +02:00
eea5b8d512 Rearange the feeds 2020-04-10 16:38:22 +02:00
1068bdbecb Remove nm-applet, it is now handled by polybar 2020-04-10 16:38:02 +02:00
42cd11d3ef add network module 2020-04-10 16:37:55 +02:00
0d39bd69d6 Set to background all polybar click actions 2020-04-10 16:37:42 +02:00
1e3ca1e40d Change the texmf location 2020-04-08 14:38:07 +02:00
f63bafdf2c Update matlab to 2020a 2020-04-08 14:37:56 +02:00
0714e33487 Automatically put nmtui in floating mode 2020-04-08 14:37:36 +02:00
b19a92c2ee Use ueberzug to see images inside ranger 2020-04-08 14:37:20 +02:00
80690ed480 Correct the matlab path 2020-04-07 16:18:50 +02:00
fda687da7f Correct config to have numbered eq. with mathjax 2020-04-07 16:18:26 +02:00
afb544444a Remove bindings to change window 2020-04-07 16:18:16 +02:00
a463db12e2 Change path to saved articles/media 2020-04-07 11:46:39 +02:00
0bfce54bdc Add shortcuts to open nmtui 2020-04-07 11:46:39 +02:00
50c2134f6f Mistake in one path 2020-04-07 09:30:28 +02:00
656c8f41d7 Remove scripts and bin folders.
Instead, everything is in the =~/.local/bin/= folder
Thus, the home folder is more clean
2020-04-06 23:56:37 +02:00
06603fae36 Mu4e config 2020-04-06 17:10:39 +02:00
97e66a6215 Change i3 full-screen bindings and tabbed layout 2020-04-06 00:12:04 +02:00
246f0e5f42 Minor changes 2020-04-06 00:11:57 +02:00
b5476dc0e6 Open sxiv in floating mode 2020-04-06 00:11:35 +02:00
c96ad07219 Add functions to insert images using SXIV 2020-04-06 00:11:22 +02:00
3d44b11d14 change NAS from scripts to binaries 2020-04-05 15:39:08 +02:00
0af6fccd0f Publish html 2020-04-05 11:30:26 +02:00
866a1947d6 change polybar theme to solarized-dark 2020-04-05 11:29:25 +02:00
0d979ccb63 Reload news while newsboat is runing 2020-04-05 11:29:01 +02:00
81e512992f Add bookmarks to buku from newsboat 2020-04-05 11:22:20 +02:00
354ab6e8b0 Improve few polybar scripts 2020-04-03 11:34:21 +02:00
4359a365f6 Add some queries for newsboat 2020-04-02 22:34:19 +02:00
ca720cc6c6 Set colors in bash 2020-04-02 22:06:41 +02:00
e20cb00b9b Add right click to refresh mails/packages 2020-04-02 22:06:26 +02:00
a6f9ecc90d Add news polybar module 2020-04-02 22:06:18 +02:00
0ba6b68582 Move two scripts to bin instead of scripts 2020-04-02 22:05:54 +02:00
75c3f12cec Display total mail number 2020-04-02 22:05:32 +02:00
3d2e249c12 Change few bindings and add all youtube feeds 2020-04-02 22:05:11 +02:00
7fc6093be2 Minor update to 2 polybar scripts 2020-04-01 17:23:45 +02:00
5162ebfd3b Add org-roam 2020-04-01 10:27:25 +02:00
a607511c01 Update package database before displaying updates 2020-04-01 10:27:02 +02:00
47fd54ea4f Add one comment 2020-03-30 00:07:56 +02:00
f97a526228 Add python to doom-emacs 2020-03-30 00:07:44 +02:00
f75931b74f Add C-e to go to end of line in vi-mode 2020-03-30 00:07:23 +02:00
774f5218e2 Renamed some headlines 2020-03-28 11:10:14 +01:00
cb6a5d59a5 Remove Nitrogen and use xwallpaper instead 2020-03-28 11:09:59 +01:00
85db48f29e Add script to insert nerd font icon
Also added data file containing all the icons
2020-03-28 11:09:15 +01:00
be765c952a Change one ip address 2020-03-27 15:38:09 +01:00
ca5adde5ba Add torrent config 2020-03-27 15:38:04 +01:00
7603583d19 Add wireguard module for polybar 2020-03-27 15:37:39 +01:00
e5e05bbe8a Remove org-fragtog package 2020-03-26 12:04:25 +01:00
5f7dda8ac1 Remove doom-dashboard 2020-03-26 09:55:24 +01:00
49a8038c77 Update battery polybar module 2020-03-26 09:55:15 +01:00
1824371109 Remove one emoji 2020-03-25 20:20:41 +01:00
3af927ca76 Add ssh config 2020-03-25 20:20:36 +01:00
141 changed files with 45629 additions and 34095 deletions

95
android.org Normal file
View File

@ -0,0 +1,95 @@
#+TITLE: Android Phone
#+SETUPFILE: ./setup/org-setup-file.org
* Install
** Unlock the bootloader
Tutorial: https://www.youtube.com/watch?v=_MKtOMiUWdM
** Flash ROM
Tutorial: https://www.youtube.com/watch?v=3pxOeiIBrHI
** Root
- Root: https://github.com/topjohnwu/Magisk https://forum.xda-developers.com/t/guide-magisk-for-oxygenos-11.4160833/
- https://www.youtube.com/watch?v=hTFK1OZ4DaU
** Further work
- ROM: https://lineage.microg.org/ (https://download.lineage.microg.org/instantnoodle/)
- Setup SSH: https://binfalse.de/2018/09/06/native-ssh-server-on-linageos/
* Favorite Apps
#+name: tab:open_source_apps
#+caption: Open Source Apps
| Name | | Description |
|-----------------+-----------------------------------------------------------------------------+----------------------------------------------------------------|
| [[https://f-droid.org/fr/packages/com.artifex.mupdf.viewer.app/][F-droid]] | | Open Source application store |
| [[https://github.com/moezbhatti/qksms][QKSMS]] | https://f-droid.org/en/packages/com.moez.QKSMS/ | SMS |
| [[https://github.com/mozilla-mobile/fenix][Fenix]] | https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/ | Firefox for android |
| [[https://github.com/syncthing/syncthing-android][Syncthing]] | https://f-droid.org/en/packages/com.nutomic.syncthingandroid/ | Continuous File Synchronization |
| [[https://github.com/termux/termux-app][Termux]] | https://f-droid.org/en/packages/com.termux/ | Terminal |
| [[https://github.com/k0shk0sh/FastHub][FastHub]] | https://f-droid.org/en/packages/com.fastaccess.github.libre/ | Github client |
| [[https://github.com/dkanada/gelli][Gelli]] | https://f-droid.org/en/packages/com.dkanada.gramophone/ | Music app for Jellyfin |
| [[https://github.com/k9mail/k-9][K-9 Mail]] | https://f-droid.org/en/packages/com.fsck.k9/ | Mail client |
| [[https://github.com/SimpleMobileTools/Simple-Dialer][Simple Dialer]] | https://f-droid.org/en/packages/com.simplemobiletools.dialer/ | Minimalist dialing app |
| [[https://github.com/SimpleMobileTools/Simple-Gallery][Simple Gallery]] | https://f-droid.org/en/packages/com.simplemobiletools.gallery.pro/ | Minimalist gallery app |
| [[https://github.com/SimpleMobileTools/Simple-Contacts][Simple Contacts]] | https://f-droid.org/en/packages/com.simplemobiletools.contacts.pro/ | Minimalist contact app |
| [[https://github.com/SimpleMobileTools/Simple-Calendar][Simple Calendar]] | https://f-droid.org/en/packages/com.simplemobiletools.calendar.pro/ | Minimalist calendar app |
| [[https://f-droid.org/fr/packages/com.artifex.mupdf.viewer.app/][muPDF]] | https://f-droid.org/en/packages/com.artifex.mupdf.viewer.app/ | PDF minimalist viewer |
| [[https://github.com/mpv-android/mpv-android][MPV]] | https://f-droid.org/en/packages/is.xyz.mpv/ | Video player |
| [[https://github.com/orgzly/orgzly-android][Orgzly]] | https://f-droid.org/en/packages/com.orgzly/ | OrgMode application |
| [[https://github.com/vector-im/element-android][Element]] | https://f-droid.org/en/packages/im.vector.app/ | Matrix client |
| [[https://www.davx5.com/][DAVx5]] | https://f-droid.org/en/packages/at.bitfire.davdroid/ | Used to synchronize contacts and calendars with calDAC/carddav |
| [[https://gitlab.com/AuroraOSS/AuroraStore][Aurora Store]] | https://f-droid.org/en/packages/com.aurora.store/ | Play Store alternative |
| [[https://github.com/martykan/forecastie][Forcastie]] | https://f-droid.org/en/packages/cz.martykan.forecastie/ | Weather application |
| [[https://gitnex.com/][GitNex]] | https://f-droid.org/en/packages/org.mian.gitnex/ | Gitea client |
| [[https://github.com/home-assistant/android][Home Assistant]] | https://f-droid.org/en/packages/io.homeassistant.companion.android.minimal/ | Home Assistant client |
| [[https://github.com/jellyfin/jellyfin-android][Jellyfin]] | https://f-droid.org/en/packages/org.jellyfin.mobile/ | Jellyfin client |
| [[https://github.com/KDE/kdeconnect-kde][KDE Connect]] | https://f-droid.org/en/packages/org.kde.kdeconnect_tp/ | Connect to linux desktop |
| [[https://github.com/TeamNewPipe/NewPipe][NewPipe]] | https://f-droid.org/en/packages/org.schabi.newpipe/ | Frontend for Youtube |
| [[https://github.com/osmandapp/OsmAnd][OsmAnd~]] | https://f-droid.org/en/packages/net.osmand.plus/ | Open Street Map application |
| [[https://github.com/android-password-store/Android-Password-Store][Password Store]] | https://f-droid.org/en/packages/dev.msfjarvis.aps/ | Password manager |
| [[https://github.com/y20k/transistor][Transistor]] | https://f-droid.org/en/packages/org.y20k.transistor/ | Radio application |
| [[https://f-droid.org/en/packages/com.google.zxing.client.android/][Barcode Scanner]] | https://f-droid.org/en/packages/com.google.zxing.client.android/ | Barcode Scanner |
| [[https://github.com/Bubu/android-calculatorpp][Calculator++]] | https://f-droid.org/en/packages/org.solovyev.android.calculator/ | Nice calculator app |
| [[https://github.com/zhanghai/MaterialFiles][MaterialFiles]] | https://f-droid.org/en/packages/me.zhanghai.android.files/ | File Manager |
| [[https://github.com/brianhorn/Tunerly][Tunerly]] | https://f-droid.org/en/packages/com.tunerly/ | Pitch tuning app |
| [[https://github.com/Docile-Alligator/Infinity-For-Reddit][Infinity]] | https://f-droid.org/en/packages/ml.docilealligator.infinityforreddit/ | Reddit client |
| [[https://github.com/dslul/openboard][OpenBoard]] | https://f-droid.org/en/packages/org.dslul.openboard.inputmethod.latin/ | Keyboard |
| [[https://github.com/SimpleMobileTools/Simple-CLock][Simple Clock]] | https://f-droid.org/en/packages/com.simplemobiletools.clock/ | Simple clock |
| [[https://github.com/WireGuard/wireguard-android][Wireguard]] | https://f-droid.org/en/packages/com.wireguard.android/ | Modern VPN |
| [[https://github.com/iSoron/uhabits][uhabits]] | https://f-droid.org/packages/org.isoron.uhabits/ | Habit Tracker |
| [[https://f-droid.org/packages/org.sufficientlysecure.keychain/][OpenKeychain]] | https://f-droid.org/packages/org.sufficientlysecure.keychain/ | PGP Manager |
| [[https://github.com/billthefarmer/editor][Editor]] | https://f-droid.org/packages/org.billthefarmer.editor/ | Text Editor |
| [[https://github.com/erickok/transdroid][Transdroid]] | https://f-droid.org/en/packages/org.transdroid.full/ | Transmission and Aria2 clients |
| [[https://github.com/AntennaPod/AntennaPod][AntennaPod]] | https://f-droid.org/packages/de.danoeh.antennapod/ | Podcast manager |
| [[https://github.com/bromite/bromite][Bromite]] | | Chromium fork with ad blocking and privacy enhancements |
| [[https://github.com/Jays2Kings/tachiyomiJ2K][TachiyomiJ2K]] | | Manga reader |
| [[https://github.com/DocMarty84/miniflutt][Miniflutt]] | | Miniflux client |
#+name: tab:close_source_apps
#+caption: Close Source Apps
| Name | Description | Open Source Alternative |
|---------------------+---------------------+-------------------------|
| [[https://www.waze.com/][Waze]] | GPS navigation app | |
| [[https://printoid.net/][Printoid]] | Octoprint client | Web client? |
| [[https://vancedapp.com/][Youtube Vanced]] | Youtube without ads | NewPipe |
| [[https://play.google.com/store/apps/details?id=com.nordvpn.android&hl=en&gl=US][NordVPN]] | | |
| Spotify | | |
| Banking | | |
| Trainline | | |
| Tricount | | [[https://github.com/cowbell/splittypie][Splittypie]] |
#+name: tab:root_apps
#+caption: Apps requiring Root
| Name | Description | Open Source Alternative |
|---------------------+-------------+-------------------------|
| [[https://github.com/ukanth/afwall][Afwall]] | | |
| Titanium Backup PRO | | [[https://github.com/machiav3lli/oandbackupx][OAndBackupX]] |
* Tutorials
** Connect to the phone by SSH
https://wiki.termux.com/wiki/Bypassing_NAT
An other option would be to use Wireguard and shen to =ssh=.

216
applications.org Normal file
View File

@ -0,0 +1,216 @@
#+TITLE:Desktop file for the applications
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args:conf :comments none :mkdirp yes
* Mime Applications
:PROPERTIES:
:header-args: :tangle ~/.config/mimeapps.list
:END:
#+BEGIN_SRC conf
[Default Applications]
text/plain=nvim.desktop
x-scheme-handler/magnet=torrent.desktop;
text/x-shellscript=nvim.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
x-scheme-handler/mailto=neomutt.desktop
message/rfc822=neomutt.desktop
application/x-bittorrent=deluge.desktop
application/pdf=zathura.desktop
x-scheme-handler/http=qutebrowser.desktop
x-scheme-handler/https=qutebrowser.desktop
x-scheme-handler/ftp=qutebrowser.desktop
x-scheme-handler/chrome=qutebrowser.desktop
text/html=qutebrowser.desktop
application/x-extension-htm=qutebrowser.desktop
application/x-extension-html=qutebrowser.desktop
application/x-extension-shtml=qutebrowser.desktop
application/xhtml+xml=qutebrowser.desktop
application/x-extension-xhtml=qutebrowser.desktop
application/x-extension-xht=qutebrowser.desktop
[Added Associations]
text/plain=mousepad.desktop;
application/x-bittorrent=deluge.desktop;
#+END_SRC
* Neomutt
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/neomutt.desktop
:END:
#+begin_src conf
[Desktop Entry]
Name=Neomutt
GenericName=Email client
Exec=$TERMINAL -e neomutt %u
Type=Application
Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg
Categories=Network;Email;
MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
StartupNotify=true
#+end_src
* Weechat
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/weechat.desktop
:END:
#+begin_src conf
[Desktop Entry]
Encoding=UTF-8
MultipleArgs=false
Terminal=false
Exec=$TERMINAL --class=WeeChat -e 'weechat'
StartupWMClass=WeeChat
Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg
Type=Application
Categories=Network;IRCClient;
StartupNotify=true
Name=WeeChat
GenericName=IRC Client
#+end_src
* Matlab
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/matlab.desktop
:END:
#+begin_src conf
[Desktop Entry]
Version=R2020b
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
#+end_src
* Neovim
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/nvim.desktop
:END:
#+begin_src conf
[Desktop Entry]
Name=Neovim
GenericName=Text Editor
Comment=Edit text files
Exec=nvim %F
Terminal=true
Type=Application
Keywords=Text;editor;
Icon=/usr/share/icons/Papirus/48x48/apps/nvim.svg
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;
#+end_src
* Images
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/img.desktop
:END:
#+begin_src conf
[Desktop Entry]
Type=Application
Name=Image viewer
Exec=/usr/bin/sxiv -a %u
#+end_src
* Org-Protocol
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/org-protocol.desktop
:END:
#+begin_src conf
[Desktop Entry]
Name=org-protocol
Exec=emacsclient %u
Icon=emacs-icon
Type=Application
Terminal=false
MimeType=x-scheme-handler/org-protocol;
#+end_src
* Ranger
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/ranger.desktop
:END:
#+begin_src conf
[Desktop Entry]
Type=Application
Name=ranger
Comment=Launches the ranger file manager
Icon=utilities-terminal
Terminal=true
Exec=ranger
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;
#+end_src
* Emacs Client
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/emacsclient.desktop
:END:
#+begin_src conf
[Desktop Entry]
Name=Emacs Client
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacsclient -c %f
Icon=emacs
Type=Application
Terminal=false
Categories=Utility;TextEditor;
#+end_src
* Torrent with Transmission
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/torrent.desktop
:END:
#+begin_src conf
[Desktop Entry]
Type=Application
Name=Torrent
Exec=tremc %U
#+end_src
* Qutebrowser
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/qutebrowser.desktop
:END:
#+begin_src conf
[Desktop Entry]
Name=qutebrowser
StartupWMClass=qutebrowser
GenericName=Web Browser
Comment=A keyboard-driven, vim-like browser based on PyQt5
Icon=qutebrowser
Type=Application
Categories=Network;WebBrowser;
Exec=qutebrowser %u
Terminal=false
StartupNotify=true
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/qute;
Keywords=Browser
Actions=new-window;preferences;
#+end_src
* Zathura
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/zathura.desktop
:END:
#+begin_src conf
[Desktop Entry]
Version=1.0
Type=Application
Name=Zathura
Comment=A minimalistic PDF viewer
Comment[de]=Ein minimalistischer PDF-Betrachter
Exec=zathura %f
Terminal=false
Categories=Office;Viewer;
MimeType=application/pdf;
#+end_src

View File

@ -1,64 +0,0 @@
#+TITLE: Awesome Emacs
* Other Awesome Emacs
https://github.com/emacs-tw/awesome-emacs
https://github.com/dakrone/eos
* Distributions
https://github.com/hlissner/doom-emacs
https://github.com/ralesi/spacemacs.org
* General
https://github.com/chrisdone/elisp-guide
https://github.com/melpa/melpa
https://github.com/jwiegley/use-package
* Packages
- https://github.com/company-mode/company-mode
- https://github.com/emacs-evil/evil
- https://github.com/noctuid/evil-guide
- https://github.com/emacs-evil/evil-collection
- https://github.com/redguardtoo/evil-matchit
- https://github.com/magit/magit
- https://github.com/vermiculus/magithub
- https://github.com/jaypei/emacs-neotree
- https://github.com/abo-abo/swiper
- https://github.com/joaotavora/yasnippet
- https://github.com/politza/pdf-tools
- https://github.com/jkitchin/scimax
- https://github.com/abo-abo/avy
- https://github.com/bbatsov/projectile
- https://github.com/emacs-helm/helm
- https://github.com/kiwanami/emacs-calfw
- https://github.com/yuya373/emacs-slack
- https://github.com/jwiegley/alert
- https://github.com/nashamri/academic-phrases
- https://github.com/auto-complete/auto-complete
- https://github.com/Fuco1/smartparens
- https://github.com/Alexander-Miller/treemacs
- https://github.com/jsinglet/latex-preview-pane
- https://github.com/rudolfochrist/interleave
- https://github.com/linktohack/ox-latex-subfigure
- https://github.com/Wilfred/ag.el
- https://github.com/tmalsburg/helm-bibtex
- https://github.com/fuxialexander/emacs-webkit-katex-render
- https://github.com/pronobis/matlab-mode
- https://github.com/yuhonglin/matlab-mode
* Org Mode
- https://github.com/fniessen/org-html-themes
- https://github.com/astahlman/ob-async
- https://github.com/bastibe/org-journal
- https://github.com/alphapapa/org-super-agenda
- https://github.com/hagmonk/org-kanban
- https://github.com/myuhe/org-gcal.el
- https://github.com/jkitchin/org-ref
- https://github.com/weirdNox/org-noter
- https://github.com/dengste/org-caldav
- https://github.com/Chobbes/org-chef
- https://github.com/abo-abo/org-download
- https://github.com/rexim/org-cliplink
* Theme
https://github.com/greduan/emacs-theme-gruvbox
https://github.com/fniessen/emacs-leuven-theme
https://github.com/bbatsov/zenburn-emacs

View File

@ -1,54 +0,0 @@
#+TITLE: Awesome LaTeX
* Other Awezome LaTeX
https://github.com/cmichi/latex-template-collection
https://github.com/latex3/latex3
https://github.com/egeerardyn/awesome-LaTeX
https://github.com/simonharrer/latex-best-practices
https://github.com/dspinellis/latex-advice
* Learn LaTeX
https://www.youtube.com/user/AlainOlivetti/playlists
* Tools
https://tectonic-typesetting.github.io/en-US/
https://github.com/gpoore/minted
* Theme/class
https://github.com/derric/cleanthesis
https://github.com/tdehaeze/clean-latex-template
https://github.com/deedy/Deedy-Resume
https://github.com/deselaers/latex-beamerposter
* Beamer
https://github.com/josephwright/beamer
** Theme
https://github.com/matze/mtheme
https://github.com/martinbjeldbak/ultimate-beamer-theme-list
* Tikz
https://github.com/walmes/Tikz
https://github.com/xiaohanyu/awesome-tikz
https://github.com/circuitikz/circuitikz
https://github.com/cbersch/pst-optexp
https://github.com/hackl/TikZ-StructuralAnalysis
https://github.com/fhackenberger/ktikz
* Packages
https://github.com/T-F-S/tcolorbox
* Math
** Make arrows with text above and bellow
https://tex.stackexchange.com/questions/103988/rightarrow-with-text-above-it
#+BEGIN_SRC latex
\documentclass{article}
\usepackage{mathtools}
\begin{document}
$\xrightarrow[\text{world}]{\text{hello}}$
$\xRightarrow[\text{world}]{\text{hello}}$
$\xrightarrow[g(x)]{f(x)}$
$\xRightarrow[g(x)]{f(x)}$
\end{document}
#+END_SRC

View File

@ -1,73 +0,0 @@
#+TITLE: Awesome Vim
* Other Awesome Vim
https://github.com/akrawchyk/awesome-vim
* Distribution
https://github.com/SpaceVim/SpaceVim
* Packages
https://github.com/metakirby5/codi.vim
https://github.com/SirVer/ultisnips
https://github.com/fatih/vim-go
https://github.com/junegunn/fzf.vim
https://github.com/junegunn/goyo.vim
https://github.com/junegunn/vim-easy-align
https://github.com/tpope/vim-obsession
https://github.com/itchyny/lightline.vim
https://github.com/christoomey/vim-tmux-navigator
https://github.com/Valloric/YouCompleteMe
https://github.com/tpope/vim-dispatch
https://github.com/jpalardy/vim-slime
https://github.com/Shougo/deoplete.nvim
https://github.com/justinmk/vim-sneak
https://github.com/sheerun/vim-polyglot
https://github.com/tommcdo/vim-exchange
https://github.com/tpope/vim-commentary
https://github.com/neomake/neomake
https://github.com/honza/vim-snippets
https://github.com/kassio/neoterm
https://github.com/Shougo/vimfiler.vim
https://github.com/tpope/vim-abolish
https://github.com/zchee/deoplete-jedi
https://github.com/Rip-Rip/clang_complete
https://github.com/jiangmiao/auto-pairs
https://github.com/majutsushi/tagbar
https://github.com/vim-scripts/a.vim
https://github.com/mhinz/vim-startify
https://github.com/dkprice/vim-easygrep
https://github.com/tpope/vim-vinegar
https://github.com/jceb/vim-orgmode
https://github.com/plasticboy/vim-markdown
https://github.com/AndrewRadev/splitjoin.vim
https://github.com/tpope/vim-surround
https://github.com/mhinz/vim-signify
https://github.com/mhinz/vim-grepper
https://github.com/itchyny/calendar.vim
https://github.com/maxbrunsfeld/vim-yankstack
https://github.com/brooth/far.vim
https://github.com/JamshedVesuna/vim-markdown-preview
https://github.com/sjl/gundo.vim
https://github.com/wincent/terminus
https://github.com/sbdchd/neoformat
https://github.com/ntpeters/vim-better-whitespace
https://github.com/tpope/vim-eunuch
https://github.com/w0rp/ale
https://github.com/Shougo/denite.nvim
https://github.com/haya14busa/is.vim
https://github.com/Olical/vim-enmasse
https://github.com/wincent/loupe
https://github.com/daeyun/vim-matlab
https://github.com/cknadler/vim-anywhere
https://github.com/szymonmaszke/vimpyter
https://github.com/tpope/vim-dadbod
https://github.com/urbainvaes/vim-remembrall
https://github.com/junegunn/vim-peekaboo
https://github.com/liuchengxu/vim-which-key
https://github.com/easymotion/vim-easymotion
https://github.com/chrisbra/NrrwRgn
* Themes
https://github.com/jacoborus/tender.vim
https://github.com/mhartington/oceanic-next
https://github.com/morhetz/gruvbox

408
bash.org Normal file
View File

@ -0,0 +1,408 @@
#+TITLE: Bash Configuration
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args :tangle-mode (identity #o444)
* =~/.bashrc=
:PROPERTIES:
:header-args:bash: :tangle ~/.bashrc
:header-args:bash+: :comments both :mkdirp yes
:CUSTOM_ID: bashrc
:END:
** If not running interactively, don't do anything
#+BEGIN_SRC bash
[[ $- != *i* ]] && return
#+END_SRC
** Bash Completion
#+BEGIN_SRC bash
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
#+END_SRC
** FZF
#+begin_src bash
source /usr/share/fzf/key-bindings.bash
#+end_src
** Ignore case for auto-completion
#+BEGIN_SRC bash
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
#+END_SRC
** Use Color
#+BEGIN_SRC bash
use_color=true
#+END_SRC
** Some config
#+BEGIN_SRC bash
# Unset some variables
unset use_color safe_term match_lhs sh
# Allow local processes with root privileges to connect to the locally running X server
xhost +local:root > /dev/null 2>&1
# Autocomplete sudo commands
complete -cf sudo
# Line wrap on window resize
shopt -s checkwinsize
# Enable history expansion with space
# E.g. typing !!<space> will replace the !! with your last command
bind Space:magic-space
# Expand Aliases
shopt -s expand_aliases
# Auto "cd" when entering just a path
shopt -s autocd
# Enable history appending instead of overwriting
shopt -s histappend
# Save multi-line commands as one command
shopt -s cmdhist
#+END_SRC
** Prompt - =PS1=
#+BEGIN_SRC bash
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
#+END_SRC
** Rebind up and down arrow keys to search through bash history
#+BEGIN_SRC bash
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
#+END_SRC
** Aliases
*** Better defaults for some commands
#+BEGIN_SRC bash
alias ls='ls -hN --color=auto --group-directories-first'
alias grep='grep --colour=auto'
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias mutt="neomutt"
alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'
#+END_SRC
*** One letter aliases
#+BEGIN_SRC bash
alias r="ranger"
alias t="tmux"
alias v="nvim"
alias sv='sudo -E nvim'
alias g="git"
alias m="neomutt"
alias o="xdg-open"
#+END_SRC
*** Neovim
#+begin_src bash
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
#+end_src
*** Vim-like
#+BEGIN_SRC bash
alias :q=exit
alias :e=nvim
#+END_SRC
*** Print each PATH entry on a separate line
#+BEGIN_SRC bash
alias path='echo -e ${PATH//:/\\n}'
#+END_SRC
** Functions
*** =colors= - Display colors
#+BEGIN_SRC bash
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
# foreground colors
for fgc in {30..37}; do
# background colors
for bgc in {40..47}; do
fgc=${fgc#37} # white
bgc=${bgc#40} # black
vals="${fgc:+$fgc;}${bgc}"
vals=${vals%%;}
seq0="${vals:+\e[${vals}m}"
printf " %-9s" "${seq0:-(default)}"
printf " ${seq0}TEXT\e[m"
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
done
echo; echo
done
}
#+END_SRC
*** =tre= - Tree display
=tre= is a shorthand for =tree= with hidden files and color enabled, ignoring
the =.git= directory, listing directories first. The output gets piped into
=less= with options to preserve color and line numbers, unless the output is
small enough for one screen.
#+BEGIN_SRC bash
function tre() {
tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@" | less -FRNX;
}
#+END_SRC
*** =mkd= - Create a new directory and enter it
#+BEGIN_SRC bash
function mkd() {
mkdir -p "$@" && cd "$_";
}
#+END_SRC
*** =fs= - Filesize of directory
#+BEGIN_SRC bash
function fs() {
if du -b /dev/null > /dev/null 2>&1; then
local arg=-sbh;
else
local arg=-sh;
fi
if [[ -n "$@" ]]; then
du $arg -- "$@";
else
du $arg .[^.]* ./*;
fi;
}
#+END_SRC
*** =nullify= - Redirect both standard output and standard error, as well as sending to background
#+BEGIN_SRC bash
function nullify() {
"$@" >/dev/null 2>&1
}
#+END_SRC
*** =sms= - Send SMS
https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface
#+begin_src bash :tangle no
sms(){
local args="$@"
# local phone_number name phone_type
# khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type
local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t')
if [[ -z "${phone_number}" ]]; then
echo No recipient was chosen >&2
return
else
kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c
fi
}
#+end_src
** Bash History
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history
#+BEGIN_SRC bash
# Huge history. Doesn't appear to slow things down, so why not?
HISTSIZE=500000
HISTFILESIZE=100000
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Don't record some commands
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
# Use standard ISO 8601 timestamp
# %F equivalent to %Y-%m-%d
# %T equivalent to %H:%M:%S (24-hours format)
HISTTIMEFORMAT='%F %T '
#+END_SRC
Change the file location because certain bash sessions truncate =.bash_history= file upon close. http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
#+BEGIN_SRC bash
export HISTFILE=~/.bash_eternal_history
#+END_SRC
Force prompt to write history after every command. http://superuser.com/questions/20900/bash-history-loss
#+BEGIN_SRC bash
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
#+END_SRC
* =~/.bash_profile=
:PROPERTIES:
:header-args:bash: :tangle ~/.bash_profile
:header-args:bash+: :comments both :mkdirp yes
:CUSTOM_ID: bash_profile
:END:
#+BEGIN_SRC bash
[[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
#+END_SRC
* =~/.profile=
:PROPERTIES:
:header-args:bash: :tangle ~/.profile
:header-args:bash+: :comments both :mkdirp yes
:CUSTOM_ID: profile
:END:
** QT And GTK Themes
#+begin_src bash
export QT_QPA_PLATFORMTHEME="qt5ct"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#+END_SRC
** Gui program to ask for sudo password
#+begin_src bash
export SUDO_ASKPASS=~/.local/bin/askpass-rofi
#+END_SRC
** Gnome Keyring Daemon
Enable the keyring for applications run through the terminal
#+begin_src bash
if [ -n "$DESKTOP_SESSION" ];then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi
#+end_src
** Export some default applications
#+begin_src bash
export EDITOR="nvim"
export TERMINAL="termite"
export BROWSER="qutebrowser"
export READER="zathura"
export FILE="ranger"
#+END_SRC
** Exports
*** Term
This is important for termite to work when sshing in remote machines.
#+begin_src bash
export TERM=xterm-color
#+end_src
*** XDG Default
#+begin_src bash
export XDG_CONFIG_HOME="$HOME/.config"
#+end_src
*** Use Ripgrep for FZF
#+begin_src bash
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export FZF_DEFAULT_OPTS='--layout=reverse --height=20'
#+end_src
*** Goland
#+begin_src bash
export GOPATH=$HOME/go
#+end_src
*** Latex Path
#+begin_src bash
export TEXMFHOME=$HOME/.local/share/texmf
#+end_src
*** Bitwarden Session
#+begin_src bash
export BW_SESSION="HH0yycfocRSuGtq/iW1e6v13PQ1sShMXbMhdb/En94S6OcIXFnJlLEyU+dySsmf2YShY4CImoB5FrxgdPsY9Qw=="
#+end_src
*** Python Path
#+begin_src bash
export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3.9/site-packages/configobj"
#+end_src
** Path
#+begin_src bash
PATH=$HOME/appimages:$PATH
PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
PATH=$GOPATH:$GOPATH/bin:$PATH
PATH=~/.config/emacs/bin:$PATH
export PATH
#+END_SRC
** Automatically run =startx=
#+begin_src bash
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi
#+end_src
* =~/.inputrc=
:PROPERTIES:
:header-args: :tangle ~/.inputrc
:header-args+: :comments both :mkdirp yes
:CUSTOM_ID: inputrc
:END:
Completion:
#+BEGIN_SRC conf
# Single tab for autocompletion
set show-all-if-ambiguous on
# Ignore case for completion
set completion-ignore-case on
#+END_SRC
vi mode:
#+BEGIN_SRC conf
# VI mode (works in bash and zsh)
set editing-mode vi
# Show which mode (normal or insert)
set show-mode-in-prompt on
# Show the mode by changing the cursor
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
#+END_SRC
Key-bindings for vi-mode:
#+BEGIN_SRC conf
set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line
Control-e: end-of-line
Control-w: "\C-aisudo \C-e"
set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line
Control-e: end-of-line
Control-w: "\C-asudo \C-e"
#+END_SRC
Colorized completion
#+begin_src conf
# Color files by types
set colored-stats On
# Append char to indicate type
set visible-stats On
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On
#+end_src
Don't echo =^C= after =Ctrl+C= is pressed.
#+begin_src conf
set echo-control-characters off
#+end_src

216
binaries-private.org Normal file
View File

@ -0,0 +1,216 @@
#+TITLE: My own specific binaries
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args:bash :comments both :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
#+PROPERTY: header-args:bash+ :tangle-mode (identity #o555)
* =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);
dunstify --replace=89891 'Rdesktop' "Connection to ${computer}..."
case $computer in
PCMEL1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$(pass ssl.esrf.fr/dehaeze | sed -n 1p) /v:PCMEL1.esrf.fr;
;;
PCMEG01)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$(pass ssl.esrf.fr/dehaeze | sed -n 1p) /v:PCMEG01.esrf.fr;
;;
PCNASS1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$(pass ssl.esrf.fr/dehaeze | sed -n 1p) /v:PCNASS1.esrf.fr;
;;
RNICE)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$(pass ssl.esrf.fr/dehaeze | sed -n 1p) /v:rnice.esrf.fr;
;;
,*)
echo "Not existing" && \
dunstify --replace=89891 --urgency=critical 'Rdesktop' "No config for $computer";
;;
esac
#+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);
sides=$(echo -e 'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge' | dmenu -p 'Two Sided:' -l 20);
media=$(echo -e 'A4\nA3' | dmenu -p 'Size:' -l 20);
# First copy the file to Rnice
if sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" scp $1 dehaeze@rnice:~/Downloads/; then
# Then print on Rnice
sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" ssh dehaeze@rnice "lpr -o media=$media -o sides=$sides -o number-up=$nbpage -P ctb110c1u ~/Downloads/$1";
# Finally, delete the file
else
echo "Command Failed"
fi
#+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
dunstify --replace=58249 'ESRF TMP ' 'Successfully mounted'
else
dunstify --replace=58249 --urgency=critical 'ESRF TMP ' 'Error while mounted'
fi
elif [ $1 == "umount" ]; then
if umount /home/thomas/mnt/ESRF/; then
dunstify --replace=58249 'ESRF TMP ' 'Successfully unmounted'
else
dunstify --replace=58249 --urgency=critical 'ESRF TMP ' 'Error while unmounted'
fi
fi
#+end_src
* =nas= - Interact with the NAS
:PROPERTIES:
:CUSTOM_ID: nas
:END:
As an alternative, =sshfs= can be used:
#+begin_src bash :tangle no
sshfs -o allow_other,default_permissions nas:/Data ~/mnt/NAS
#+end_src
#+begin_src bash :tangle ~/.local/bin/nas
if [ $1 == "mount" ]; then
if mount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS ' 'Successfully mounted'
else
dunstify --replace=58249 --urgency=critical 'NAS ' 'Error while mounted'
fi
elif [ $1 == "umount" ]; then
if umount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS ' 'Successfully unmounted'
else
dunstify --replace=58249 --urgency=critical 'NAS ' 'Error while unmounted'
fi
fi
#+end_src
* =torrent-add= - Download Torrent
:PROPERTIES:
:CUSTOM_ID: torrent-add
:END:
#+begin_src bash :tangle ~/.local/bin/torrent-add :noweb yes
transmission-remote <<get-password(passname="ip/grenoble")>>: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
# First check that the first argument is a pdf file
if [[ -f $1 && $1 == *.pdf ]]; then
pngfile=$(echo $1 | cut -f 1 -d '.' | sed 's/$/.png/')
# Convert to png and crop png
pdf2png $1 && convert -trim "$pngfile" "$pngfile"
fi
#+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
else
curl --progress-bar -F"file=@$1" https://file.tdehaeze.xyz/ | xsel -ib && \
dunstify 'Upload' 'Successful' || \
dunstify --urgency=critical 'Upload' 'Failed'
fi
#+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)
case "$option" in
"Work")
xrandr --output eDP1 --off --output DP1 --off --output DP1-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
;;
"XPS")
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-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
;;
,*)
echo "== ! missing or invalid argument ! =="
exit 2
esac
setbg && \ # Fix background if screen size/arangement has changed.
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 | tr -d '\n' | xsel -b
#+end_src
* =readbib= - Open Bibliography File
:PROPERTIES:
:CUSTOM_ID: readbib
:END:
List all =pdf= files and open selected one with zathura.
#+begin_src bash :tangle ~/.local/bin/readbib
cd ~/Cloud/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {}
#+end_src
* =readnotes= - Open Note
:PROPERTIES:
:CUSTOM_ID: readnotes
:END:
List all =pdf= files and open selected one with zathura.
#+begin_src bash :tangle ~/.local/bin/readnotes
cd ~/Cloud/brain/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {}
#+end_src

1216
binaries.org Normal file

File diff suppressed because it is too large Load Diff

53
bspwm.org Normal file
View File

@ -0,0 +1,53 @@
#+TITLE: BSPWM
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args:bash :comments both
#+PROPERTY: header-args:bash+ :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
#+PROPERTY: header-args:bash+ :tangle ~/.config/bspwm/bspwmrc
* List Desktops
#+begin_src bash
bspc monitor -d code web mail misc figs
#+end_src
* Basic Config
#+begin_src bash
bspc config border_width 1
bspc config window_gap 8
bspc config top_padding 27 # top_padding I set equal to polybar's height
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
#+end_src
* Colors
#+begin_src bash
bspc config normal_border_color \#32302f
bspc config focused_border_color \#bdae93
#+end_src
* Rules
Use =xprop= to obtain information about the window.
#+begin_src bash
# If refreshing bspwm, remove all previous rules to prevent doubling up.
bspc rule -r "*"
bspc rule --add qutebrowser desktop='web' follow=on state=tiled
bspc rule --add Emacs desktop='code' follow=on state=tiled
bspc rule --add Zathura state=tiled
bspc rule --add Pavucontrol state=floating
bspc rule --add Blueman-manager state=floating
#+end_src
* Run Polybar and SXHKD
#+begin_src bash
polybar top >>/tmp/polybar.log 2>&1 &
sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.bspwm &
#+end_src

165
calendar-contact.org Normal file
View File

@ -0,0 +1,165 @@
#+TITLE:Calendar and Contact Configuration
#+SETUPFILE: ./setup/org-setup-file.org
* =vdirsyncer= - Synchronize calendars and contacts
:PROPERTIES:
:header-args: :tangle ~/.config/vdirsyncer/config
:header-args+: :comments both :mkdirp yes :noweb no-export
:END:
#+BEGIN_SRC conf
[general]
status_path = "~/.config/vdirsyncer/status/"
[pair radicale_calendar]
a = "radicale_calendar_remote"
b = "radicale_calendar_local"
collections = ["76bfc802-3186-e3af-f688-7e165115b4f8", "f78f1649-b54e-7bfe-488d-6a7005a5aa2f"]
conflict_resolution = "a wins"
[storage radicale_calendar_remote]
type = "caldav"
url = "https://radicale.tdehaeze.xyz/tdehaeze/"
username = "tdehaeze"
password = "<<get-password(passname="radicale.tdehaeze.xyz/tdehaeze")>>"
[storage radicale_calendar_local]
type = "filesystem"
path = "~/.calendars/radicale/"
fileext = ".ics"
[pair esrf_calendar]
a = "esrf_calendar_remote"
b = "esrf_calendar_local"
collections = ["calendar"]
conflict_resolution = "a wins"
[storage esrf_calendar_remote]
type = "caldav"
url = "https://calendar.esrf.fr/egroupware/groupdav.php/calendar"
username = "dehaeze"
password = "<<get-password(passname="ce-esrf.fr/dehaeze")>>"
[storage esrf_calendar_local]
type = "filesystem"
path = "~/.calendars/esrf/"
fileext = ".ics"
[pair radicale_contacts]
a = "radicale_contacts_remote"
b = "radicale_contacts_local"
collections = ["98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7"]
conflict_resolution = "a wins"
[storage radicale_contacts_local]
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"
[storage radicale_contacts_remote]
type = "carddav"
url = "https://radicale.tdehaeze.xyz/tdehaeze/"
username = "tdehaeze"
password = "<<get-password(passname="radicale.tdehaeze.xyz/tdehaeze")>>"
#+END_SRC
* =khal= - CLI calendar application
:PROPERTIES:
:header-args: :tangle ~/.config/khal/config
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[calendars]
[[Home]]
path = ~/.calendars/radicale/76bfc802-3186-e3af-f688-7e165115b4f8/
color = "#B8BB26" # Green
[[Thesis]]
path = ~/.calendars/radicale/f78f1649-b54e-7bfe-488d-6a7005a5aa2f/
color = "#FB4934" # Red
[[ESRF]]
path = ~/.calendars/esrf/calendar/
color = "#83A598" # Blue
[[Birthdays]]
path = ~/.contacts/98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7/
color = "#D3869B" # aqua
type = birthdays
[highlight_days]
multiple = "#FABD2F" # Yellow
[default]
highlight_event_days = True
[locale]
local_timezone= Europe/Berlin
default_timezone= Europe/Berlin
timeformat= %H:%M
dateformat= %d.%m.
longdateformat= %d.%m.%Y
datetimeformat= %d.%m. %H:%M
longdatetimeformat= %d.%m.%Y %H:%M
[keybindings]
delete = d
today = .
new = c
#+END_SRC
* =khard= - CLI contact application
:PROPERTIES:
:header-args: :tangle ~/.config/khard/khard.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[addressbooks]
[[contacts]]
path = ~/.contacts/98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7/
[general]
debug = no
default_action = list
editor = vim
merge_editor = vimdiff
[contact table]
# display names by first or last name: first_name / last_name
display = first_name
# group by address book: yes / no
group_by_addressbook = no
# reverse table ordering: yes / no
reverse = no
# append nicknames to name column: yes / no
show_nicknames = no
# show uid table column: yes / no
show_uids = yes
# sort by first or last name: first_name / last_name
sort = last_name
# localize dates: yes / no
localize_dates = yes
# set a comma separated list of preferred phone number types in descending priority
# or nothing for non-filtered alphabetical order
preferred_phone_number_type = pref, cell, home
# set a comma separated list of preferred email address types in descending priority
# or nothing for non-filtered alphabetical order
preferred_email_address_type = pref, work, home
[vcard]
# extend contacts with your own private objects
# these objects are stored with a leading "X-" before the object name in the vcard files
# every object label may only contain letters, digits and the - character
# example:
# private_objects = Jabber, Skype, Twitter
private_objects = Jabber, Skype, Twitter
# preferred vcard version: 3.0 / 4.0
preferred_version = 3.0
# Look into source vcf files to speed up search queries: yes / no
search_in_source_files = no
# skip unparsable vcard files: yes / no
skip_unparsable = no
#+END_SRC

56
compositor.org Normal file
View File

@ -0,0 +1,56 @@
#+TITLE: Picom (Compositor)
#+SETUPFILE: ./setup/org-setup-file.org
#+PROPERTY: header-args :tangle ~/.config/picom/picom.conf
#+PROPERTY: header-args+ :comments both :mkdirp yes
* Shadow
#+BEGIN_SRC conf
shadow = true;
shadow-radius = 12;
shadow-offset-x = -12;
shadow-offset-y = -12;
shadow-exclude = [
"name = 'Notification'",
"window_type = 'dock'",
"window_type = 'dnd'",
"class_g = 'VirtualBox'",
"class_g ?= 'Notify-osd'",
"name = 'cpt_frame_window'", # For zoom problem when sharing screen
"class_g = 'stalonetray'"
];
#+END_SRC
* Opacity
#+BEGIN_SRC conf
inactive-opacity = 1.0;
frame-opacity = 1.0;
inactive-opacity-override = false;
#+END_SRC
* Fading
#+BEGIN_SRC conf
fading = false;
fade-in-step = 0.03;
fade-out-step = 0.03;
#+END_SRC
* Other
#+BEGIN_SRC conf
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
#+END_SRC
* Window Type Setting
#+begin_src conf
wintypes:
{
tooltip = { fade = true; shadow = true; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
};
#+end_src

784
config.org Normal file
View File

@ -0,0 +1,784 @@
#+TITLE: Configuration Files
#+SETUPFILE: ./setup/org-setup-file.org
* SSH
:PROPERTIES:
:header-args: :tangle ~/.ssh/config
:header-args+: :comments none :mkdirp yes
:END:
#+begin_src conf :noweb yes
AddKeysToAgent yes
Host grenoble
hostname <<get-password(passname="ip/grenoble")>>
Port 22
user thomas
IdentityFile ~/.ssh/id_rsa
Host oneplus
hostname 192.168.1.58
Port 8022
IdentityFile ~/.ssh/id_rsa
#+end_src
* Font
:PROPERTIES:
:header-args: :tangle ~/.config/fontconfig/fonts.conf
:header-args+: :comments none :mkdirp yes
:END:
#+begin_src conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Linertinus Serif</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Hack Nerd Font Mono</family></prefer>
</alias>
</fontconfig>
#+end_src
* GnuPG
:PROPERTIES:
:header-args: :tangle ~/.gnupg/gpg-agent.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
default-cache-ttl 60480000
max-cache-ttl 60480000
#+END_SRC
* Redshift
:PROPERTIES:
:header-args: :tangle ~/.config/redshift.conf
:header-args+: :comments none :mkdirp yes
:END:
#+begin_src conf
[redshift]
temp-day=5700
temp-night=3500
transition=1
;brightness-day=0.7
;brightness-night=0.4
location-provider=manual
adjustment-method=randr
[manual]
lat=45.1
lon=5.7
#+end_src
* dmenu
:PROPERTIES:
:header-args: :tangle ~/.dmenurc
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# define the font for dmenu to be used
DMENU_FN="Hack Nerd Font 12"
# background colour for unselected menu-items
DMENU_NB="#222D31"
# textcolour for unselected menu-items
DMENU_NF="#F9FAF9"
# background colour for selected menu-items
DMENU_SB="#16A085"
# textcolour for selected menu-items
DMENU_SF="#F9FAF9"
# command for the terminal application to be used:
TERMINAL_CMD="terminal -e"
# export our variables
DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
#+END_SRC
* Locale
:PROPERTIES:
:header-args: :tangle ~/.config/locale.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
#+END_SRC
* Xcompose
#+begin_src conf :tangle ~/.XCompose
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
<dead_acute> <space> : "'"
### DEAD_ACUTE
# Fixing dead_acute "´" assignments by overwriting the assignments
<dead_acute> <B> : "'B"
<dead_acute> <b> : "'b"
<dead_acute> <C> : "Ç" Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA
<dead_acute> <c> : "ç" ccedilla # LATIN SMALL LETTER C WITH CEDILLA
<dead_acute> <D> : "'D"
<dead_acute> <d> : "'d"
<dead_acute> <F> : "'F"
<dead_acute> <f> : "'f"
<dead_acute> <G> : "'G"
<dead_acute> <g> : "'g"
<dead_acute> <H> : "'H"
<dead_acute> <h> : "'h"
<dead_acute> <J> : "'J"
<dead_acute> <j> : "'j"
<dead_acute> <K> : "'K"
<dead_acute> <k> : "'k"
<dead_acute> <L> : "'L"
<dead_acute> <l> : "'l"
<dead_acute> <M> : "'M"
<dead_acute> <m> : "'m"
<dead_acute> <N> : "'N"
<dead_acute> <n> : "'n"
<dead_acute> <P> : "'P"
<dead_acute> <p> : "'p"
<dead_acute> <Q> : "'Q"
<dead_acute> <q> : "'q"
<dead_acute> <R> : "'R"
<dead_acute> <r> : "'r"
<dead_acute> <S> : "'S"
<dead_acute> <s> : "'s"
<dead_acute> <T> : "'T"
<dead_acute> <t> : "'t"
<dead_acute> <V> : "'V"
<dead_acute> <v> : "'v"
<dead_acute> <W> : "'W"
<dead_acute> <w> : "'w"
<dead_acute> <X> : "'X"
<dead_acute> <x> : "'x"
<dead_acute> <Z> : "'Z"
<dead_acute> <z> : "'z"
<dead_acute> <1> : "'1"
<dead_acute> <2> : "'2"
<dead_acute> <3> : "'3"
<dead_acute> <4> : "'4"
<dead_acute> <5> : "'5"
<dead_acute> <6> : "'6"
<dead_acute> <7> : "'7"
<dead_acute> <8> : "'8"
<dead_acute> <9> : "'9"
<dead_acute> <0> : "'0"
<dead_acute> <dead_acute> : "''"
<dead_acute> <dead_grave> : "'`"
<dead_acute> <dead_diaeresis> : "'\""
<dead_acute> <dead_circumflex> : "'^"
<dead_acute> <dead_tilde> : "'~"
<dead_acute> <exclam> : "'!"
<dead_acute> <exclamdown> : "'¡"
<dead_acute> <onesuperior> : "'¹"
<dead_acute> <at> : "'@"
<dead_acute> <twosuperior> : "'²"
<dead_acute> <numbersign> : "'#"
<dead_acute> <threesuperior> : "'³"
<dead_acute> <dollar> : "'$"
<dead_acute> <currency> : "'¤"
<dead_acute> <sterling> : "'£"
<dead_acute> <percent> : "'%"
<dead_acute> <EuroSign> : "'€"
<dead_acute> <onequarter> : "'¼"
<dead_acute> <ampersand> : "'&"
<dead_acute> <onehalf> : "'½"
<dead_acute> <asterisk> : "'*"
<dead_acute> <threequarters> : "'¾"
<dead_acute> <parenleft> : "'("
<dead_acute> <leftsinglequotemark> : "'"
<dead_acute> <parenright> : "')"
<dead_acute> <rightsinglequotemark> : "'"
<dead_acute> <minus> : "'-"
<dead_acute> <underscore> : "'_"
<dead_acute> <yen> : "'¥"
<dead_acute> <equal> : "'="
<dead_acute> <plus> : "'+"
<dead_acute> <multiply> : "'×"
<dead_acute> <division> : "'÷"
<dead_acute> <bracketleft> : "'["
<dead_acute> <bracketright> : "']"
<dead_acute> <braceleft> : "'{"
<dead_acute> <braceright> : "'}"
<dead_acute> <guillemotleft> : "'«"
<dead_acute> <guillemotright> : "'»"
<dead_acute> <acute> : "'´"
<dead_acute> <diaeresis> : "'¨"
<dead_acute> <backslash> : "'\\"
<dead_acute> <bar> : "'|"
<dead_acute> <notsign> : "'¬"
<dead_acute> <brokenbar> : "'¦"
<dead_acute> <semicolon> : "';"
<dead_acute> <colon> : "':"
<dead_acute> <paragraph> : "'¶"
<dead_acute> <degree> : "'°"
<dead_acute> <comma> : "',"
<dead_acute> <period> : "'."
<dead_acute> <less> : "'<"
<dead_acute> <greater> : "'>"
<dead_acute> <slash> : "'/"
<dead_acute> <question> : "'?"
<dead_acute> <questiondown> : "'¿"
### DEAD_DIAERESIS
# Fixing dead_diaeresis "¨" assignments by overwriting the assignments
<dead_diaeresis> <B> : "\"B"
<dead_diaeresis> <b> : "\"b"
<dead_diaeresis> <C> : "\"C"
<dead_diaeresis> <c> : "\"c"
<dead_diaeresis> <D> : "\"D"
<dead_diaeresis> <d> : "\"d"
<dead_diaeresis> <F> : "\"F"
<dead_diaeresis> <f> : "\"f"
<dead_diaeresis> <G> : "\"G"
<dead_diaeresis> <g> : "\"g"
<dead_diaeresis> <H> : "\"H"
<dead_diaeresis> <h> : "\"h"
<dead_diaeresis> <J> : "\"J"
<dead_diaeresis> <j> : "\"j"
<dead_diaeresis> <K> : "\"K"
<dead_diaeresis> <k> : "\"k"
<dead_diaeresis> <L> : "\"L"
<dead_diaeresis> <l> : "\"l"
<dead_diaeresis> <M> : "\"M"
<dead_diaeresis> <m> : "\"m"
<dead_diaeresis> <N> : "\"N"
<dead_diaeresis> <n> : "\"n"
<dead_diaeresis> <P> : "\"P"
<dead_diaeresis> <p> : "\"p"
<dead_diaeresis> <Q> : "\"Q"
<dead_diaeresis> <q> : "\"q"
<dead_diaeresis> <R> : "\"R"
<dead_diaeresis> <r> : "\"r"
<dead_diaeresis> <S> : "\"S"
<dead_diaeresis> <s> : "\"s"
<dead_diaeresis> <T> : "\"T"
<dead_diaeresis> <t> : "\"t"
<dead_diaeresis> <V> : "\"V"
<dead_diaeresis> <v> : "\"v"
<dead_diaeresis> <W> : "\"W"
<dead_diaeresis> <w> : "\"w"
<dead_diaeresis> <X> : "\"X"
<dead_diaeresis> <x> : "\"x"
<dead_diaeresis> <Y> : "\"Y"
<dead_diaeresis> <Z> : "\"Z"
<dead_diaeresis> <z> : "\"z"
<dead_diaeresis> <1> : "\"1"
<dead_diaeresis> <2> : "\"2"
<dead_diaeresis> <3> : "\"3"
<dead_diaeresis> <4> : "\"4"
<dead_diaeresis> <5> : "\"5"
<dead_diaeresis> <6> : "\"6"
<dead_diaeresis> <7> : "\"7"
<dead_diaeresis> <8> : "\"8"
<dead_diaeresis> <9> : "\"9"
<dead_diaeresis> <0> : "\"0"
<dead_diaeresis> <dead_diaeresis> : "\"\""
<dead_diaeresis> <dead_acute> : "\"'"
<dead_diaeresis> <dead_grave> : "\"`"
<dead_diaeresis> <dead_circumflex> : "\"^"
<dead_diaeresis> <dead_tilde> : "\"~"
<dead_diaeresis> <exclam> : "\"!"
<dead_diaeresis> <exclamdown> : "\"¡"
<dead_diaeresis> <onesuperior> : "\"¹"
<dead_diaeresis> <at> : "\"@"
<dead_diaeresis> <twosuperior> : "\"²"
<dead_diaeresis> <numbersign> : "\"#"
<dead_diaeresis> <threesuperior> : "\"³"
<dead_diaeresis> <dollar> : "\"$"
<dead_diaeresis> <currency> : "\"¤"
<dead_diaeresis> <sterling> : "\"£"
<dead_diaeresis> <percent> : "\"%"
<dead_diaeresis> <EuroSign> : "\"€"
<dead_diaeresis> <onequarter> : "\"¼"
<dead_diaeresis> <ampersand> : "\"&"
<dead_diaeresis> <onehalf> : "\"½"
<dead_diaeresis> <asterisk> : "\"*"
<dead_diaeresis> <threequarters> : "\"¾"
<dead_diaeresis> <parenleft> : "\"("
<dead_diaeresis> <leftsinglequotemark> : "\""
<dead_diaeresis> <parenright> : "\")"
<dead_diaeresis> <rightsinglequotemark> : "\""
<dead_diaeresis> <minus> : "\"-"
<dead_diaeresis> <underscore> : "\"_"
<dead_diaeresis> <yen> : "\"¥"
<dead_diaeresis> <equal> : "\"="
<dead_diaeresis> <plus> : "\"+"
<dead_diaeresis> <multiply> : "\"×"
<dead_diaeresis> <division> : "\"÷"
<dead_diaeresis> <bracketleft> : "\"["
<dead_diaeresis> <bracketright> : "\"]"
<dead_diaeresis> <braceleft> : "\"{"
<dead_diaeresis> <braceright> : "\"}"
<dead_diaeresis> <guillemotleft> : "\"«"
<dead_diaeresis> <guillemotright> : "\"»"
<dead_diaeresis> <acute> : "\"´"
<dead_diaeresis> <diaeresis> : "\"¨"
<dead_diaeresis> <backslash> : "\"\\"
<dead_diaeresis> <bar> : "\"|"
<dead_diaeresis> <notsign> : "\"¬"
<dead_diaeresis> <brokenbar> : "\"¦"
<dead_diaeresis> <semicolon> : "\";"
<dead_diaeresis> <colon> : "\":"
<dead_diaeresis> <paragraph> : "\"¶"
<dead_diaeresis> <degree> : "\"°"
<dead_diaeresis> <comma> : "\","
<dead_diaeresis> <period> : "\"."
<dead_diaeresis> <less> : "\"<"
<dead_diaeresis> <greater> : "\">"
<dead_diaeresis> <slash> : "\"/"
<dead_diaeresis> <question> : "\"?"
<dead_diaeresis> <questiondown> : "\"¿"
### DEAD_GRAVE
# Fixing dead_grave "`" assignments by overwriting the assignments
<dead_grave> <B> : "`B"
<dead_grave> <b> : "`b"
<dead_grave> <C> : "`C"
<dead_grave> <c> : "`c"
<dead_grave> <D> : "`D"
<dead_grave> <d> : "`d"
<dead_grave> <F> : "`F"
<dead_grave> <f> : "`f"
<dead_grave> <G> : "`G"
<dead_grave> <g> : "`g"
<dead_grave> <H> : "`H"
<dead_grave> <h> : "`h"
<dead_grave> <J> : "`J"
<dead_grave> <j> : "`j"
<dead_grave> <K> : "`K"
<dead_grave> <k> : "`k"
<dead_grave> <L> : "`L"
<dead_grave> <l> : "`l"
<dead_grave> <M> : "`M"
<dead_grave> <m> : "`m"
<dead_grave> <N> : "`N"
<dead_grave> <n> : "`n"
<dead_grave> <P> : "`P"
<dead_grave> <p> : "`p"
<dead_grave> <Q> : "`Q"
<dead_grave> <q> : "`q"
<dead_grave> <R> : "`R"
<dead_grave> <r> : "`r"
<dead_grave> <S> : "`S"
<dead_grave> <s> : "`s"
<dead_grave> <T> : "`T"
<dead_grave> <t> : "`t"
<dead_grave> <V> : "`V"
<dead_grave> <v> : "`v"
<dead_grave> <W> : "`W"
<dead_grave> <w> : "`w"
<dead_grave> <X> : "`X"
<dead_grave> <x> : "`x"
<dead_grave> <Y> : "`Y"
<dead_grave> <y> : "`y"
<dead_grave> <Z> : "`Z"
<dead_grave> <z> : "`z"
<dead_grave> <1> : "`1"
<dead_grave> <2> : "`2"
<dead_grave> <3> : "`3"
<dead_grave> <4> : "`4"
<dead_grave> <5> : "`5"
<dead_grave> <6> : "`6"
<dead_grave> <7> : "`7"
<dead_grave> <8> : "`8"
<dead_grave> <9> : "`9"
<dead_grave> <0> : "`0"
<dead_grave> <dead_grave> : "``"
<dead_grave> <dead_acute> : "`'"
<dead_grave> <dead_diaeresis> : "`\""
<dead_grave> <dead_circumflex> : "`^"
<dead_grave> <dead_tilde> : "`~"
<dead_grave> <exclam> : "`!"
<dead_grave> <exclamdown> : "`¡"
<dead_grave> <onesuperior> : "`¹"
<dead_grave> <at> : "`@"
<dead_grave> <twosuperior> : "`²"
<dead_grave> <numbersign> : "`#"
<dead_grave> <threesuperior> : "`³"
<dead_grave> <dollar> : "`$"
<dead_grave> <currency> : "`¤"
<dead_grave> <sterling> : "`£"
<dead_grave> <percent> : "`%"
<dead_grave> <EuroSign> : "`€"
<dead_grave> <onequarter> : "`¼"
<dead_grave> <ampersand> : "`&"
<dead_grave> <onehalf> : "`½"
<dead_grave> <asterisk> : "`*"
<dead_grave> <threequarters> : "`¾"
<dead_grave> <parenleft> : "`("
<dead_grave> <leftsinglequotemark> : "`"
<dead_grave> <parenright> : "`)"
<dead_grave> <rightsinglequotemark> : "`"
<dead_grave> <minus> : "`-"
<dead_grave> <underscore> : "`_"
<dead_grave> <yen> : "`¥"
<dead_grave> <equal> : "`="
<dead_grave> <plus> : "`+"
<dead_grave> <multiply> : "`×"
<dead_grave> <division> : "`÷"
<dead_grave> <bracketleft> : "`["
<dead_grave> <bracketright> : "`]"
<dead_grave> <braceleft> : "`{"
<dead_grave> <braceright> : "`}"
<dead_grave> <guillemotleft> : "`«"
<dead_grave> <guillemotright> : "`»"
<dead_grave> <acute> : "`´"
<dead_grave> <diaeresis> : "`¨"
<dead_grave> <backslash> : "`\\"
<dead_grave> <bar> : "`|"
<dead_grave> <notsign> : "`¬"
<dead_grave> <brokenbar> : "`¦"
<dead_grave> <semicolon> : "`;"
<dead_grave> <colon> : "`:"
<dead_grave> <paragraph> : "`¶"
<dead_grave> <degree> : "`°"
<dead_grave> <comma> : "`,"
<dead_grave> <period> : "`."
<dead_grave> <less> : "`<"
<dead_grave> <greater> : "`>"
<dead_grave> <slash> : "`/"
<dead_grave> <question> : "`?"
<dead_grave> <questiondown> : "`¿"
### DEAD_CIRCUMFLEX
# Fixing dead_circumflex "^" assignments by overwriting the assignments
<dead_circumflex> <B> : "^B"
<dead_circumflex> <b> : "^b"
<dead_circumflex> <C> : "^C"
<dead_circumflex> <c> : "^c"
<dead_circumflex> <D> : "^D"
<dead_circumflex> <d> : "^d"
<dead_circumflex> <F> : "^F"
<dead_circumflex> <f> : "^f"
<dead_circumflex> <G> : "^G"
<dead_circumflex> <g> : "^g"
<dead_circumflex> <H> : "^H"
<dead_circumflex> <h> : "^h"
<dead_circumflex> <J> : "^J"
<dead_circumflex> <j> : "^j"
<dead_circumflex> <K> : "^K"
<dead_circumflex> <k> : "^k"
<dead_circumflex> <L> : "^L"
<dead_circumflex> <l> : "^l"
<dead_circumflex> <M> : "^M"
<dead_circumflex> <m> : "^m"
<dead_circumflex> <N> : "^N"
<dead_circumflex> <n> : "^n"
<dead_circumflex> <P> : "^P"
<dead_circumflex> <p> : "^p"
<dead_circumflex> <Q> : "^Q"
<dead_circumflex> <q> : "^q"
<dead_circumflex> <R> : "^R"
<dead_circumflex> <r> : "^r"
<dead_circumflex> <S> : "^S"
<dead_circumflex> <s> : "^s"
<dead_circumflex> <T> : "^T"
<dead_circumflex> <t> : "^t"
<dead_circumflex> <V> : "^V"
<dead_circumflex> <v> : "^v"
<dead_circumflex> <W> : "^W"
<dead_circumflex> <w> : "^w"
<dead_circumflex> <X> : "^X"
<dead_circumflex> <x> : "^x"
<dead_circumflex> <Y> : "^Y"
<dead_circumflex> <y> : "^y"
<dead_circumflex> <Z> : "^Z"
<dead_circumflex> <z> : "^z"
<dead_circumflex> <1> : "^1"
<dead_circumflex> <2> : "^2"
<dead_circumflex> <3> : "^3"
<dead_circumflex> <4> : "^4"
<dead_circumflex> <5> : "^5"
<dead_circumflex> <6> : "^6"
<dead_circumflex> <7> : "^7"
<dead_circumflex> <8> : "^8"
<dead_circumflex> <9> : "^9"
<dead_circumflex> <0> : "^0"
<dead_circumflex> <dead_circumflex> : "^^"
<dead_circumflex> <dead_acute> : "^'"
<dead_circumflex> <dead_grave> : "^`"
<dead_circumflex> <dead_diaeresis> : "^\""
<dead_circumflex> <dead_tilde> : "^~"
<dead_circumflex> <exclam> : "^!"
<dead_circumflex> <exclamdown> : "^¡"
<dead_circumflex> <onesuperior> : "^¹"
<dead_circumflex> <at> : "^@"
<dead_circumflex> <twosuperior> : "^²"
<dead_circumflex> <numbersign> : "^#"
<dead_circumflex> <threesuperior> : "^³"
<dead_circumflex> <dollar> : "^$"
<dead_circumflex> <currency> : "^¤"
<dead_circumflex> <sterling> : "^£"
<dead_circumflex> <percent> : "^%"
<dead_circumflex> <EuroSign> : "^€"
<dead_circumflex> <onequarter> : "^¼"
<dead_circumflex> <ampersand> : "^&"
<dead_circumflex> <onehalf> : "^½"
<dead_circumflex> <asterisk> : "^*"
<dead_circumflex> <threequarters> : "^¾"
<dead_circumflex> <parenleft> : "^("
<dead_circumflex> <leftsinglequotemark> : "^"
<dead_circumflex> <parenright> : "^)"
<dead_circumflex> <rightsinglequotemark> : "^"
<dead_circumflex> <minus> : "^-"
<dead_circumflex> <underscore> : "^_"
<dead_circumflex> <yen> : "^¥"
<dead_circumflex> <equal> : "^="
<dead_circumflex> <plus> : "^+"
<dead_circumflex> <multiply> : "^×"
<dead_circumflex> <division> : "^÷"
<dead_circumflex> <bracketleft> : "^["
<dead_circumflex> <bracketright> : "^]"
<dead_circumflex> <braceleft> : "^{"
<dead_circumflex> <braceright> : "^}"
<dead_circumflex> <guillemotleft> : "^«"
<dead_circumflex> <guillemotright> : "^»"
<dead_circumflex> <acute> : "^´"
<dead_circumflex> <diaeresis> : "^¨"
<dead_circumflex> <backslash> : "^\\"
<dead_circumflex> <bar> : "^|"
<dead_circumflex> <notsign> : "^¬"
<dead_circumflex> <brokenbar> : "^¦"
<dead_circumflex> <semicolon> : "^;"
<dead_circumflex> <colon> : "^:"
<dead_circumflex> <paragraph> : "^¶"
<dead_circumflex> <degree> : "^°"
<dead_circumflex> <comma> : "^,"
<dead_circumflex> <period> : "^."
<dead_circumflex> <less> : "^<"
<dead_circumflex> <greater> : "^>"
<dead_circumflex> <slash> : "^/"
<dead_circumflex> <question> : "^?"
<dead_circumflex> <questiondown> : "^¿"
### DEAD_TILDE
# Fixing dead_tilde "~" assignments by overwriting the assignments
<dead_tilde> <B> : "~B"
<dead_tilde> <b> : "~b"
<dead_tilde> <C> : "~C"
<dead_tilde> <c> : "~c"
<dead_tilde> <D> : "~D"
<dead_tilde> <d> : "~d"
<dead_tilde> <E> : "~E"
<dead_tilde> <e> : "~e"
<dead_tilde> <F> : "~F"
<dead_tilde> <f> : "~f"
<dead_tilde> <G> : "~G"
<dead_tilde> <g> : "~g"
<dead_tilde> <H> : "~H"
<dead_tilde> <h> : "~h"
<dead_tilde> <I> : "~I"
<dead_tilde> <i> : "~i"
<dead_tilde> <J> : "~J"
<dead_tilde> <j> : "~j"
<dead_tilde> <K> : "~K"
<dead_tilde> <k> : "~k"
<dead_tilde> <L> : "~L"
<dead_tilde> <l> : "~l"
<dead_tilde> <M> : "~M"
<dead_tilde> <m> : "~m"
<dead_tilde> <P> : "~P"
<dead_tilde> <p> : "~p"
<dead_tilde> <Q> : "~Q"
<dead_tilde> <q> : "~q"
<dead_tilde> <R> : "~R"
<dead_tilde> <r> : "~r"
<dead_tilde> <S> : "~S"
<dead_tilde> <s> : "~s"
<dead_tilde> <T> : "~T"
<dead_tilde> <t> : "~t"
<dead_tilde> <U> : "~U"
<dead_tilde> <u> : "~u"
<dead_tilde> <V> : "~V"
<dead_tilde> <v> : "~v"
<dead_tilde> <W> : "~W"
<dead_tilde> <w> : "~w"
<dead_tilde> <X> : "~X"
<dead_tilde> <x> : "~x"
<dead_tilde> <Y> : "~Y"
<dead_tilde> <y> : "~y"
<dead_tilde> <Z> : "~Z"
<dead_tilde> <z> : "~z"
<dead_tilde> <1> : "~1"
<dead_tilde> <2> : "~2"
<dead_tilde> <3> : "~3"
<dead_tilde> <4> : "~4"
<dead_tilde> <5> : "~5"
<dead_tilde> <6> : "~6"
<dead_tilde> <7> : "~7"
<dead_tilde> <8> : "~8"
<dead_tilde> <9> : "~9"
<dead_tilde> <0> : "~0"
<dead_tilde> <dead_tilde> : "~~"
<dead_tilde> <dead_acute> : "~'"
<dead_tilde> <dead_grave> : "~`"
<dead_tilde> <dead_diaeresis> : "~\""
<dead_tilde> <dead_circumflex> : "~^"
<dead_tilde> <exclam> : "~!"
<dead_tilde> <exclamdown> : "~¡"
<dead_tilde> <onesuperior> : "~¹"
<dead_tilde> <at> : "~@"
<dead_tilde> <twosuperior> : "~²"
<dead_tilde> <numbersign> : "~#"
<dead_tilde> <threesuperior> : "~³"
<dead_tilde> <dollar> : "~$"
<dead_tilde> <currency> : "~¤"
<dead_tilde> <sterling> : "~£"
<dead_tilde> <percent> : "~%"
<dead_tilde> <EuroSign> : "~€"
<dead_tilde> <onequarter> : "~¼"
<dead_tilde> <ampersand> : "~&"
<dead_tilde> <onehalf> : "~½"
<dead_tilde> <asterisk> : "~*"
<dead_tilde> <threequarters> : "~¾"
<dead_tilde> <parenleft> : "~("
<dead_tilde> <leftsinglequotemark> : "~"
<dead_tilde> <parenright> : "~)"
<dead_tilde> <rightsinglequotemark> : "~"
<dead_tilde> <minus> : "~-"
<dead_tilde> <underscore> : "~_"
<dead_tilde> <yen> : "~¥"
<dead_tilde> <equal> : "~="
<dead_tilde> <plus> : "~+"
<dead_tilde> <multiply> : "~×"
<dead_tilde> <division> : "~÷"
<dead_tilde> <bracketleft> : "~["
<dead_tilde> <bracketright> : "~]"
<dead_tilde> <braceleft> : "~{"
<dead_tilde> <braceright> : "~}"
<dead_tilde> <guillemotleft> : "~«"
<dead_tilde> <guillemotright> : "~»"
<dead_tilde> <acute> : "~´"
<dead_tilde> <diaeresis> : "~¨"
<dead_tilde> <backslash> : "~\\"
<dead_tilde> <bar> : "~|"
<dead_tilde> <notsign> : "~¬"
<dead_tilde> <brokenbar> : "~¦"
<dead_tilde> <semicolon> : "~;"
<dead_tilde> <colon> : "~:"
<dead_tilde> <paragraph> : "~¶"
<dead_tilde> <degree> : "~°"
<dead_tilde> <comma> : "~,"
<dead_tilde> <period> : "~."
<dead_tilde> <less> : "~<"
<dead_tilde> <greater> : "~>"
<dead_tilde> <slash> : "~/"
<dead_tilde> <question> : "~?"
<dead_tilde> <questiondown> : "~¿"
#+end_src
* Netrc
It is very important that =~/.netrc= as =600= permissions.
#+begin_src conf :comments none :mkdirp yes :noweb yes :tangle ~/.netrc :tangle-mode (identity #o600)
machine traefik.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="traefik.tdehaeze.xyz/tdehaeze")>>
machine portainer.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="portainer.tdehaeze.xyz/tdehaeze")>>
machine cloud.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="cloud.tdehaeze.xyz/tdehaeze")>>
machine syncthing.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="syncthing.tdehaeze.xyz/tdehaeze")>>
machine torrent.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="torrent.tdehaeze.xyz/tdehaeze")>>
machine dl.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="dl.tdehaeze.xyz/tdehaeze")>>
machine deemix.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="deemix.tdehaeze.xyz/tdehaeze")>>
machine octoprint.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="octoprint.tdehaeze.xyz/tdehaeze")>>
machine adguardhome.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="adguardhome.tdehaeze.xyz/tdehaeze")>>
machine qobuz.tdehaeze.xyz
login tdehaeze
password <<get-password(passname="qobuz.tdehaeze.xyz/tdehaeze")>>
#+end_src
* =bukurun= Rofi Frontend for Buku (Bookmark Manager)
:PROPERTIES:
:header-args: :tangle ~/.config/buku_run/config
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC conf
_rofi () {
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
}
#+END_SRC
Display settings
#+BEGIN_SRC conf
display_type=1
max_str_width=80
#+END_SRC
Keybindings
#+BEGIN_SRC conf
switch_view="Alt+Tab"
new_bookmark="Alt+n"
actions="Alt+a"
edit="Alt+e"
delete="Alt+d"
#+END_SRC
Colors
#+BEGIN_SRC conf
help_color="#2d7ed8"
#+END_SRC

5159
data.org Normal file

File diff suppressed because it is too large Load Diff

494
docs/android.html Normal file
View File

@ -0,0 +1,494 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-05-02 dim. 11:26 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Android Phone</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Android Phone</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org9b15080">Install</a>
<ul>
<li><a href="#org31c1d8d">Unlock the bootloader</a></li>
<li><a href="#org39426ca">Flash ROM</a></li>
<li><a href="#org966f711">Root</a></li>
<li><a href="#org6e288cc">Further work</a></li>
</ul>
</li>
<li><a href="#org41948b1">Favorite Apps</a></li>
<li><a href="#orgb68380c">Tutorials</a>
<ul>
<li><a href="#org895b996">Connect to the phone by SSH</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org9b15080" class="outline-2">
<h2 id="org9b15080">Install</h2>
<div class="outline-text-2" id="text-org9b15080">
</div>
<div id="outline-container-org31c1d8d" class="outline-3">
<h3 id="org31c1d8d">Unlock the bootloader</h3>
<div class="outline-text-3" id="text-org31c1d8d">
<p>
Tutorial: <a href="https://www.youtube.com/watch?v=_MKtOMiUWdM">https://www.youtube.com/watch?v=_MKtOMiUWdM</a>
</p>
</div>
</div>
<div id="outline-container-org39426ca" class="outline-3">
<h3 id="org39426ca">Flash ROM</h3>
<div class="outline-text-3" id="text-org39426ca">
<p>
Tutorial: <a href="https://www.youtube.com/watch?v=3pxOeiIBrHI">https://www.youtube.com/watch?v=3pxOeiIBrHI</a>
</p>
</div>
</div>
<div id="outline-container-org966f711" class="outline-3">
<h3 id="org966f711">Root</h3>
<div class="outline-text-3" id="text-org966f711">
<ul class="org-ul">
<li>Root: <a href="https://github.com/topjohnwu/Magisk">https://github.com/topjohnwu/Magisk</a> <a href="https://forum.xda-developers.com/t/guide-magisk-for-oxygenos-11.4160833/">https://forum.xda-developers.com/t/guide-magisk-for-oxygenos-11.4160833/</a></li>
<li><a href="https://www.youtube.com/watch?v=hTFK1OZ4DaU">https://www.youtube.com/watch?v=hTFK1OZ4DaU</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6e288cc" class="outline-3">
<h3 id="org6e288cc">Further work</h3>
<div class="outline-text-3" id="text-org6e288cc">
<ul class="org-ul">
<li>ROM: <a href="https://lineage.microg.org/">https://lineage.microg.org/</a> (<a href="https://download.lineage.microg.org/instantnoodle/">https://download.lineage.microg.org/instantnoodle/</a>)</li>
<li>Setup SSH: <a href="https://binfalse.de/2018/09/06/native-ssh-server-on-linageos/">https://binfalse.de/2018/09/06/native-ssh-server-on-linageos/</a></li>
</ul>
</div>
</div>
</div>
<div id="outline-container-org41948b1" class="outline-2">
<h2 id="org41948b1">Favorite Apps</h2>
<div class="outline-text-2" id="text-org41948b1">
<table id="orge490c90" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 1:</span> Open Source Apps</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Name</th>
<th scope="col" class="org-left">&#xa0;</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><a href="https://f-droid.org/fr/packages/com.artifex.mupdf.viewer.app/">F-droid</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">Open Source application store</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/moezbhatti/qksms">QKSMS</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.moez.QKSMS/">https://f-droid.org/en/packages/com.moez.QKSMS/</a></td>
<td class="org-left">SMS</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/mozilla-mobile/fenix">Fenix</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/">https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/</a></td>
<td class="org-left">Firefox for android</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/syncthing/syncthing-android">Syncthing</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.nutomic.syncthingandroid/">https://f-droid.org/en/packages/com.nutomic.syncthingandroid/</a></td>
<td class="org-left">Continuous File Synchronization</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/termux/termux-app">Termux</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.termux/">https://f-droid.org/en/packages/com.termux/</a></td>
<td class="org-left">Terminal</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/k0shk0sh/FastHub">FastHub</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.fastaccess.github.libre/">https://f-droid.org/en/packages/com.fastaccess.github.libre/</a></td>
<td class="org-left">Github client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/dkanada/gelli">Gelli</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.dkanada.gramophone/">https://f-droid.org/en/packages/com.dkanada.gramophone/</a></td>
<td class="org-left">Music app for Jellyfin</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/k9mail/k-9">K-9 Mail</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.fsck.k9/">https://f-droid.org/en/packages/com.fsck.k9/</a></td>
<td class="org-left">Mail client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/SimpleMobileTools/Simple-Dialer">Simple Dialer</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.simplemobiletools.dialer/">https://f-droid.org/en/packages/com.simplemobiletools.dialer/</a></td>
<td class="org-left">Minimalist dialing app</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/SimpleMobileTools/Simple-Gallery">Simple Gallery</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.simplemobiletools.gallery.pro/">https://f-droid.org/en/packages/com.simplemobiletools.gallery.pro/</a></td>
<td class="org-left">Minimalist gallery app</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/SimpleMobileTools/Simple-Contacts">Simple Contacts</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.simplemobiletools.contacts.pro/">https://f-droid.org/en/packages/com.simplemobiletools.contacts.pro/</a></td>
<td class="org-left">Minimalist contact app</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/SimpleMobileTools/Simple-Calendar">Simple Calendar</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.simplemobiletools.calendar.pro/">https://f-droid.org/en/packages/com.simplemobiletools.calendar.pro/</a></td>
<td class="org-left">Minimalist calendar app</td>
</tr>
<tr>
<td class="org-left"><a href="https://f-droid.org/fr/packages/com.artifex.mupdf.viewer.app/">muPDF</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.artifex.mupdf.viewer.app/">https://f-droid.org/en/packages/com.artifex.mupdf.viewer.app/</a></td>
<td class="org-left">PDF minimalist viewer</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/mpv-android/mpv-android">MPV</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/is.xyz.mpv/">https://f-droid.org/en/packages/is.xyz.mpv/</a></td>
<td class="org-left">Video player</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/orgzly/orgzly-android">Orgzly</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.orgzly/">https://f-droid.org/en/packages/com.orgzly/</a></td>
<td class="org-left">OrgMode application</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/vector-im/element-android">Element</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/im.vector.app/">https://f-droid.org/en/packages/im.vector.app/</a></td>
<td class="org-left">Matrix client</td>
</tr>
<tr>
<td class="org-left"><a href="https://www.davx5.com/">DAVx5</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/at.bitfire.davdroid/">https://f-droid.org/en/packages/at.bitfire.davdroid/</a></td>
<td class="org-left">Used to synchronize contacts and calendars with calDAC/carddav</td>
</tr>
<tr>
<td class="org-left"><a href="https://gitlab.com/AuroraOSS/AuroraStore">Aurora Store</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.aurora.store/">https://f-droid.org/en/packages/com.aurora.store/</a></td>
<td class="org-left">Play Store alternative</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/martykan/forecastie">Forcastie</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/cz.martykan.forecastie/">https://f-droid.org/en/packages/cz.martykan.forecastie/</a></td>
<td class="org-left">Weather application</td>
</tr>
<tr>
<td class="org-left"><a href="https://gitnex.com/">GitNex</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.mian.gitnex/">https://f-droid.org/en/packages/org.mian.gitnex/</a></td>
<td class="org-left">Gitea client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/home-assistant/android">Home Assistant</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/io.homeassistant.companion.android.minimal/">https://f-droid.org/en/packages/io.homeassistant.companion.android.minimal/</a></td>
<td class="org-left">Home Assistant client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/jellyfin/jellyfin-android">Jellyfin</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.jellyfin.mobile/">https://f-droid.org/en/packages/org.jellyfin.mobile/</a></td>
<td class="org-left">Jellyfin client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/KDE/kdeconnect-kde">KDE Connect</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.kde.kdeconnect_tp/">https://f-droid.org/en/packages/org.kde.kdeconnect_tp/</a></td>
<td class="org-left">Connect to linux desktop</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/TeamNewPipe/NewPipe">NewPipe</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.schabi.newpipe/">https://f-droid.org/en/packages/org.schabi.newpipe/</a></td>
<td class="org-left">Frontend for Youtube</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/osmandapp/OsmAnd">OsmAnd~</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/net.osmand.plus/">https://f-droid.org/en/packages/net.osmand.plus/</a></td>
<td class="org-left">Open Street Map application</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/android-password-store/Android-Password-Store">Password Store</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/dev.msfjarvis.aps/">https://f-droid.org/en/packages/dev.msfjarvis.aps/</a></td>
<td class="org-left">Password manager</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/y20k/transistor">Transistor</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.y20k.transistor/">https://f-droid.org/en/packages/org.y20k.transistor/</a></td>
<td class="org-left">Radio application</td>
</tr>
<tr>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.google.zxing.client.android/">Barcode Scanner</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.google.zxing.client.android/">https://f-droid.org/en/packages/com.google.zxing.client.android/</a></td>
<td class="org-left">Barcode Scanner</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/Bubu/android-calculatorpp">Calculator++</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.solovyev.android.calculator/">https://f-droid.org/en/packages/org.solovyev.android.calculator/</a></td>
<td class="org-left">Nice calculator app</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/zhanghai/MaterialFiles">MaterialFiles</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/me.zhanghai.android.files/">https://f-droid.org/en/packages/me.zhanghai.android.files/</a></td>
<td class="org-left">File Manager</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/brianhorn/Tunerly">Tunerly</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.tunerly/">https://f-droid.org/en/packages/com.tunerly/</a></td>
<td class="org-left">Pitch tuning app</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/Docile-Alligator/Infinity-For-Reddit">Infinity</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/ml.docilealligator.infinityforreddit/">https://f-droid.org/en/packages/ml.docilealligator.infinityforreddit/</a></td>
<td class="org-left">Reddit client</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/dslul/openboard">OpenBoard</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.dslul.openboard.inputmethod.latin/">https://f-droid.org/en/packages/org.dslul.openboard.inputmethod.latin/</a></td>
<td class="org-left">Keyboard</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/SimpleMobileTools/Simple-CLock">Simple Clock</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.simplemobiletools.clock/">https://f-droid.org/en/packages/com.simplemobiletools.clock/</a></td>
<td class="org-left">Simple clock</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/WireGuard/wireguard-android">Wireguard</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/com.wireguard.android/">https://f-droid.org/en/packages/com.wireguard.android/</a></td>
<td class="org-left">Modern VPN</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/iSoron/uhabits">uhabits</a></td>
<td class="org-left"><a href="https://f-droid.org/packages/org.isoron.uhabits/">https://f-droid.org/packages/org.isoron.uhabits/</a></td>
<td class="org-left">Habit Tracker</td>
</tr>
<tr>
<td class="org-left"><a href="https://f-droid.org/packages/org.sufficientlysecure.keychain/">OpenKeychain</a></td>
<td class="org-left"><a href="https://f-droid.org/packages/org.sufficientlysecure.keychain/">https://f-droid.org/packages/org.sufficientlysecure.keychain/</a></td>
<td class="org-left">PGP Manager</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/billthefarmer/editor">Editor</a></td>
<td class="org-left"><a href="https://f-droid.org/packages/org.billthefarmer.editor/">https://f-droid.org/packages/org.billthefarmer.editor/</a></td>
<td class="org-left">Text Editor</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/erickok/transdroid">Transdroid</a></td>
<td class="org-left"><a href="https://f-droid.org/en/packages/org.transdroid.full/">https://f-droid.org/en/packages/org.transdroid.full/</a></td>
<td class="org-left">Transmission and Aria2 clients</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/AntennaPod/AntennaPod">AntennaPod</a></td>
<td class="org-left"><a href="https://f-droid.org/packages/de.danoeh.antennapod/">https://f-droid.org/packages/de.danoeh.antennapod/</a></td>
<td class="org-left">Podcast manager</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/bromite/bromite">Bromite</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">Chromium fork with ad blocking and privacy enhancements</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/Jays2Kings/tachiyomiJ2K">TachiyomiJ2K</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">Manga reader</td>
</tr>
<tr>
<td class="org-left"><a href="https://github.com/DocMarty84/miniflutt">Miniflutt</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">Miniflux client</td>
</tr>
</tbody>
</table>
<table id="org0b1cf8b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 2:</span> Close Source Apps</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Name</th>
<th scope="col" class="org-left">Description</th>
<th scope="col" class="org-left">Open Source Alternative</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><a href="https://www.waze.com/">Waze</a></td>
<td class="org-left">GPS navigation app</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left"><a href="https://printoid.net/">Printoid</a></td>
<td class="org-left">Octoprint client</td>
<td class="org-left">Web client?</td>
</tr>
<tr>
<td class="org-left"><a href="https://vancedapp.com/">Youtube Vanced</a></td>
<td class="org-left">Youtube without ads</td>
<td class="org-left">NewPipe</td>
</tr>
<tr>
<td class="org-left"><a href="https://play.google.com/store/apps/details?id=com.nordvpn.android&amp;hl=en&amp;gl=US">NordVPN</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">Spotify</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">Banking</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">Trainline</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">Tricount</td>
<td class="org-left">&#xa0;</td>
<td class="org-left"><a href="https://github.com/cowbell/splittypie">Splittypie</a></td>
</tr>
</tbody>
</table>
<table id="org2549731" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 3:</span> Apps requiring Root</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Name</th>
<th scope="col" class="org-left">Description</th>
<th scope="col" class="org-left">Open Source Alternative</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><a href="https://github.com/ukanth/afwall">Afwall</a></td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">Titanium Backup PRO</td>
<td class="org-left">&#xa0;</td>
<td class="org-left"><a href="https://github.com/machiav3lli/oandbackupx">OAndBackupX</a></td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-orgb68380c" class="outline-2">
<h2 id="orgb68380c">Tutorials</h2>
<div class="outline-text-2" id="text-orgb68380c">
</div>
<div id="outline-container-org895b996" class="outline-3">
<h3 id="org895b996">Connect to the phone by SSH</h3>
<div class="outline-text-3" id="text-org895b996">
<p>
<a href="https://wiki.termux.com/wiki/Bypassing_NAT">https://wiki.termux.com/wiki/Bypassing_NAT</a>
</p>
<p>
An other option would be to use Wireguard and shen to <code>ssh</code>.
</p>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-05-02 dim. 11:26</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-22 dim. 23:04 -->
<!-- 2021-02-10 mer. 17:57 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Desktop file for the applications</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,23 +22,25 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org3781e6a">Mime Applications</a></li>
<li><a href="#org40d2ff7">Neomutt</a></li>
<li><a href="#orgfba702e">Weechat</a></li>
<li><a href="#org0917adc">Matlab</a></li>
<li><a href="#org67724e9">Zathura</a></li>
<li><a href="#org721c080">Neovim</a></li>
<li><a href="#org11a99e9">Images</a></li>
<li><a href="#org6d53535">Org-Protocol</a></li>
<li><a href="#org77502a5">Ranger</a></li>
<li><a href="#orgbb53a17">Emacs Client</a></li>
<li><a href="#org71a2460">Mime Applications</a></li>
<li><a href="#org3da423b">Neomutt</a></li>
<li><a href="#org5e2e6fc">Weechat</a></li>
<li><a href="#org034bd30">Matlab</a></li>
<li><a href="#org6f623b4">Neovim</a></li>
<li><a href="#orgd5b6306">Images</a></li>
<li><a href="#orgb420f7f">Org-Protocol</a></li>
<li><a href="#org777141a">Ranger</a></li>
<li><a href="#org0cb9832">Emacs Client</a></li>
<li><a href="#org42f59ff">Torrent with Transmission</a></li>
<li><a href="#orgfe825a7">Qutebrowser</a></li>
<li><a href="#org9b19704">Zathura</a></li>
</ul>
</div>
</div>
<div id="outline-container-org3781e6a" class="outline-2">
<h2 id="org3781e6a">Mime Applications</h2>
<div class="outline-text-2" id="text-org3781e6a">
<div id="outline-container-org71a2460" class="outline-2">
<h2 id="org71a2460">Mime Applications</h2>
<div class="outline-text-2" id="text-org71a2460">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Default Applications</span>]
<span class="org-variable-name">text/plain</span>=nvim.desktop
@ -308,9 +74,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org40d2ff7" class="outline-2">
<h2 id="org40d2ff7">Neomutt</h2>
<div class="outline-text-2" id="text-org40d2ff7">
<div id="outline-container-org3da423b" class="outline-2">
<h2 id="org3da423b">Neomutt</h2>
<div class="outline-text-2" id="text-org3da423b">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=Neomutt
@ -326,9 +92,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-orgfba702e" class="outline-2">
<h2 id="orgfba702e">Weechat</h2>
<div class="outline-text-2" id="text-orgfba702e">
<div id="outline-container-org5e2e6fc" class="outline-2">
<h2 id="org5e2e6fc">Weechat</h2>
<div class="outline-text-2" id="text-org5e2e6fc">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Encoding</span>=UTF-8
@ -347,16 +113,16 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org0917adc" class="outline-2">
<h2 id="org0917adc">Matlab</h2>
<div class="outline-text-2" id="text-org0917adc">
<div id="outline-container-org034bd30" class="outline-2">
<h2 id="org034bd30">Matlab</h2>
<div class="outline-text-2" id="text-org034bd30">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Version</span>=R2019b
<span class="org-variable-name">Version</span>=R2020b
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">MimeType</span>=text/x-matlab
<span class="org-variable-name">Exec</span>=/usr/local/MATLAB/R2019b/bin/matlab -desktop
<span class="org-variable-name">Exec</span>=/usr/local/MATLAB/R2020b/bin/matlab -desktop
<span class="org-variable-name">Name</span>=MATLAB
<span class="org-variable-name">Icon</span>=matlab
<span class="org-variable-name">Categories</span>=Development;Math;Science
@ -367,28 +133,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org67724e9" class="outline-2">
<h2 id="org67724e9">Zathura</h2>
<div class="outline-text-2" id="text-org67724e9">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Version</span>=<span class="org-highlight-numbers-number">1.0</span>
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Zathura
<span class="org-variable-name">Comment</span>=A minimalistic document viewer
<span class="org-variable-name">Exec</span>=zathura %U
<span class="org-variable-name">Icon</span>=/usr/share/icons/Papirus/64x64/apps/zathura.svg
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Categories</span>=Office;Viewer;
<span class="org-variable-name">Keywords</span>=PDF;PS;PostScript;DjVU;document;presentation;viewer;
</pre>
</div>
</div>
</div>
<div id="outline-container-org721c080" class="outline-2">
<h2 id="org721c080">Neovim</h2>
<div class="outline-text-2" id="text-org721c080">
<div id="outline-container-org6f623b4" class="outline-2">
<h2 id="org6f623b4">Neovim</h2>
<div class="outline-text-2" id="text-org6f623b4">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=Neovim
@ -407,9 +154,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org11a99e9" class="outline-2">
<h2 id="org11a99e9">Images</h2>
<div class="outline-text-2" id="text-org11a99e9">
<div id="outline-container-orgd5b6306" class="outline-2">
<h2 id="orgd5b6306">Images</h2>
<div class="outline-text-2" id="text-orgd5b6306">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
@ -420,24 +167,25 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org6d53535" class="outline-2">
<h2 id="org6d53535">Org-Protocol</h2>
<div class="outline-text-2" id="text-org6d53535">
<div id="outline-container-orgb420f7f" class="outline-2">
<h2 id="orgb420f7f">Org-Protocol</h2>
<div class="outline-text-2" id="text-orgb420f7f">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=org-protocol
<span class="org-variable-name">Exec</span>=emacsclient %u
<span class="org-variable-name">Icon</span>=emacs-icon
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Categories</span>=System;
<span class="org-variable-name">MimeType</span>=x-scheme-handler/org-protocol;
</pre>
</div>
</div>
</div>
<div id="outline-container-org77502a5" class="outline-2">
<h2 id="org77502a5">Ranger</h2>
<div class="outline-text-2" id="text-org77502a5">
<div id="outline-container-org777141a" class="outline-2">
<h2 id="org777141a">Ranger</h2>
<div class="outline-text-2" id="text-org777141a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
@ -452,18 +200,75 @@ for the JavaScript code in this tag.
</div>
</div>
</div>
<div id="outline-container-orgbb53a17" class="outline-2">
<h2 id="orgbb53a17">Emacs Client</h2>
<div class="outline-text-2" id="text-orgbb53a17">
<div id="outline-container-org0cb9832" class="outline-2">
<h2 id="org0cb9832">Emacs Client</h2>
<div class="outline-text-2" id="text-org0cb9832">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=Emacs Client
<span class="org-variable-name">Exec</span>=emacsclient -c %u
<span class="org-variable-name">Icon</span>=emacs-icon
<span class="org-variable-name">GenericName</span>=Text Editor
<span class="org-variable-name">Comment</span>=Edit text
<span class="org-variable-name">MimeType</span>=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
<span class="org-variable-name">Exec</span>=emacsclient -c %f
<span class="org-variable-name">Icon</span>=emacs
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">MimeType</span>=x-scheme-handler/org-protocol;
<span class="org-variable-name">NoDisplay</span>=true
<span class="org-variable-name">Categories</span>=Utility;TextEditor;
</pre>
</div>
</div>
</div>
<div id="outline-container-org42f59ff" class="outline-2">
<h2 id="org42f59ff">Torrent with Transmission</h2>
<div class="outline-text-2" id="text-org42f59ff">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Torrent
<span class="org-variable-name">Exec</span>=tremc %U
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfe825a7" class="outline-2">
<h2 id="orgfe825a7">Qutebrowser</h2>
<div class="outline-text-2" id="text-orgfe825a7">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Name</span>=qutebrowser
<span class="org-variable-name">StartupWMClass</span>=qutebrowser
<span class="org-variable-name">GenericName</span>=Web Browser
<span class="org-variable-name">Comment</span>=A keyboard-driven, vim-like browser based on PyQt5
<span class="org-variable-name">Icon</span>=qutebrowser
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Categories</span>=Network;WebBrowser;
<span class="org-variable-name">Exec</span>=qutebrowser %u
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">StartupNotify</span>=true
<span class="org-variable-name">MimeType</span>=text/html;text/xml;application/xhtml+xml;application/xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/qute;
<span class="org-variable-name">Keywords</span>=Browser
<span class="org-variable-name">Actions</span>=new-window;preferences;
</pre>
</div>
</div>
</div>
<div id="outline-container-org9b19704" class="outline-2">
<h2 id="org9b19704">Zathura</h2>
<div class="outline-text-2" id="text-org9b19704">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Desktop Entry</span>]
<span class="org-variable-name">Version</span>=<span class="org-highlight-numbers-number">1.0</span>
<span class="org-variable-name">Type</span>=Application
<span class="org-variable-name">Name</span>=Zathura
<span class="org-variable-name">Comment</span>=A minimalistic PDF viewer
<span class="org-variable-name">Comment</span>[<span class="org-constant">de</span>]=Ein minimalistischer PDF-Betrachter
<span class="org-variable-name">Exec</span>=zathura %f
<span class="org-variable-name">Terminal</span>=false
<span class="org-variable-name">Categories</span>=Office;Viewer;
<span class="org-variable-name">MimeType</span>=application/pdf;
</pre>
</div>
</div>
@ -471,7 +276,7 @@ for the JavaScript code in this tag.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-22 dim. 23:04</p>
<p class="date">Created: 2021-02-10 mer. 17:57</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

277
docs/binaries-private.html Normal file
View File

@ -0,0 +1,277 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-05-02 dim. 11:26 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>My own specific binaries</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">My own specific binaries</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</a></li>
<li><a href="#print-rnice"><code>print-rnice</code> - Print on Rnice</a></li>
<li><a href="#tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</a></li>
<li><a href="#nas"><code>nas</code> - Interact with the NAS</a></li>
<li><a href="#torrent-add"><code>torrent-add</code> - Download Torrent</a></li>
<li><a href="#dl-add"><code>dl-add</code> - Direct Download with Aria2</a></li>
<li><a href="#note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</a></li>
<li><a href="#share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></a></li>
<li><a href="#screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</a></li>
<li><a href="#color-picker"><code>color-picker</code> - Pick color and copy to clipboard</a></li>
<li><a href="#readbib"><code>readbib</code> - Open Bibliography File</a></li>
<li><a href="#readnotes"><code>readnotes</code> - Open Note</a></li>
</ul>
</div>
</div>
<div id="outline-container-remote-desktop" class="outline-2">
<h2 id="remote-desktop"><code>remote-desktop</code> - Remote Desktop Connect</h2>
<div class="outline-text-2" id="text-remote-desktop">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">computer</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'RNICE\nPCMEL1\nPCNASS1\nPCMEG01'</span> | dmenu -p <span class="org-string">'Computer:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
dunstify --replace=<span class="org-highlight-numbers-number">89891</span> <span class="org-string">'Rdesktop'</span> <span class="org-string">"Connection to </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{computer}</span></span><span class="org-string">..."</span>
<span class="org-keyword">case</span> $<span class="org-variable-name">computer</span><span class="org-keyword"> in</span>
PCMEL1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCMEL1.esrf.fr;
;;
PCMEG01)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCMEG01.esrf.fr;
;;
PCNASS1)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:PCNASS1.esrf.fr;
;;
RNICE)
xfreerdp /u:dehaeze /d:ESRF /clipboard /bpp:8 /bpp:16 /compression -themes -wallpaper /async-update /async-input -glyph-cache /audio-mode:1 /dynamic-resolution /auto-reconnect /p:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> ssl.esrf.fr/dehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> /v:rnice.esrf.fr;
;;
*)
<span class="org-type">echo</span> <span class="org-string">"Not existing"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify --replace=<span class="org-highlight-numbers-number">89891</span> --urgency=critical <span class="org-string">'Rdesktop'</span> <span class="org-string">"No config for </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">computer</span></span><span class="org-string">"</span>;
;;
<span class="org-keyword">esac</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-print-rnice" class="outline-2">
<h2 id="print-rnice"><code>print-rnice</code> - Print on Rnice</h2>
<div class="outline-text-2" id="text-print-rnice">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">nbpage</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'1\n2\n4'</span> | dmenu -p <span class="org-string">'Number of pages per sheet'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">sides</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge'</span> | dmenu -p <span class="org-string">'Two Sided:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">media</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">'A4\nA3'</span> | dmenu -p <span class="org-string">'Size:'</span> -l <span class="org-highlight-numbers-number">20</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">First copy the file to Rnice</span>
<span class="org-keyword">if</span> sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> ssl.esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> scp $<span class="org-highlight-numbers-number">1</span> dehaeze@rnice:~/Downloads/; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Then print on Rnice</span>
sshpass -p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pass</span><span class="org-string"><span class="org-sh-quoted-exec"> ssl.esrf.fr/dehaeze | sed -n 1p)</span></span><span class="org-string">"</span> ssh dehaeze@rnice <span class="org-string">"lpr -o media=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">media</span></span><span class="org-string"> -o sides=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">sides</span></span><span class="org-string"> -o number-up=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">nbpage</span></span><span class="org-string"> -P ctb110c1u ~/Downloads/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">Finally, delete the file</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"Command Failed"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-tmp14" class="outline-2">
<h2 id="tmp14"><code>tmp14</code> - Mount/Umount tmp_14_days folder</h2>
<div class="outline-text-2" id="text-tmp14">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> sshfs -o allow_other,default_permissions -p <span class="org-highlight-numbers-number">5022</span> dehaeze@firewall.esrf.fr:/tmp_14_days/ ~/mnt/ESRF; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Successfully mounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> umount /home/thomas/mnt/ESRF/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Successfully unmounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'ESRF TMP &#62003;'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-nas" class="outline-2">
<h2 id="nas"><code>nas</code> - Interact with the NAS</h2>
<div class="outline-text-2" id="text-nas">
<p>
As an alternative, <code>sshfs</code> can be used:
</p>
<div class="org-src-container">
<pre class="src src-bash">sshfs -o allow_other,default_permissions nas:/Data ~/mnt/NAS
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> mount /home/thomas/mnt/NAS/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Successfully mounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> umount /home/thomas/mnt/NAS/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Successfully unmounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> --urgency=critical <span class="org-string">'NAS &#62003;'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-torrent-add" class="outline-2">
<h2 id="torrent-add"><code>torrent-add</code> - Download Torrent</h2>
<div class="outline-text-2" id="text-torrent-add">
<div class="org-src-container">
<pre class="src src-bash">transmission-remote &lt;&lt;get-password<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-variable-name">passname</span>=<span class="org-string">"ip/grenoble"</span><span class="org-rainbow-delimiters-depth-1">)</span>&gt;&gt;:9091 --auth tdehaeze:$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> nas/transmission | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> -a $<span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Successfully added'</span> || <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">'Torrent'</span> <span class="org-string">'Error'</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-dl-add" class="outline-2">
<h2 id="dl-add"><code>dl-add</code> - Direct Download with Aria2</h2>
<div class="outline-text-2" id="text-dl-add">
<div class="org-src-container">
<pre class="src src-bash">aria2p --port <span class="org-highlight-numbers-number">6800</span> --host http://dl.tdehaeze.xyz --secret $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">pass</span> dl.tdehaeze.xyz/tdehaeze | sed -n 1p<span class="org-rainbow-delimiters-depth-1">)</span> add $<span class="org-highlight-numbers-number">1</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-note-extract-fig" class="outline-2">
<h2 id="note-extract-fig"><code>note-extract-fig</code> - Extract Figure from note file</h2>
<div class="outline-text-2" id="text-note-extract-fig">
<p>
Script used to convert a figure drawn on my Boox note2 to a png file that can then be imported into a document.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">First check that the first argument is a pdf file</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -f $<span class="org-highlight-numbers-number">1</span> &amp;&amp; $<span class="org-highlight-numbers-number">1</span> == *.pdf <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">pngfile</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> $<span class="org-highlight-numbers-number">1</span> | cut -f <span class="org-highlight-numbers-number">1</span> -d <span class="org-string">'.'</span> | sed <span class="org-string">'s/$/.png/'</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Convert to png and crop png</span>
pdf2png $<span class="org-highlight-numbers-number">1</span> &amp;&amp; convert -trim <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pngfile</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pngfile</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-share" class="outline-2">
<h2 id="share"><code>share</code> - Share file with self-hosted <code>transfer.sh</code></h2>
<div class="outline-text-2" id="text-share">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">1</span> <span class="org-string">"</span><span class="org-type"><span class="org-string">curl</span></span><span class="org-string"> --progress-bar -F\"file=@</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">\" https://file.tdehaeze.xyz/ | xsel -ib &amp;&amp; dunstify 'Upload' 'Successful' || dunstify --urgency=critical 'Upload' 'Failed';"</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span>
<span class="org-type">curl</span> --progress-bar -F<span class="org-string">"file=@</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> https://file.tdehaeze.xyz/ | xsel -ib &amp;&amp; <span class="org-sh-escaped-newline">\</span>
dunstify <span class="org-string">'Upload'</span> <span class="org-string">'Successful'</span> || <span class="org-sh-escaped-newline">\</span>
dunstify --urgency=critical <span class="org-string">'Upload'</span> <span class="org-string">'Failed'</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-screen-select" class="outline-2">
<h2 id="screen-select"><code>screen-select</code> - Xrandr pre-defined scripts</h2>
<div class="outline-text-2" id="text-screen-select">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Work\nXPS\nHome"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"Work"</span>)
xrandr --output eDP1 --off --output DP1 --off --output DP1-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1-2 --off --output DP2 --off --output VIRTUAL1 --off
;;
<span class="org-string">"XPS"</span>)
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
;;
<span class="org-string">"Home"</span>)
xrandr --output eDP1 --off --output DP2-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP1 --off --output VIRTUAL1 --off
;;
*)
<span class="org-type">echo</span> <span class="org-string">"== ! missing or invalid argument ! =="</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">esac</span>
setbg &amp;&amp; <span class="org-string">\ </span> <span class="org-comment-delimiter"># </span><span class="org-comment">Fix background if screen size/arangement has changed.</span>
polybar-msg cmd restart <span class="org-comment-delimiter"># </span><span class="org-comment">restart polybar</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-color-picker" class="outline-2">
<h2 id="color-picker"><code>color-picker</code> - Pick color and copy to clipboard</h2>
<div class="outline-text-2" id="text-color-picker">
<div class="org-src-container">
<pre class="src src-bash">xcolor | tr -d <span class="org-string">'\n'</span> | xsel -b
</pre>
</div>
</div>
</div>
<div id="outline-container-readbib" class="outline-2">
<h2 id="readbib"><code>readbib</code> - Open Bibliography File</h2>
<div class="outline-text-2" id="text-readbib">
<p>
List all <code>pdf</code> files and open selected one with zathura.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/pdfs/ &amp;&amp; <span class="org-type">ls</span> | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-readnotes" class="outline-2">
<h2 id="readnotes"><code>readnotes</code> - Open Note</h2>
<div class="outline-text-2" id="text-readnotes">
<p>
List all <code>pdf</code> files and open selected one with zathura.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain/pdfs/ &amp;&amp; <span class="org-type">ls</span> | rofi -dmenu -lines <span class="org-highlight-numbers-number">20</span> | xargs -I <span class="org-rainbow-delimiters-depth-1">{}</span> zathura <span class="org-rainbow-delimiters-depth-1">{}</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-05-02 dim. 11:26</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,251 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-01 ven. 14:56 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Bukurun (Bookmark Manager)</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="org-div-home-and-up">
@ -254,7 +22,6 @@ for the JavaScript code in this tag.
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Bukurun (Bookmark Manager)</h1>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">_rofi ()</span> {
rofi -dmenu -i -no-levenshtein-sort -width <span class="org-highlight-numbers-number">1000</span> <span class="org-string">"$@"</span>
@ -293,7 +60,7 @@ Colors
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-01 ven. 14:56</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>BSPWM</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,18 +22,18 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org38f8bff">List Desktops</a></li>
<li><a href="#org47837f1">Basic Config</a></li>
<li><a href="#orgfb29e3b">Colors</a></li>
<li><a href="#org04a808f">Rules</a></li>
<li><a href="#orgd001a1e">Run Polybar and SXHKD</a></li>
<li><a href="#org7da674a">List Desktops</a></li>
<li><a href="#org0c8adac">Basic Config</a></li>
<li><a href="#org90ada71">Colors</a></li>
<li><a href="#org7c7bf9b">Rules</a></li>
<li><a href="#org0d9bead">Run Polybar and SXHKD</a></li>
</ul>
</div>
</div>
<div id="outline-container-org38f8bff" class="outline-2">
<h2 id="org38f8bff">List Desktops</h2>
<div class="outline-text-2" id="text-org38f8bff">
<div id="outline-container-org7da674a" class="outline-2">
<h2 id="org7da674a">List Desktops</h2>
<div class="outline-text-2" id="text-org7da674a">
<div class="org-src-container">
<pre class="src src-bash">bspc monitor -d code web mail misc figs
</pre>
@ -277,9 +41,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org47837f1" class="outline-2">
<h2 id="org47837f1">Basic Config</h2>
<div class="outline-text-2" id="text-org47837f1">
<div id="outline-container-org0c8adac" class="outline-2">
<h2 id="org0c8adac">Basic Config</h2>
<div class="outline-text-2" id="text-org0c8adac">
<div class="org-src-container">
<pre class="src src-bash">bspc config border_width <span class="org-highlight-numbers-number">1</span>
bspc config window_gap <span class="org-highlight-numbers-number">8</span>
@ -295,9 +59,9 @@ bspc config focus_follows_pointer true
</div>
</div>
<div id="outline-container-orgfb29e3b" class="outline-2">
<h2 id="orgfb29e3b">Colors</h2>
<div class="outline-text-2" id="text-orgfb29e3b">
<div id="outline-container-org90ada71" class="outline-2">
<h2 id="org90ada71">Colors</h2>
<div class="outline-text-2" id="text-org90ada71">
<div class="org-src-container">
<pre class="src src-bash">bspc config normal_border_color <span class="org-string">\#</span>32302f
bspc config focused_border_color <span class="org-string">\#</span>bdae93
@ -306,9 +70,9 @@ bspc config focused_border_color <span class="org-string">\#</span>bdae93
</div>
</div>
<div id="outline-container-org04a808f" class="outline-2">
<h2 id="org04a808f">Rules</h2>
<div class="outline-text-2" id="text-org04a808f">
<div id="outline-container-org7c7bf9b" class="outline-2">
<h2 id="org7c7bf9b">Rules</h2>
<div class="outline-text-2" id="text-org7c7bf9b">
<p>
Use <code>xprop</code> to obtain information about the window.
</p>
@ -329,11 +93,11 @@ bspc rule --add Blueman-manager <span class="org-variable-name">state</span>=flo
</div>
</div>
<div id="outline-container-orgd001a1e" class="outline-2">
<h2 id="orgd001a1e">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgd001a1e">
<div id="outline-container-org0d9bead" class="outline-2">
<h2 id="org0d9bead">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-org0d9bead">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">HOME</span>/.config/polybar/scripts/launch.sh
<pre class="src src-bash">polybar top &gt;&gt;/tmp/polybar.log <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.bspwm &amp;
</pre>
</div>
@ -342,7 +106,7 @@ sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

200
docs/calendar-contact.html Normal file
View File

@ -0,0 +1,200 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-05-02 dim. 11:26 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Calendar and Contact Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Calendar and Contact Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org66320d0"><code>vdirsyncer</code> - Synchronize calendars and contacts</a></li>
<li><a href="#org2ee9696"><code>khal</code> - CLI calendar application</a></li>
<li><a href="#orgfea864c"><code>khard</code> - CLI contact application</a></li>
</ul>
</div>
</div>
<div id="outline-container-org66320d0" class="outline-2">
<h2 id="org66320d0"><code>vdirsyncer</code> - Synchronize calendars and contacts</h2>
<div class="outline-text-2" id="text-org66320d0">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">general</span>]
<span class="org-variable-name">status_path</span> = <span class="org-string">"~/.config/vdirsyncer/status/"</span>
[<span class="org-type">pair radicale_calendar</span>]
<span class="org-variable-name">a</span> = <span class="org-string">"radicale_calendar_remote"</span>
<span class="org-variable-name">b</span> = <span class="org-string">"radicale_calendar_local"</span>
<span class="org-variable-name">collections</span> = [<span class="org-string">"76bfc802-3186-e3af-f688-7e165115b4f8"</span>, <span class="org-string">"f78f1649-b54e-7bfe-488d-6a7005a5aa2f"</span>]
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
[<span class="org-type">storage radicale_calendar_remote</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
<span class="org-variable-name">password</span> = <span class="org-string">"&lt;&lt;get-password(passname="</span>radicale.tdehaeze.xyz/tdehaeze<span class="org-string">")&gt;&gt;"</span>
[<span class="org-type">storage radicale_calendar_local</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
<span class="org-variable-name">path</span> = <span class="org-string">"~/.calendars/radicale/"</span>
<span class="org-variable-name">fileext</span> = <span class="org-string">".ics"</span>
[<span class="org-type">pair esrf_calendar</span>]
<span class="org-variable-name">a</span> = <span class="org-string">"esrf_calendar_remote"</span>
<span class="org-variable-name">b</span> = <span class="org-string">"esrf_calendar_local"</span>
<span class="org-variable-name">collections</span> = [<span class="org-string">"calendar"</span>]
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
[<span class="org-type">storage esrf_calendar_remote</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"caldav"</span>
<span class="org-variable-name">url</span> = <span class="org-string">"https://calendar.esrf.fr/egroupware/groupdav.php/calendar"</span>
<span class="org-variable-name">username</span> = <span class="org-string">"dehaeze"</span>
<span class="org-variable-name">password</span> = <span class="org-string">"&lt;&lt;get-password(passname="</span>ce-esrf.fr/dehaeze<span class="org-string">")&gt;&gt;"</span>
[<span class="org-type">storage esrf_calendar_local</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
<span class="org-variable-name">path</span> = <span class="org-string">"~/.calendars/esrf/"</span>
<span class="org-variable-name">fileext</span> = <span class="org-string">".ics"</span>
[<span class="org-type">pair radicale_contacts</span>]
<span class="org-variable-name">a</span> = <span class="org-string">"radicale_contacts_remote"</span>
<span class="org-variable-name">b</span> = <span class="org-string">"radicale_contacts_local"</span>
<span class="org-variable-name">collections</span> = [<span class="org-string">"98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7"</span>]
<span class="org-variable-name">conflict_resolution</span> = <span class="org-string">"a wins"</span>
[<span class="org-type">storage radicale_contacts_local</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"filesystem"</span>
<span class="org-variable-name">path</span> = <span class="org-string">"~/.contacts/"</span>
<span class="org-variable-name">fileext</span> = <span class="org-string">".vcf"</span>
[<span class="org-type">storage radicale_contacts_remote</span>]
<span class="org-variable-name">type</span> = <span class="org-string">"carddav"</span>
<span class="org-variable-name">url</span> = <span class="org-string">"https://radicale.tdehaeze.xyz/tdehaeze/"</span>
<span class="org-variable-name">username</span> = <span class="org-string">"tdehaeze"</span>
<span class="org-variable-name">password</span> = <span class="org-string">"&lt;&lt;get-password(passname="</span>radicale.tdehaeze.xyz/tdehaeze<span class="org-string">")&gt;&gt;"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2ee9696" class="outline-2">
<h2 id="org2ee9696"><code>khal</code> - CLI calendar application</h2>
<div class="outline-text-2" id="text-org2ee9696">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">calendars</span>]
[<span class="org-type">[Home]</span>]
<span class="org-variable-name">path</span> = ~/.calendars/radicale/76bfc802-3186-e3af-f688-7e165115b4f8/
<span class="org-variable-name">color</span> = <span class="org-string">"#B8BB26"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Green</span>
[<span class="org-type">[Thesis]</span>]
<span class="org-variable-name">path</span> = ~/.calendars/radicale/f78f1649-b54e-7bfe-488d-6a7005a5aa2f/
<span class="org-variable-name">color</span> = <span class="org-string">"#FB4934"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Red</span>
[<span class="org-type">[ESRF]</span>]
<span class="org-variable-name">path</span> = ~/.calendars/esrf/calendar/
<span class="org-variable-name">color</span> = <span class="org-string">"#83A598"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Blue</span>
[<span class="org-type">[Birthdays]</span>]
<span class="org-variable-name">path</span> = ~/.contacts/98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7/
<span class="org-variable-name">color</span> = <span class="org-string">"#D3869B"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">aqua</span>
<span class="org-variable-name">type</span> = birthdays
[<span class="org-type">highlight_days</span>]
<span class="org-variable-name">multiple</span> = <span class="org-string">"#FABD2F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Yellow</span>
[<span class="org-type">default</span>]
<span class="org-variable-name">highlight_event_days</span> = True
[<span class="org-type">locale</span>]
<span class="org-variable-name">local_timezone</span>= Europe/Berlin
<span class="org-variable-name">default_timezone</span>= Europe/Berlin
<span class="org-variable-name">timeformat</span>= %H:%M
<span class="org-variable-name">dateformat</span>= %d.%m.
<span class="org-variable-name">longdateformat</span>= %d.%m.%Y
<span class="org-variable-name">datetimeformat</span>= %d.%m. %H:%M
<span class="org-variable-name">longdatetimeformat</span>= %d.%m.%Y %H:%M
[<span class="org-type">keybindings</span>]
<span class="org-variable-name">delete</span> = d
<span class="org-variable-name">today</span> = .
<span class="org-variable-name">new</span> = c
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfea864c" class="outline-2">
<h2 id="orgfea864c"><code>khard</code> - CLI contact application</h2>
<div class="outline-text-2" id="text-orgfea864c">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">addressbooks</span>]
[<span class="org-type">[contacts]</span>]
<span class="org-variable-name">path</span> = ~/.contacts/98ee5e2c-afcf-70e0-c4a2-9fb9de2e97b7/
[<span class="org-type">general</span>]
<span class="org-variable-name">debug</span> = no
<span class="org-variable-name">default_action</span> = list
<span class="org-variable-name">editor</span> = vim
<span class="org-variable-name">merge_editor</span> = vimdiff
[<span class="org-type">contact table</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">display names by first or last name: first_name / last_name</span>
<span class="org-variable-name">display</span> = first_name
<span class="org-comment-delimiter"># </span><span class="org-comment">group by address book: yes / no</span>
<span class="org-variable-name">group_by_addressbook</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">reverse table ordering: yes / no</span>
<span class="org-variable-name">reverse</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">append nicknames to name column: yes / no</span>
<span class="org-variable-name">show_nicknames</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">show uid table column: yes / no</span>
<span class="org-variable-name">show_uids</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">sort by first or last name: first_name / last_name</span>
<span class="org-variable-name">sort</span> = last_name
<span class="org-comment-delimiter"># </span><span class="org-comment">localize dates: yes / no</span>
<span class="org-variable-name">localize_dates</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred phone number types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_phone_number_type</span> = pref, cell, home
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred email address types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_email_address_type</span> = pref, work, home
[<span class="org-type">vcard</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">extend contacts with your own private objects</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">these objects are stored with a leading "X-" before the object name in the vcard files</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">every object label may only contain letters, digits and the - character</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">example:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">private_objects = Jabber, Skype, Twitter</span>
<span class="org-variable-name">private_objects</span> = Jabber, Skype, Twitter
<span class="org-comment-delimiter"># </span><span class="org-comment">preferred vcard version: 3.0 / 4.0</span>
<span class="org-variable-name">preferred_version</span> = <span class="org-highlight-numbers-number">3.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Look into source vcf files to speed up search queries: yes / no</span>
<span class="org-variable-name">search_in_source_files</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">skip unparsable vcard files: yes / no</span>
<span class="org-variable-name">skip_unparsable</span> = no
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-05-02 dim. 11:26</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-01 dim. 22:49 -->
<!-- 2021-01-08 ven. 01:32 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calendar Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -236,15 +22,15 @@
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org6792e9b">Vdirsyncer</a></li>
<li><a href="#org481e0d6">Khal</a></li>
<li><a href="#org5cdf1b8"><code>vdirsyncer</code> - Synchronize calendars and contacts</a></li>
<li><a href="#org6838c88"><code>khal</code> - CLI calendar application</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6792e9b" class="outline-2">
<h2 id="org6792e9b">Vdirsyncer</h2>
<div class="outline-text-2" id="text-org6792e9b">
<div id="outline-container-org5cdf1b8" class="outline-2">
<h2 id="org5cdf1b8"><code>vdirsyncer</code> - Synchronize calendars and contacts</h2>
<div class="outline-text-2" id="text-org5cdf1b8">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">general</span>]
<span class="org-variable-name">status_path</span> = <span class="org-string">"~/.config/vdirsyncer/status/"</span>
@ -288,14 +74,9 @@
</div>
</div>
<div id="outline-container-org481e0d6" class="outline-2">
<h2 id="org481e0d6">Khal</h2>
<div class="outline-text-2" id="text-org481e0d6">
<p>
:header-arg s: :tangle ~/.config/khal/config
:header-args+: :comments both :mkdirp yes
</p>
<div id="outline-container-org6838c88" class="outline-2">
<h2 id="org6838c88"><code>khal</code> - CLI calendar application</h2>
<div class="outline-text-2" id="text-org6838c88">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">calendars</span>]
@ -313,6 +94,15 @@
[<span class="org-type">default</span>]
<span class="org-variable-name">highlight_event_days</span> = True
[<span class="org-type">locale</span>]
<span class="org-variable-name">local_timezone</span>= Europe/Berlin
<span class="org-variable-name">default_timezone</span>= Europe/Berlin
<span class="org-variable-name">timeformat</span>= %H:%M
<span class="org-variable-name">dateformat</span>= %d.%m.
<span class="org-variable-name">longdateformat</span>= %d.%m.%Y
<span class="org-variable-name">datetimeformat</span>= %d.%m. %H:%M
<span class="org-variable-name">longdatetimeformat</span>= %d.%m.%Y %H:%M
[<span class="org-type">keybindings</span>]
<span class="org-variable-name">delete</span> = d
<span class="org-variable-name">today</span> = .
@ -324,7 +114,7 @@
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-01 dim. 22:49</p>
<p class="date">Created: 2021-01-08 ven. 01:32</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-12 dim. 17:28 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Picom (Compositor)</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,139 +22,85 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org83d8ce7">Shadow</a></li>
<li><a href="#org79d6699">Opacity</a></li>
<li><a href="#org61a6af4">Fading</a></li>
<li><a href="#org7c10dee">Other</a></li>
<li><a href="#orgd16d016">Window Type Setting</a></li>
<li><a href="#org202e265">Shadow</a></li>
<li><a href="#org149e065">Opacity</a></li>
<li><a href="#org7f92cb7">Fading</a></li>
<li><a href="#orgc741707">Other</a></li>
<li><a href="#org76e2225">Window Type Setting</a></li>
</ul>
</div>
</div>
<div id="outline-container-org83d8ce7" class="outline-2">
<h2 id="org83d8ce7">Shadow</h2>
<div class="outline-text-2" id="text-org83d8ce7">
<div id="outline-container-org202e265" class="outline-2">
<h2 id="org202e265">Shadow</h2>
<div class="outline-text-2" id="text-org202e265">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">shadow</span> = true;
<span class="org-variable-name">shadow-radius</span> = <span class="org-highlight-numbers-number">12</span>;
<span class="org-variable-name">shadow-offset-x</span> = -12;
<span class="org-variable-name">shadow-offset-y</span> = -12;
<span class="org-variable-name">shadow-opacity</span> = <span class="org-highlight-numbers-number">0.95</span>;
<span class="org-variable-name">shadow-exclude</span> = [
<span class="org-string">"name = 'Notification'"</span>,
<span class="org-string">"window_type = 'dock'"</span>,
<span class="org-string">"window_type = 'dnd'"</span>,
<span class="org-string">"class_g = 'VirtualBox'"</span>,
<span class="org-string">"class_g ?= 'Notify-osd'"</span>,
<span class="org-string">"class_g = 'Tilda'"</span>,
<span class="org-string">"class_g = 'Firefox'"</span>,
<span class="org-string">"class_g = 'Opera'"</span>,
<span class="org-string">"class_g = 'CoverGloobus'"</span>,
<span class="org-string">"class_g = 'Cairo-clock'"</span>,
<span class="org-string">"class_g = 'dzen'"</span>,
<span class="org-string">"class_g = 'stalonetray'"</span>,
<span class="org-string">"_GTK_FRAME_EXTENTS@:c"</span>
<span class="org-string">"name = 'Notification'"</span>,
<span class="org-string">"window_type = 'dock'"</span>,
<span class="org-string">"window_type = 'dnd'"</span>,
<span class="org-string">"class_g = 'VirtualBox'"</span>,
<span class="org-string">"class_g ?= 'Notify-osd'"</span>,
<span class="org-string">"name = 'cpt_frame_window'"</span>, <span class="org-comment-delimiter"># </span><span class="org-comment">For zoom problem when sharing screen</span>
<span class="org-string">"class_g = 'stalonetray'"</span>
];
</pre>
</div>
</div>
</div>
<div id="outline-container-org79d6699" class="outline-2">
<h2 id="org79d6699">Opacity</h2>
<div class="outline-text-2" id="text-org79d6699">
<div id="outline-container-org149e065" class="outline-2">
<h2 id="org149e065">Opacity</h2>
<div class="outline-text-2" id="text-org149e065">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">menu-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">active-opacity = 0.92;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">frame-opacity = 0.9;</span>
<pre class="src src-conf"><span class="org-variable-name">inactive-opacity</span> = <span class="org-highlight-numbers-number">1.0</span>;
<span class="org-variable-name">frame-opacity</span> = <span class="org-highlight-numbers-number">1.0</span>;
<span class="org-variable-name">inactive-opacity-override</span> = false;
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-dim = 0.2;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inactive-dim-fixed = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background-frame = true;</span>
<span class="org-variable-name">blur-kern</span> = <span class="org-string">"3x3box"</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">blur-background-fixed = true;</span>
<span class="org-variable-name">blur-background-exclude</span> = [
<span class="org-string">"window_type = 'dock'"</span>,
<span class="org-string">"window_type = 'desktop'"</span>,
<span class="org-string">"class_g = 'CoverGloobus'"</span>,
<span class="org-string">"class_g = 'Opera'"</span>,
<span class="org-string">"_GTK_FRAME_EXTENTS@:c"</span>
];
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'XTerm'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'UXTerm'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "80:class_g = 'i3bar'" ];</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">opacity-rule = [ "90:class_g = 'dzen'" ];</span>
<span class="org-variable-name">opacity-rule</span> = [ <span class="org-string">"40:class_g = 'Bspwm' &amp;&amp; class_i = 'presel_feedback'"</span> ];
</pre>
</div>
</div>
</div>
<div id="outline-container-org61a6af4" class="outline-2">
<h2 id="org61a6af4">Fading</h2>
<div class="outline-text-2" id="text-org61a6af4">
<div id="outline-container-org7f92cb7" class="outline-2">
<h2 id="org7f92cb7">Fading</h2>
<div class="outline-text-2" id="text-org7f92cb7">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">fading</span> = false;
<span class="org-variable-name">fade-delta</span> = <span class="org-highlight-numbers-number">10.0</span>;
<span class="org-variable-name">fade-in-step</span> = <span class="org-highlight-numbers-number">0.03</span>;
<span class="org-variable-name">fade-out-step</span> = <span class="org-highlight-numbers-number">0.03</span>;
<span class="org-comment-delimiter"># </span><span class="org-comment">no-fading-openclose = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">no-fading-destroyed-argb = true;</span>
<span class="org-variable-name">fade-exclude</span> = [
];
</pre>
</div>
</div>
</div>
<div id="outline-container-org7c10dee" class="outline-2">
<h2 id="org7c10dee">Other</h2>
<div class="outline-text-2" id="text-org7c10dee">
<div id="outline-container-orgc741707" class="outline-2">
<h2 id="orgc741707">Other</h2>
<div class="outline-text-2" id="text-orgc741707">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">backend</span> = <span class="org-string">"xrender"</span>;
<span class="org-variable-name">mark-wmwin-focused</span> = true;
<span class="org-variable-name">mark-ovredir-focused</span> = true;
<span class="org-comment-delimiter"># </span><span class="org-comment">use-ewmh-active-win = true;</span>
<span class="org-variable-name">detect-rounded-corners</span> = true;
<span class="org-variable-name">detect-client-opacity</span> = true;
<span class="org-variable-name">refresh-rate</span> = <span class="org-highlight-numbers-number">0</span>;
<span class="org-variable-name">vsync</span> = false;
<span class="org-variable-name">dbe</span> = false;
<span class="org-comment-delimiter"># </span><span class="org-comment">sw-opti = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible = true;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible-delay = 5000;</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unredir-if-possible-exclude = [ ];</span>
<span class="org-variable-name">detect-transient</span> = true;
<span class="org-variable-name">detect-client-leader</span> = true;
<span class="org-variable-name">invert-color-include</span> = [ ];
<span class="org-comment-delimiter"># </span><span class="org-comment">resize-damage = 1;</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd16d016" class="outline-2">
<h2 id="orgd16d016">Window Type Setting</h2>
<div class="outline-text-2" id="text-orgd16d016">
<div id="outline-container-org76e2225" class="outline-2">
<h2 id="org76e2225">Window Type Setting</h2>
<div class="outline-text-2" id="text-org76e2225">
<div class="org-src-container">
<pre class="src src-conf">wintypes:
{
<span class="org-variable-name">tooltip</span> = {
<span class="org-variable-name">fade</span> = true;
<span class="org-variable-name">shadow</span> = true;
<span class="org-variable-name">opacity</span> = <span class="org-highlight-numbers-number">0.75</span>;
<span class="org-variable-name">focus</span> = true;
};
<span class="org-variable-name">fullscreen</span> = {
<span class="org-variable-name">fade</span> = true;
<span class="org-variable-name">shadow</span> = false;
<span class="org-variable-name">opacity</span> = <span class="org-highlight-numbers-number">1</span>;
<span class="org-variable-name">focus</span> = true;
};
<span class="org-variable-name">tooltip</span> = { fade = true; shadow = true; focus = true; full-shadow = false; };
<span class="org-variable-name">dock</span> = { shadow = false; }
<span class="org-variable-name">dnd</span> = { shadow = false; }
};
</pre>
</div>
@ -399,7 +109,7 @@ for the JavaScript code in this tag.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-12 dim. 17:28</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,306 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-01 dim. 22:50 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calendar Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Calendar Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgaf64b1d">Khard</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgaf64b1d" class="outline-2">
<h2 id="orgaf64b1d">Khard</h2>
<div class="outline-text-2" id="text-orgaf64b1d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">example configuration file for khard version &gt;= 0.13.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">place it under $HOME/.config/khard/khard.conf</span>
[<span class="org-type">addressbooks</span>]
[<span class="org-type">[google]</span>]
<span class="org-variable-name">path</span> = ~/.contacts/default/
[<span class="org-type">general</span>]
<span class="org-variable-name">debug</span> = no
<span class="org-variable-name">default_action</span> = list
<span class="org-variable-name">editor</span> = vim
<span class="org-variable-name">merge_editor</span> = vimdiff
[<span class="org-type">contact table</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">display names by first or last name: first_name / last_name</span>
<span class="org-variable-name">display</span> = first_name
<span class="org-comment-delimiter"># </span><span class="org-comment">group by address book: yes / no</span>
<span class="org-variable-name">group_by_addressbook</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">reverse table ordering: yes / no</span>
<span class="org-variable-name">reverse</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">append nicknames to name column: yes / no</span>
<span class="org-variable-name">show_nicknames</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">show uid table column: yes / no</span>
<span class="org-variable-name">show_uids</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">sort by first or last name: first_name / last_name</span>
<span class="org-variable-name">sort</span> = last_name
<span class="org-comment-delimiter"># </span><span class="org-comment">localize dates: yes / no</span>
<span class="org-variable-name">localize_dates</span> = yes
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred phone number types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_phone_number_type</span> = pref, cell, home
<span class="org-comment-delimiter"># </span><span class="org-comment">set a comma separated list of preferred email address types in descending priority</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">or nothing for non-filtered alphabetical order</span>
<span class="org-variable-name">preferred_email_address_type</span> = pref, work, home
[<span class="org-type">vcard</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">extend contacts with your own private objects</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">these objects are stored with a leading "X-" before the object name in the vcard files</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">every object label may only contain letters, digits and the - character</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">example:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">private_objects = Jabber, Skype, Twitter</span>
<span class="org-variable-name">private_objects</span> = Jabber, Skype, Twitter
<span class="org-comment-delimiter"># </span><span class="org-comment">preferred vcard version: 3.0 / 4.0</span>
<span class="org-variable-name">preferred_version</span> = <span class="org-highlight-numbers-number">3.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Look into source vcf files to speed up search queries: yes / no</span>
<span class="org-variable-name">search_in_source_files</span> = no
<span class="org-comment-delimiter"># </span><span class="org-comment">skip unparsable vcard files: yes / no</span>
<span class="org-variable-name">skip_unparsable</span> = no
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-01 dim. 22:50</p>
</div>
</body>
</html>

View File

@ -1,145 +0,0 @@
.org-bold { /* bold */ font-weight: bold; }
.org-bold-italic { /* bold-italic */ font-weight: bold; font-style: italic; }
.org-buffer-menu-buffer { /* buffer-menu-buffer */ font-weight: bold; }
.org-builtin { /* font-lock-builtin-face */ color: #7a378b; }
.org-button { /* button */ text-decoration: underline; }
.org-calendar-today { /* calendar-today */ text-decoration: underline; }
.org-change-log-acknowledgement { /* change-log-acknowledgement */ color: #b22222; }
.org-change-log-conditionals { /* change-log-conditionals */ color: #a0522d; }
.org-change-log-date { /* change-log-date */ color: #8b2252; }
.org-change-log-email { /* change-log-email */ color: #a0522d; }
.org-change-log-file { /* change-log-file */ color: #0000ff; }
.org-change-log-function { /* change-log-function */ color: #a0522d; }
.org-change-log-list { /* change-log-list */ color: #a020f0; }
.org-change-log-name { /* change-log-name */ color: #008b8b; }
.org-comint-highlight-input { /* comint-highlight-input */ font-weight: bold; }
.org-comint-highlight-prompt { /* comint-highlight-prompt */ color: #00008b; }
.org-comment { /* font-lock-comment-face */ color: #999988; font-style: italic; }
.org-comment-delimiter { /* font-lock-comment-delimiter-face */ color: #999988; font-style: italic; }
.org-completions-annotations { /* completions-annotations */ font-style: italic; }
.org-completions-common-part { /* completions-common-part */ color: #000000; background-color: #ffffff; }
.org-completions-first-difference { /* completions-first-difference */ font-weight: bold; }
.org-constant { /* font-lock-constant-face */ color: #008b8b; }
.org-diary { /* diary */ color: #ff0000; }
.org-diff-context { /* diff-context */ color: #7f7f7f; }
.org-diff-file-header { /* diff-file-header */ background-color: #b3b3b3; font-weight: bold; }
.org-diff-function { /* diff-function */ background-color: #cccccc; }
.org-diff-header { /* diff-header */ background-color: #cccccc; }
.org-diff-hunk-header { /* diff-hunk-header */ background-color: #cccccc; }
.org-diff-index { /* diff-index */ background-color: #b3b3b3; font-weight: bold; }
.org-diff-nonexistent { /* diff-nonexistent */ background-color: #b3b3b3; font-weight: bold; }
.org-diff-refine-change { /* diff-refine-change */ background-color: #d9d9d9; }
.org-dired-directory { /* dired-directory */ color: #0000ff; }
.org-dired-flagged { /* dired-flagged */ color: #ff0000; font-weight: bold; }
.org-dired-header { /* dired-header */ color: #228b22; }
.org-dired-ignored { /* dired-ignored */ color: #7f7f7f; }
.org-dired-mark { /* dired-mark */ color: #008b8b; }
.org-dired-marked { /* dired-marked */ color: #ff0000; font-weight: bold; }
.org-dired-perm-write { /* dired-perm-write */ color: #b22222; }
.org-dired-symlink { /* dired-symlink */ color: #a020f0; }
.org-dired-warning { /* dired-warning */ color: #ff0000; font-weight: bold; }
.org-doc { /* font-lock-doc-face */ color: #8b2252; }
.org-escape-glyph { /* escape-glyph */ color: #a52a2a; }
.org-file-name-shadow { /* file-name-shadow */ color: #7f7f7f; }
.org-flyspell-duplicate { /* flyspell-duplicate */ color: #cdad00; font-weight: bold; text-decoration: underline; }
.org-flyspell-incorrect { /* flyspell-incorrect */ color: #ff4500; font-weight: bold; text-decoration: underline; }
.org-fringe { /* fringe */ background-color: #f2f2f2; }
.org-function-name { /* font-lock-function-name-face */ color: teal; }
.org-header-line { /* header-line */ color: #333333; background-color: #e5e5e5; }
.org-help-argument-name { /* help-argument-name */ font-style: italic; }
.org-highlight { /* highlight */ background-color: #b4eeb4; }
.org-holiday { /* holiday */ background-color: #ffc0cb; }
.org-isearch { /* isearch */ color: #b0e2ff; background-color: #cd00cd; }
.org-isearch-fail { /* isearch-fail */ background-color: #ffc1c1; }
.org-italic { /* italic */ font-style: italic; }
.org-keyword { /* font-lock-keyword-face */ color: #0086b3; }
.org-lazy-highlight { /* lazy-highlight */ background-color: #afeeee; }
.org-link { /* link */ color: #0000ff; text-decoration: underline; }
.org-link-visited { /* link-visited */ color: #8b008b; text-decoration: underline; }
.org-log-edit-header { /* log-edit-header */ color: #a020f0; }
.org-log-edit-summary { /* log-edit-summary */ color: #0000ff; }
.org-log-edit-unknown-header { /* log-edit-unknown-header */ color: #b22222; }
.org-match { /* match */ background-color: #ffff00; }
.org-next-error { /* next-error */ background-color: #eedc82; }
.org-nobreak-space { /* nobreak-space */ color: #a52a2a; text-decoration: underline; }
.org-org-archived { /* org-archived */ color: #7f7f7f; }
.org-org-block { /* org-block */ color: #7f7f7f; }
.org-org-block-begin-line { /* org-block-begin-line */ color: #b22222; }
.org-org-block-end-line { /* org-block-end-line */ color: #b22222; }
.org-org-checkbox { /* org-checkbox */ font-weight: bold; }
.org-org-checkbox-statistics-done { /* org-checkbox-statistics-done */ color: #228b22; font-weight: bold; }
.org-org-checkbox-statistics-todo { /* org-checkbox-statistics-todo */ color: #ff0000; font-weight: bold; }
.org-org-clock-overlay { /* org-clock-overlay */ background-color: #ffff00; }
.org-org-code { /* org-code */ color: #7f7f7f; }
.org-org-column { /* org-column */ background-color: #e5e5e5; }
.org-org-column-title { /* org-column-title */ background-color: #e5e5e5; font-weight: bold; text-decoration: underline; }
.org-org-date { /* org-date */ color: #a020f0; text-decoration: underline; }
.org-org-document-info { /* org-document-info */ color: #191970; }
.org-org-document-info-keyword { /* org-document-info-keyword */ color: #7f7f7f; }
.org-org-document-title { /* org-document-title */ color: #191970; font-size: 144%; font-weight: bold; }
.org-org-done { /* org-done */ color: #228b22; font-weight: bold; }
.org-org-drawer { /* org-drawer */ color: #0000ff; }
.org-org-ellipsis { /* org-ellipsis */ color: #b8860b; text-decoration: underline; }
.org-org-footnote { /* org-footnote */ color: #a020f0; text-decoration: underline; }
.org-org-formula { /* org-formula */ color: #b22222; }
.org-org-headline-done { /* org-headline-done */ color: #bc8f8f; }
.org-org-hide { /* org-hide */ color: #ffffff; }
.org-org-latex-and-export-specials { /* org-latex-and-export-specials */ color: #8b4513; }
.org-org-level-1 { /* org-level-1 */ color: #0000ff; }
.org-org-level-2 { /* org-level-2 */ color: #a0522d; }
.org-org-level-3 { /* org-level-3 */ color: #a020f0; }
.org-org-level-4 { /* org-level-4 */ color: #b22222; }
.org-org-level-5 { /* org-level-5 */ color: #228b22; }
.org-org-level-6 { /* org-level-6 */ color: #008b8b; }
.org-org-level-7 { /* org-level-7 */ color: #7a378b; }
.org-org-level-8 { /* org-level-8 */ color: #8b2252; }
.org-org-link { /* org-link */ color: #0000ff; text-decoration: underline; }
.org-org-meta-line { /* org-meta-line */ color: #b22222; }
.org-org-mode-line-clock { /* org-mode-line-clock */ color: #000000; background-color: #bfbfbf; }
.org-org-mode-line-clock-overrun { /* org-mode-line-clock-overrun */ color: #000000; background-color: #ff0000; }
.org-org-quote { /* org-quote */ color: #7f7f7f; }
.org-org-scheduled { /* org-scheduled */ color: #006400; }
.org-org-scheduled-previously { /* org-scheduled-previously */ color: #b22222; }
.org-org-scheduled-today { /* org-scheduled-today */ color: #006400; }
.org-org-sexp-date { /* org-sexp-date */ color: #a020f0; }
.org-org-special-keyword { /* org-special-keyword */ color: #a020f0; }
.org-org-table { /* org-table */ color: #0000ff; }
.org-org-tag { /* org-tag */ font-weight: bold; }
.org-org-target { /* org-target */ text-decoration: underline; }
.org-org-time-grid { /* org-time-grid */ color: #b8860b; }
.org-org-todo { /* org-todo */ color: #ff0000; font-weight: bold; }
.org-org-upcoming-deadline { /* org-upcoming-deadline */ color: #b22222; }
.org-org-verbatim { /* org-verbatim */ color: #7f7f7f; }
.org-org-verse { /* org-verse */ color: #7f7f7f; }
.org-org-warning { /* org-warning */ color: #ff0000; font-weight: bold; }
.org-outline-1 { /* outline-1 */ color: #0000ff; }
.org-outline-2 { /* outline-2 */ color: #a0522d; }
.org-outline-3 { /* outline-3 */ color: #a020f0; }
.org-outline-4 { /* outline-4 */ color: #b22222; }
.org-outline-5 { /* outline-5 */ color: #228b22; }
.org-outline-6 { /* outline-6 */ color: #008b8b; }
.org-outline-7 { /* outline-7 */ color: #7a378b; }
.org-outline-8 { /* outline-8 */ color: #8b2252; }
.org-preprocessor { /* font-lock-preprocessor-face */ color: #7a378b; }
.org-query-replace { /* query-replace */ color: #b0e2ff; background-color: #cd00cd; }
.org-regexp-grouping-backslash { /* font-lock-regexp-grouping-backslash */ font-weight: bold; }
.org-regexp-grouping-construct { /* font-lock-regexp-grouping-construct */ font-weight: bold; }
.org-region { /* region */ background-color: #eedc82; }
.org-secondary-selection { /* secondary-selection */ background-color: #ffff00; }
.org-shadow { /* shadow */ color: #7f7f7f; }
.org-show-paren-match { /* show-paren-match */ background-color: #40e0d0; }
.org-show-paren-mismatch { /* show-paren-mismatch */ color: #ffffff; background-color: #a020f0; }
.org-string { /* font-lock-string-face */ color: #dd1144; }
.org-tool-bar { /* tool-bar */ color: #000000; background-color: #bfbfbf; }
.org-tooltip { /* tooltip */ color: #000000; background-color: #ffffe0; }
.org-trailing-whitespace { /* trailing-whitespace */ background-color: #ff0000; }
.org-type { /* font-lock-type-face */ color: #228b22; }
.org-underline { /* underline */ text-decoration: underline; }
.org-variable-name { /* font-lock-variable-name-face */ color: teal; }
.org-warning { /* font-lock-warning-face */ color: #ff0000; font-weight: bold; }
.org-widget-button { /* widget-button */ font-weight: bold; }
.org-widget-button-pressed { /* widget-button-pressed */ color: #ff0000; }
.org-widget-documentation { /* widget-documentation */ color: #006400; }
.org-widget-field { /* widget-field */ background-color: #d9d9d9; }
.org-widget-inactive { /* widget-inactive */ color: #7f7f7f; }
.org-widget-single-line-field { /* widget-single-line-field */ background-color: #d9d9d9; }

File diff suppressed because it is too large Load Diff

5196
docs/data.html Normal file

File diff suppressed because it is too large Load Diff

258
docs/dist/script.js vendored Normal file
View File

@ -0,0 +1,258 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
// Blocks
docReady(function () {
var boxesNames = {
"seealso": "See also",
"definition": "Definition",
"exampl": "Example",
"exercice": "Exercice",
"question": "Question",
"summary": "Summary",
"note": "Note",
"answer": "Answer",
"hint": "Hint",
"important": "Important",
"caution": "Caution",
"warning": "Warning"
};
for (var className in boxesNames) {
var boxes = document.querySelectorAll('div.' + className);
var _iterator = _createForOfIteratorHelper(boxes),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var box = _step.value;
var boxTitle = document.createElement('p');
boxTitle.className = "admonition-title " + className;
boxTitle.textContent = boxesNames[className];
box.parentNode.insertBefore(boxTitle, box);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
}); // Copy Source Block
docReady(function () {
var srcContainers = document.querySelectorAll('pre.src');
function copyClickFunction() {
var boxCopy = this; // Create a clone the node to not affect the original one
var nodeClone = boxCopy.parentNode.cloneNode(true); // Remove Line Numbers and Copy Button
var linenumNodes = nodeClone.querySelectorAll('.linenr,.src-copy');
for (var i = linenumNodes.length - 1; i >= 0; --i) {
nodeClone.removeChild(linenumNodes[i]);
} // Copy the filetered content to the clipboard
var srcText = nodeClone.textContent;
navigator.clipboard.writeText(srcText).then(function () {
boxCopy.textContent = "Copied";
boxCopy.classList.add("src-copied");
setTimeout(function () {
boxCopy.textContent = "Copy";
boxCopy.classList.remove("src-copied");
}, 2000);
});
}
var _iterator2 = _createForOfIteratorHelper(srcContainers),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var srcContrainer = _step2.value;
var boxCopy = document.createElement('div');
boxCopy.className = "src-copy";
boxCopy.textContent = "Copy";
boxCopy.onclick = copyClickFunction;
srcContrainer.prepend(boxCopy);
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
}); // Wrap Images and Tables
docReady(function () {
var wrap_elements = document.querySelectorAll('[float=wrap-right]');
var _iterator3 = _createForOfIteratorHelper(wrap_elements),
_step3;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
var wrap_el = _step3.value;
wrap_el.closest('.figure').classList.add('wrap-right');
}
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
wrap_elements = document.querySelectorAll('[float=wrap-left]');
var _iterator4 = _createForOfIteratorHelper(wrap_elements),
_step4;
try {
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
var _wrap_el = _step4.value;
_wrap_el.closest('.figure').classList.add('wrap-left');
}
} catch (err) {
_iterator4.e(err);
} finally {
_iterator4.f();
}
}); // Equivalent of Jquery $.ready
function docReady(fn) {
// see if DOM is already available
if (document.readyState === "complete" || document.readyState === "interactive") {
// call on next available tick
setTimeout(fn, 1);
} else {
document.addEventListener("DOMContentLoaded", fn);
}
} // Load Jquery
var scr = document.createElement('script'),
head = document.head || document.getElementsByTagName('head')[0];
scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js';
scr.async = false; // optionally
head.insertBefore(scr, head.firstChild); // Load Bootstrap.js
var scr = document.createElement('script'),
head = document.head || document.getElementsByTagName('head')[0];
scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js';
scr.async = false; // optionally
head.insertBefore(scr, head.firstChild); // After it is loaded
scr.addEventListener('load', function () {
$(document).ready(function () {
$('#text-table-of-contents ul').first().addClass('nav'); // ScrollSpy also requires that we use
// a Bootstrap nav component.
$('body').scrollspy({
target: '#text-table-of-contents'
}); // set the height of tableOfContents
var $postamble = $('#postamble');
var $tableOfContents = $('#table-of-contents');
$tableOfContents.css({
paddingBottom: $postamble.outerHeight()
}); // add TOC button
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
$('#content').prepend(toggleSidebar); // add close button when sidebar showed in mobile screen
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
var tocTitle = $('#table-of-contents').find('h2');
tocTitle.append(closeBtn);
});
}); // function collapse_toc_elements_on_click (nav_li_a){
// /*
// When an `a' element in the TOC is clicked, its parent
// `li' element's active attribute is toggled. This causes
// the element to toggle between minimized and maximized
// states. The active attribute is documented in bootstrap.
// https://getbootstrap.com/docs/4.0/components/navbar/#nav
// */
// $(nav_li_a).parent().toggleClass("active");
// }
// $( document ).ready(function() {
// // When the document is loaded and ready, bind the
// // function `collapse_toc_elements_on_click' to the
// // `a' elements in the table of contents.
// $("#text-table-of-contents a").click(function() {
// collapse_toc_elements_on_click(this);
// });
// });
// $( document ).ready(function() {
// // Shift nav in mobile when clicking the menu.
// $(document).on('click', "[data-toggle='wy-nav-top']", function() {
// $("[data-toggle='wy-nav-shift']").toggleClass("shift");
// $("[data-toggle='rst-versions']").toggleClass("shift");
// });
// // Close menu when you click a link.
// $(document).on('click', ".wy-menu-vertical .current ul li a", function() {
// $("[data-toggle='wy-nav-shift']").removeClass("shift");
// $("[data-toggle='rst-versions']").toggleClass("shift");
// });
// $(document).on('click', "[data-toggle='rst-current-version']", function() {
// $("[data-toggle='rst-versions']").toggleClass("shift-up");
// });
// // Make tables responsive
// $("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
// });
// $( document ).ready(function() {
// $('#text-table-of-contents ul').first().addClass('nav');
// // ScrollSpy also requires that we use
// // a Bootstrap nav component.
// $('body').scrollspy({target: '#text-table-of-contents'});
// // set the height of tableOfContents
// var $postamble = $('#postamble');
// var $tableOfContents = $('#table-of-contents');
// $tableOfContents.css({paddingBottom: $postamble.outerHeight()});
// // add TOC button
// var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
// $('#content').prepend(toggleSidebar);
// // add close button when sidebar showed in mobile screen
// var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
// var tocTitle = $('#table-of-contents').find('h2');
// tocTitle.append(closeBtn);
// });
// window.SphinxRtdTheme = (function (jquery) {
// var stickyNav = (function () {
// var navBar,
// win,
// stickyNavCssClass = 'stickynav',
// applyStickNav = function () {
// if (navBar.height() <= win.height()) {
// navBar.addClass(stickyNavCssClass);
// } else {
// navBar.removeClass(stickyNavCssClass);
// }
// },
// enable = function () {
// applyStickNav();
// win.on('resize', applyStickNav);
// },
// init = function () {
// navBar = jquery('nav.wy-nav-side:first');
// win = jquery(window);
// };
// jquery(init);
// return {
// enable : enable
// };
// }());
// return {
// StickyNav : stickyNav
// };
// }($));
},{}]},{},[1]);

1
docs/dist/style.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-01-08 ven. 01:32 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>My Own Library of Babel</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">My Own Library of Babel</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org6748865"><code>get-password</code> - Get Password from <code>pass</code></a></li>
<li><a href="#orga14277a"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</a></li>
<li><a href="#orgca0df99"><code>addhdr</code> - Add hline to tables</a></li>
<li><a href="#org7f58498">Matlab Related</a>
<ul>
<li><a href="#org0dc80bc"><code>matlab-dir</code> Go to current directory</a></li>
<li><a href="#orge3957c3"><code>matlab-init</code> Initialize matlab</a></li>
<li><a href="#orgcdf63af"><code>plt-matlab</code> Plot figures</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org6748865" class="outline-2">
<h2 id="org6748865"><code>get-password</code> - Get Password from <code>pass</code></h2>
<div class="outline-text-2" id="text-org6748865">
<div class="org-src-container">
<pre class="src src-bash" id="org907ee3f">pass $<span class="org-variable-name">passname</span> | sed -n 1p
</pre>
</div>
</div>
</div>
<div id="outline-container-orga14277a" class="outline-2">
<h2 id="orga14277a"><code>pdf2svg</code> - Export to pdf/png/svg at the same time</h2>
<div class="outline-text-2" id="text-orga14277a">
<div class="org-src-container">
<pre class="src src-sh" id="org9f7b2d6"><span class="org-variable-name">_mydir</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">pwd</span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span>;
<span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span> | cut -f 2- -d <span class="org-string">':'</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-variable-name">_figdir</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">dirname</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>;
<span class="org-type">cd</span> $<span class="org-variable-name">_figdir</span>;
<span class="org-variable-name">filename</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{file##*/}</span></span><span class="org-string">"</span> | cut -f <span class="org-highlight-numbers-number">1</span> -d <span class="org-string">'.'</span><span class="org-rainbow-delimiters-depth-1">)</span>;
pdftocairo -png -transp -singlefile <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span>;
pdftocairo -svg <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.pdf"</span>;
<span class="org-type">cd</span> <span class="org-string">"$_mydir"</span>;
<span class="org-type">echo</span> <span class="org-string">"[[file:$_figdir/</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">filename</span></span><span class="org-string">.</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">ext</span></span><span class="org-string">]]"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgca0df99" class="outline-2">
<h2 id="orgca0df99"><code>addhdr</code> - Add hline to tables</h2>
<div class="outline-text-2" id="text-orgca0df99">
<div class="org-src-container">
<pre class="src src-emacs-lisp" id="orgc589733"><span class="org-rainbow-delimiters-depth-1">(</span><span class="org-constant">cons</span> <span class="org-rainbow-delimiters-depth-2">(</span><span class="org-constant">car</span> tbl<span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-rainbow-delimiters-depth-2">(</span><span class="org-constant">cons</span> <span class="org-highlight-quoted-quote">'</span><span class="org-highlight-quoted-symbol">hline</span> <span class="org-rainbow-delimiters-depth-3">(</span><span class="org-constant">cdr</span> tbl<span class="org-rainbow-delimiters-depth-3">)</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7f58498" class="outline-2">
<h2 id="org7f58498">Matlab Related</h2>
<div class="outline-text-2" id="text-org7f58498">
</div>
<div id="outline-container-org0dc80bc" class="outline-3">
<h3 id="org0dc80bc"><code>matlab-dir</code> Go to current directory</h3>
</div>
<div id="outline-container-orge3957c3" class="outline-3">
<h3 id="orge3957c3"><code>matlab-init</code> Initialize matlab</h3>
</div>
<div id="outline-container-orgcdf63af" class="outline-3">
<h3 id="orgcdf63af"><code>plt-matlab</code> Plot figures</h3>
<div class="outline-text-3" id="text-orgcdf63af">
<p>
Some variable can be set by block that expands this org source code block:
</p>
<ul class="org-ul">
<li><code>path</code>: specify the path of the figure including the file extension. Can be relative or absolute. If not provided, it will create the figure in the <code>/tmp</code> folder</li>
<li><code>fig_size</code>: can specify the size of the figure. If not specify, default will be applied.</li>
</ul>
<div class="org-src-container">
<pre class="src src-matlab" id="org7fa148b"><span class="org-keyword">if</span> <span class="org-type">~</span>exist(<span class="org-string">'filepath'</span>) <span class="org-type">||</span> length(filepath) <span class="org-type">&lt;</span> 2
symbols = [<span class="org-string">'a'</span><span class="org-type">:</span><span class="org-string">'z'</span> <span class="org-string">'A'</span><span class="org-type">:</span><span class="org-string">'Z'</span> <span class="org-string">'0'</span><span class="org-type">:</span><span class="org-string">'9'</span>];
random_string = symbols(randi(numel(symbols),[1 5]));
filepath = [<span class="org-string">'/tmp/matlab-fig-'</span>, random_string];
<span class="org-keyword">end</span>
size_strings = strsplit(figsize, <span class="org-string">'-'</span>);
<span class="org-constant">ans</span> = exportFig(filepath, <span class="org-string">'width'</span>, size_strings{1}, <span class="org-string">'height'</span>, size_strings{2});
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-08 ven. 01:32</p>
</div>
</body>
</html>

911
docs/emacs-snippets.html Normal file
View File

@ -0,0 +1,911 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-01-11 lun. 14:50 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Doom Emacs Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Doom Emacs Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orga3bc01e">LaTeX</a>
<ul>
<li><a href="#org50ac3ef">Coordinate</a></li>
<li><a href="#org8ca867b">Draw</a></li>
<li><a href="#orgd5ec64e">Node</a></li>
<li><a href="#orgd2a36e9">Path</a></li>
</ul>
</li>
<li><a href="#org5abed78">Matlab</a>
<ul>
<li><a href="#org6bd1003">Clear</a></li>
<li><a href="#orgc90b35e">Function</a></li>
</ul>
</li>
<li><a href="#org4a9de72">Org Mode</a>
<ul>
<li><a href="#org7220f49">Begin</a></li>
<li><a href="#orgde0f79b">Caption</a></li>
<li><a href="#org7942249">Block</a></li>
<li><a href="#org0dd9c10">Custom Box</a></li>
<li><a href="#org3c7a0a0">Latex Class</a></li>
<li><a href="#orgf59b249">Bibliography with completion</a></li>
<li><a href="#orgd88407c">Cite</a></li>
<li><a href="#orgb1f5cdc">Ref</a></li>
<li><a href="#org8b9dce1">Beamer - CBOX</a></li>
<li><a href="#org68eb2b6">HTML Details</a></li>
<li><a href="#orgc76873e">Code</a></li>
<li><a href="#orgf39e79c">Equation</a></li>
<li><a href="#orge17a1a2">Figure</a></li>
<li><a href="#org1ddfd44">Frac</a></li>
<li><a href="#org400ff8e">Left</a></li>
<li><a href="#org234e84f">Minipage</a></li>
<li><a href="#orgb7becfc">Minipage Figures</a></li>
<li><a href="#org630b3de">Wrap Figure</a></li>
<li><a href="#org8aa2d33">Multicolumn</a></li>
<li><a href="#orgb5c8c67">Subfigure</a></li>
<li><a href="#orga9aa801">Table</a></li>
<li><a href="#org2604457">Tikz</a></li>
<li><a href="#orgf6eeddb">Tikzfig</a></li>
<li><a href="#orgba1d993">Tikzheader</a></li>
<li><a href="#org040faef">User-config</a></li>
<li><a href="#org349c757">User-init</a></li>
<li><a href="#org951f3c0">Wrap</a></li>
<li><a href="#orgbd116e3">Matlab Specific</a>
<ul>
<li><a href="#orge0eecad">Mconfig</a></li>
<li><a href="#org494be3f">Mdescription</a></li>
<li><a href="#org2c8a3d2">Mfigure</a></li>
<li><a href="#org21ef93d">Mfunction</a></li>
<li><a href="#org8920992">Mheader</a></li>
<li><a href="#orgec784e2">Minit</a></li>
<li><a href="#org27df014">Mtable</a></li>
<li><a href="#org31ef31f">Mvalue</a></li>
</ul>
</li>
<li><a href="#org143de42">Binary</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orga3bc01e" class="outline-2">
<h2 id="orga3bc01e">LaTeX</h2>
<div class="outline-text-2" id="text-orga3bc01e">
</div>
<div id="outline-container-org50ac3ef" class="outline-3">
<h3 id="org50ac3ef">Coordinate</h3>
<div class="outline-text-3" id="text-org50ac3ef">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :coordinate</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\coordinate[${<span class="org-highlight-numbers-number">1</span>:-&gt;}] (${<span class="org-highlight-numbers-number">2</span>:name}) at (${<span class="org-highlight-numbers-number">3</span>:pointcoordinate});
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org8ca867b" class="outline-3">
<h3 id="org8ca867b">Draw</h3>
<div class="outline-text-3" id="text-org8ca867b">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :draw</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\draw[${<span class="org-highlight-numbers-number">1</span>:-&gt;}] (${<span class="org-highlight-numbers-number">2</span>:point1}) -- (${<span class="org-highlight-numbers-number">3</span>:point2});
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd5ec64e" class="outline-3">
<h3 id="orgd5ec64e">Node</h3>
<div class="outline-text-3" id="text-orgd5ec64e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :node</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
node[${<span class="org-highlight-numbers-number">1</span>:below right}] (${<span class="org-highlight-numbers-number">2</span>:name}) {${<span class="org-highlight-numbers-number">3</span>:label}};
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd2a36e9" class="outline-3">
<h3 id="orgd2a36e9">Path</h3>
<div class="outline-text-3" id="text-orgd2a36e9">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :path</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\path[${<span class="org-highlight-numbers-number">1</span>}] (${<span class="org-highlight-numbers-number">2</span>:point1}) -- (${<span class="org-highlight-numbers-number">3</span>:point2});
$0
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org5abed78" class="outline-2">
<h2 id="org5abed78">Matlab</h2>
<div class="outline-text-2" id="text-org5abed78">
</div>
<div id="outline-container-org6bd1003" class="outline-3">
<h3 id="org6bd1003">Clear</h3>
<div class="outline-text-3" id="text-org6bd1003">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :clear and close all</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
clear; close all; clc;
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc90b35e" class="outline-3">
<h3 id="orgc90b35e">Function</h3>
<div class="outline-text-3" id="text-orgc90b35e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :function</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-variable-name">function </span>[${<span class="org-highlight-numbers-number">4</span>:outputs}] = ${<span class="org-highlight-numbers-number">1</span>:functionName}(${<span class="org-highlight-numbers-number">2</span>:inputs}, ${<span class="org-highlight-numbers-number">3</span>:opts_param})
% $1 - Description
%
% Syntax: $1($2, $3)
%
% Inputs:
% - $2 -
% - $3 - Optionals parameters: structure with the following fields:
% -
%
% Outputs:
% - $4 -
%% Default value for opts
<span class="org-variable-name">opts</span> = struct(...
<span class="org-string">'${5:outputs}'</span>, ${<span class="org-highlight-numbers-number">6</span>:default_value} ...
);
if exist(<span class="org-string">'opts_param'</span>,<span class="org-string">'var'</span>)
<span class="org-variable-name">for opt</span> = fieldnames($3)<span class="org-string">'</span>
<span class="org-string"> if sum(strcmp(fieldnames(opts), opt{1})) == 1</span>
<span class="org-string"> opts.(opt{1}) = $3.(opt{1});</span>
<span class="org-string"> else</span>
<span class="org-string"> warning(sprintf('</span>%s is not a valid option.<span class="org-string">', opt{1}));</span>
<span class="org-string"> end</span>
<span class="org-string"> end</span>
<span class="org-string">end</span>
<span class="org-string">$0</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org4a9de72" class="outline-2">
<h2 id="org4a9de72">Org Mode</h2>
<div class="outline-text-2" id="text-org4a9de72">
</div>
<div id="outline-container-org7220f49" class="outline-3">
<h3 id="org7220f49">Begin</h3>
<div class="outline-text-3" id="text-org7220f49">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Environment</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\begin{${<span class="org-highlight-numbers-number">1</span>:equation}}
$0
\end{$1}
</pre>
</div>
</div>
</div>
<div id="outline-container-orgde0f79b" class="outline-3">
<h3 id="orgde0f79b">Caption</h3>
<div class="outline-text-3" id="text-orgde0f79b">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Caption</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7942249" class="outline-3">
<h3 id="org7942249">Block</h3>
<div class="outline-text-3" id="text-org7942249">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Org-Mode Block</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: block</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_${1:$$(let ((type (yas-choose-value '("src" "example" "quote" "verse" "center" "latex" "html" "ascii"))))</span>
(if type (concat type (if (equal type <span class="org-string">"src"</span>)
(concat <span class="org-string">" "</span> (yas-choose-value <span class="org-string">'("emacs-lisp" "latex" "python" "sh" "matlab")))))))}</span>
<span class="org-string">$0</span>
<span class="org-string">#+end_${1:$(car (split-string yas-text))}</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0dd9c10" class="outline-3">
<h3 id="org0dd9c10">Custom Box</h3>
<div class="outline-text-3" id="text-org0dd9c10">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Custom Box</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [$1]{${2:blue}}{${3:ams nodisplayskip}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_cbox</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_cbox</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org3c7a0a0" class="outline-3">
<h3 id="org3c7a0a0">Latex Class</h3>
<div class="outline-text-3" id="text-org3c7a0a0">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: latex-class</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: lc</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">expand-env: ((classes (mapcar 'car org-latex-classes)))</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+latex_class: ${1:$$(yas-choose-value classes)}</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf59b249" class="outline-3">
<h3 id="orgf59b249">Bibliography with completion</h3>
<div class="outline-text-3" id="text-orgf59b249">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: bibliography with completion</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: bib</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
bibliography:${<span class="org-highlight-numbers-number">1</span>:$$(yas-choose-value (org-ref-find-bibliography))}
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd88407c" class="outline-3">
<h3 id="orgd88407c">Cite</h3>
<div class="outline-text-3" id="text-orgd88407c">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref cite link</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: cite</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
cite:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read
<span class="org-string">"bibtex key: "</span>
(let ((bibtex-files (org-ref-find-bibliography)))(bibtex-global-key-alist)))}
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb1f5cdc" class="outline-3">
<h3 id="orgb1f5cdc">Ref</h3>
<div class="outline-text-3" id="text-orgb1f5cdc">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">name: org-ref ref link with completion</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">key: ref</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
ref:${<span class="org-highlight-numbers-number">1</span>:$$(completing-read <span class="org-string">"label: "</span> (org-ref-get-labels))}
</pre>
</div>
</div>
</div>
<div id="outline-container-org8b9dce1" class="outline-3">
<h3 id="org8b9dce1">Beamer - CBOX</h3>
<div class="outline-text-3" id="text-org8b9dce1">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Beamer Custom Box</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
*** ${<span class="org-highlight-numbers-number">1</span>:@@latex:@@} :B_cbox:
,:PROPERTIES:
:BEAMER_env: cbox
:BEAMER_opt: {${<span class="org-highlight-numbers-number">2</span>:blue}}{${<span class="org-highlight-numbers-number">3</span>:ams nodisplayskip}}
:END:
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org68eb2b6" class="outline-3">
<h3 id="org68eb2b6">HTML Details</h3>
<div class="outline-text-3" id="text-org68eb2b6">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :details</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: &lt;details&gt;&lt;summary&gt;${1:Figure}&lt;/summary&gt;</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+HTML: &lt;/details&gt;</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc76873e" class="outline-3">
<h3 id="orgc76873e">Code</h3>
<div class="outline-text-3" id="text-orgc76873e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Code</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${1:Listing Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+label: lst:${2:listing_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src ${3:listing_language}</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf39e79c" class="outline-3">
<h3 id="orgf39e79c">Equation</h3>
<div class="outline-text-3" id="text-orgf39e79c">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Equation</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: eq:${1:equation_name}</span>
\begin{equation}
$0
\end{equation}
</pre>
</div>
</div>
</div>
<div id="outline-container-orge17a1a2" class="outline-3">
<h3 id="orge17a1a2">Figure</h3>
<div class="outline-text-3" id="text-orge17a1a2">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Figure caption}</span>
[[file:${<span class="org-highlight-numbers-number">3</span>:figs/}$1.${<span class="org-highlight-numbers-number">4</span>:pdf}]]
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org1ddfd44" class="outline-3">
<h3 id="org1ddfd44">Frac</h3>
<div class="outline-text-3" id="text-org1ddfd44">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :LaTeX Fraction</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\frac{$1}{$2} $0
</pre>
</div>
</div>
</div>
<div id="outline-container-org400ff8e" class="outline-3">
<h3 id="org400ff8e">Left</h3>
<div class="outline-text-3" id="text-org400ff8e">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Left Right mathematical delimitations</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
\left$1 $0 \right$2
</pre>
</div>
</div>
</div>
<div id="outline-container-org234e84f" class="outline-3">
<h3 id="org234e84f">Minipage</h3>
<div class="outline-text-3" id="text-org234e84f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :minipage</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{<span class="org-highlight-numbers-number">0.49</span>\linewidth}
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float nil :width 0.95\linewidth</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
\end{minipage}%
\hfill%
\begin{minipage}[t]{<span class="org-highlight-numbers-number">0.49</span>\linewidth}
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float nil :width 0.95\linewidth</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+BEGIN_EXPORT latex</span>
\end{minipage}
\end{figure}
<span class="org-comment-delimiter">#</span><span class="org-comment">+END_EXPORT</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb7becfc" class="outline-3">
<h3 id="orgb7becfc">Minipage Figures</h3>
<div class="outline-text-3" id="text-orgb7becfc">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Minipage with Figures</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [t]{${3:0.5\linewidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_minipage</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: ${4::width \linewidth} :float nil</span>
[[file:figs/${<span class="org-highlight-numbers-number">1</span>:figure_name}.pdf]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_minipage</span>
\hfill
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options [t]{${7:0.5\linewidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_minipage</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${6:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: ${8::width \linewidth} :float nil</span>
[[file:figs/${<span class="org-highlight-numbers-number">5</span>:figure_name}.pdf]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_minipage</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org630b3de" class="outline-3">
<h3 id="org630b3de">Wrap Figure</h3>
<div class="outline-text-3" id="text-org630b3de">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :options {${1:rl}}{${2:0.45\textwidth}}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_wrapfigure</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :${3:width \linewidth}</span>
[[file:figs/${<span class="org-highlight-numbers-number">4</span>:figure_name.pdf}]]
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_wrapfigure</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org8aa2d33" class="outline-3">
<h3 id="org8aa2d33">Multicolumn</h3>
<div class="outline-text-3" id="text-org8aa2d33">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Multcolumn</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float multicolumn</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb5c8c67" class="outline-3">
<h3 id="orgb5c8c67">Subfigure</h3>
<div class="outline-text-3" id="text-orgb5c8c67">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Subfigure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:figure caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :environment subfigure :width 0.49\linewidth :align c</span>
| file:${<span class="org-highlight-numbers-number">3</span>:sub_fig_name}.${<span class="org-highlight-numbers-number">4</span>:pdf} | file:${<span class="org-highlight-numbers-number">5</span>:sub_fig_name}.${<span class="org-highlight-numbers-number">6</span>:pdf} |
| &lt;&lt;fig:$3&gt;&gt; ${<span class="org-highlight-numbers-number">7</span>:sub figure caption} | &lt;&lt;fig:$5&gt;&gt; ${<span class="org-highlight-numbers-number">8</span>:sub figure caption} |
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orga9aa801" class="outline-3">
<h3 id="orga9aa801">Table</h3>
<div class="outline-text-3" id="text-orga9aa801">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Table</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: tab:${1:table_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: ${2:Table caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :environment tabularx :width ${3:\linewidth} :align ${4:lXX}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :center t :booktabs t :float t</span>
| $0 | | |
|---+---+---|
| | | |
</pre>
</div>
</div>
</div>
<div id="outline-container-org2604457" class="outline-3">
<h3 id="org2604457">Tikz</h3>
<div class="outline-text-3" id="text-org2604457">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both</span>
\begin{tikzpicture}
$0
\end{tikzpicture}
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf6eeddb" class="outline-3">
<h3 id="orgf6eeddb">Tikzfig</h3>
<div class="outline-text-3" id="text-orgf6eeddb">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+NAME: fig:${1:figure_name}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :headers '("\\\\usepackage{tikz}" "\\\\usepackage{import}" "\\\\import{$HOME/Cloud/thesis/LaTeX/}{config.tex}")</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :imagemagick t :fit yes :iminoptions -scale 100% -density 150 :imoutoptions -quality 100</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :results raw replace :buffer no :eval no-export :exports both :mkdirp yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+HEADER: :output-dir ${2:figs}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file $1.pdf :post pdf2svg(file=*this*, ext="png") :exports both</span>
\begin{tikzpicture}
$0
\end{tikzpicture}
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+NAME: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+CAPTION: ${3:Caption}</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS: fig:$1</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgba1d993" class="outline-3">
<h3 id="orgba1d993">Tikzheader</h3>
<div class="outline-text-3" id="text-orgba1d993">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Tikz Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Title/Description of the figure}
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src latex :file ${2:figure_name}.pdf :tangle figs/$2.tex :exports ${3:both}</span>
\begin{tikzpicture}
$0
\end{tikzpicture}
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$2</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $1 ([[./figs/$2.png][png]], [[./figs/$2.pdf][pdf]], [[./figs/$2.tex][tex]]).</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS:</span>
[<span class="org-type">[file:./figs/$2.png]</span>]
</pre>
</div>
</div>
</div>
<div id="outline-container-org040faef" class="outline-3">
<h3 id="org040faef">User-config</h3>
<div class="outline-text-3" id="text-org040faef">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">-*- mode: snippet -*-</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">name: user-config</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">key: uc</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src emacs-lisp :tangle user-config.el</span>
$1
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org349c757" class="outline-3">
<h3 id="org349c757">User-init</h3>
<div class="outline-text-3" id="text-org349c757">
<p>
#+begin_src conf :tangle ~/.config/doom/snippets/org-mode/user-init
</p>
<p>
,#+begin_src emacs-lisp :tangle user-init.el
$1
,#+end_src
#+end_Sec
</p>
</div>
</div>
<div id="outline-container-org951f3c0" class="outline-3">
<h3 id="org951f3c0">Wrap</h3>
<div class="outline-text-3" id="text-org951f3c0">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Wrap</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+attr_latex: :float wrap</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbd116e3" class="outline-3">
<h3 id="orgbd116e3">Matlab Specific</h3>
<div class="outline-text-3" id="text-orgbd116e3">
</div>
<div id="outline-container-orge0eecad" class="outline-4">
<h4 id="orge0eecad">Mconfig</h4>
<div class="outline-text-4" id="text-orge0eecad">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Configuration-Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab :session *MATLAB*</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :tangle ${1:filename}.m</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :comments org</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :exports both</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :results none</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :eval no-export</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :noweb yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :mkdirp yes</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+PROPERTY: header-args:matlab+ :output-dir ${2:figs}</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org494be3f" class="outline-4">
<h4 id="org494be3f">Mdescription</h4>
<div class="outline-text-4" id="text-org494be3f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Measurement-Description</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* Measurement description
** Setup :ignore:
*Setup*:
** Goal :ignore:
*Goal*:
** Measurements :ignore:
*Measurements*:
Three measurements are done:
| Measurement File | Description |
|-------------------------+------------------------------|
<span class="org-variable-name">|</span> =mat/data_${<span class="org-highlight-numbers-number">1</span>:<span class="org-highlight-numbers-number">001</span>}.mat= | $2 |
<span class="org-variable-name">Each of the measurement</span> =mat= file contains one =data= array with <span class="org-highlight-numbers-number">3</span> columns:
| Column number | Description |
|---------------+-------------------|
| <span class="org-highlight-numbers-number">1</span> | $3 |
| <span class="org-highlight-numbers-number">2</span> | $4 |
| <span class="org-highlight-numbers-number">3</span> | Time |
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org2c8a3d2" class="outline-4">
<h4 id="org2c8a3d2">Mfigure</h4>
<div class="outline-text-4" id="text-org2c8a3d2">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Figure</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :tangle no :exports results :results file replace</span>
exportFig(<span class="org-string">'figs/${1:filename}.pdf'</span>, <span class="org-string">'width'</span>, <span class="org-string">'${2:full}'</span>, <span class="org-string">'height'</span>, <span class="org-string">'${3:full}'</span>);
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+name: fig:$1</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+caption: $0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+RESULTS:</span>
[<span class="org-type">[file:figs/$1.png]</span>]
</pre>
</div>
</div>
</div>
<div id="outline-container-org21ef93d" class="outline-4">
<h4 id="org21ef93d">Mfunction</h4>
<div class="outline-text-4" id="text-org21ef93d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Function</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Function Name}
:PROPERTIES:
:header-args:matlab+: :tangle src/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
:header-args:matlab+: :comments none :mkdirp yes :eval no
:END:
&lt;&lt;sec:$2&gt;&gt;
This Matlab function is accessible [[file:src/$2.m][here]].
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab</span>
<span class="org-variable-name">function </span>[${<span class="org-highlight-numbers-number">4</span>:in_data}] = $2(${<span class="org-highlight-numbers-number">3</span>:in_data})
% $2 - $0
%
<span class="org-variable-name">% Syntax: </span>[<span class="org-constant">$4</span>] = $2($3)
%
% Inputs:
% - $3 -
%
% Outputs:
% - $4 -
end
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org8920992" class="outline-4">
<h4 id="org8920992">Mheader</h4>
<div class="outline-text-4" id="text-org8920992">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Header</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
* ${<span class="org-highlight-numbers-number">1</span>:Heading Name}
:PROPERTIES:
:header-args:matlab+: :tangle matlab/${<span class="org-highlight-numbers-number">2</span>:matlab_file_name}.m
:header-args:matlab+: :comments org :mkdirp yes
:END:
&lt;&lt;sec:$2&gt;&gt;
** ZIP file containing the data and matlab files :ignore:
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :exports none :results none</span>
if [ matlab/$2.m -nt data/$2.zip ]; then
cp matlab/$2.m $2.m;
zip data/$2 \
mat/data.mat \
$2.m
rm $2.m;
fi
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_note</span>
All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_note</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-orgec784e2" class="outline-4">
<h4 id="orgec784e2">Minit</h4>
<div class="outline-text-4" id="text-orgec784e2">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Init</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
** Matlab Init :noexport:ignore:
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)</span>
&lt;&lt;matlab-dir&gt;&gt;
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :exports none :results silent :noweb yes</span>
&lt;&lt;matlab-init&gt;&gt;
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org27df014" class="outline-4">
<h4 id="org27df014">Mtable</h4>
<div class="outline-text-4" id="text-org27df014">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Table</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)</span>
data2orgtable(${<span class="org-highlight-numbers-number">1</span>:data}, {${<span class="org-highlight-numbers-number">2</span>:<span class="org-string">'rowlabel'</span>}}, {${<span class="org-highlight-numbers-number">3</span>:<span class="org-string">'collabel'</span>}}, <span class="org-string">' %.1f '</span>);
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
$0
</pre>
</div>
</div>
</div>
<div id="outline-container-org31ef31f" class="outline-4">
<h4 id="org31ef31f">Mvalue</h4>
<div class="outline-text-4" id="text-org31ef31f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Matlab-Value</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src matlab :results value replace :exports results :tangle no</span>
sprintf(<span class="org-string">'x = %.2g'</span>, x);
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
$0
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org143de42" class="outline-3">
<h3 id="org143de42">Binary</h3>
<div class="outline-text-3" id="text-org143de42">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">contributor : Thomas Dehaeze <a href="mailto:dehaeze.thomas%40gmail.com">&lt;dehaeze.thomas@gmail.com&gt;</a></span>
<span class="org-comment-delimiter">#</span><span class="org-comment">name :Binary</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">--</span>
<span class="org-variable-name">*</span> =${<span class="org-highlight-numbers-number">1</span>:binary-name}= - ${<span class="org-highlight-numbers-number">2</span>:Description}
:PROPERTIES:
:CUSTOM_ID: $1
:END:
<span class="org-comment-delimiter">#</span><span class="org-comment">+begin_src bash :tangle ~/.local/bin/$1</span>
$0
<span class="org-comment-delimiter">#</span><span class="org-comment">+end_src</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-11 lun. 14:50</p>
</div>
</body>
</html>

BIN
docs/figs/mermaid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-08 ven. 01:40 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Git Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,33 +22,34 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org41626fa">Gitconfig</a>
<li><a href="#org5614967"><code>~/.gitconfig</code></a>
<ul>
<li><a href="#org9dadb2d">Aliases</a></li>
<li><a href="#org9891923">Apply</a></li>
<li><a href="#org3d3c60c">Colors</a></li>
<li><a href="#org005e9ea">Default Remote</a></li>
<li><a href="#org27b5c46">Push Configuration</a></li>
<li><a href="#org8e4fe7a">User</a></li>
<li><a href="#org437daae">Core configuration</a></li>
<li><a href="#org39b3cb9">Credentials using pass</a></li>
<li><a href="#org02367c3">Diff-so-fancy</a></li>
<li><a href="#org599c398">Github</a></li>
<li><a href="#orgf8c42c0">Aliases</a></li>
<li><a href="#org68a5de1">Apply</a></li>
<li><a href="#org9b46df2">Colors</a></li>
<li><a href="#org5369e22">Default Remote</a></li>
<li><a href="#orgf523602">Push Configuration</a></li>
<li><a href="#org72a2b70">User</a></li>
<li><a href="#orgf768784">Core configuration</a></li>
<li><a href="#org5cda35d">Credentials using pass</a></li>
<li><a href="#orgae60316">Diff-so-fancy</a></li>
<li><a href="#orgdcb66f1">Github</a></li>
</ul>
</li>
<li><a href="#org3e19276">Global Git Ignore</a></li>
<li><a href="#orgf329fb1"><code>~/.gitignore_global</code> - Global Git Ignore</a></li>
<li><a href="#org5af3f72"><code>pass-git-helper</code> - Use <code>pass</code> for git passwords</a></li>
</ul>
</div>
</div>
<div id="outline-container-org41626fa" class="outline-2">
<h2 id="org41626fa">Gitconfig</h2>
<div class="outline-text-2" id="text-org41626fa">
<div id="outline-container-org5614967" class="outline-2">
<h2 id="org5614967"><code>~/.gitconfig</code></h2>
<div class="outline-text-2" id="text-org5614967">
</div>
<div id="outline-container-org9dadb2d" class="outline-3">
<h3 id="org9dadb2d">Aliases</h3>
<div class="outline-text-3" id="text-org9dadb2d">
<div id="outline-container-orgf8c42c0" class="outline-3">
<h3 id="orgf8c42c0">Aliases</h3>
<div class="outline-text-3" id="text-orgf8c42c0">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">alias</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">View abbreviated SHA, description, and history graph of the latest 20 commits</span>
@ -361,9 +126,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org9891923" class="outline-3">
<h3 id="org9891923">Apply</h3>
<div class="outline-text-3" id="text-org9891923">
<div id="outline-container-org68a5de1" class="outline-3">
<h3 id="org68a5de1">Apply</h3>
<div class="outline-text-3" id="text-org68a5de1">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">apply</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Detect whitespace errors when applying a patch</span>
@ -373,9 +138,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org3d3c60c" class="outline-3">
<h3 id="org3d3c60c">Colors</h3>
<div class="outline-text-3" id="text-org3d3c60c">
<div id="outline-container-org9b46df2" class="outline-3">
<h3 id="org9b46df2">Colors</h3>
<div class="outline-text-3" id="text-org9b46df2">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">color</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Use colors in Git commands that are capable of colored output when outputting to the terminal</span>
@ -409,9 +174,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org005e9ea" class="outline-3">
<h3 id="org005e9ea">Default Remote</h3>
<div class="outline-text-3" id="text-org005e9ea">
<div id="outline-container-org5369e22" class="outline-3">
<h3 id="org5369e22">Default Remote</h3>
<div class="outline-text-3" id="text-org5369e22">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use `origin` as the default remote on the `master` branch in all cases</span>
[branch <span class="org-string">"master"</span>]
@ -422,9 +187,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org27b5c46" class="outline-3">
<h3 id="org27b5c46">Push Configuration</h3>
<div class="outline-text-3" id="text-org27b5c46">
<div id="outline-container-orgf523602" class="outline-3">
<h3 id="orgf523602">Push Configuration</h3>
<div class="outline-text-3" id="text-orgf523602">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">push</span>]
<span class="org-variable-name">default</span> = matching
@ -435,9 +200,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org8e4fe7a" class="outline-3">
<h3 id="org8e4fe7a">User</h3>
<div class="outline-text-3" id="text-org8e4fe7a">
<div id="outline-container-org72a2b70" class="outline-3">
<h3 id="org72a2b70">User</h3>
<div class="outline-text-3" id="text-org72a2b70">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">user</span>]
<span class="org-variable-name">name</span> = Thomas Dehaeze
@ -447,9 +212,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org437daae" class="outline-3">
<h3 id="org437daae">Core configuration</h3>
<div class="outline-text-3" id="text-org437daae">
<div id="outline-container-orgf768784" class="outline-3">
<h3 id="orgf768784">Core configuration</h3>
<div class="outline-text-3" id="text-orgf768784">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">core</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Use custom `.gitignore` and `.gitattributes`</span>
@ -475,23 +240,29 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org39b3cb9" class="outline-3">
<h3 id="org39b3cb9">Credentials using pass</h3>
<div class="outline-text-3" id="text-org39b3cb9">
<div id="outline-container-org5cda35d" class="outline-3">
<h3 id="org5cda35d">Credentials using pass</h3>
<div class="outline-text-3" id="text-org5cda35d">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">credential</span>]
<span class="org-variable-name">helper</span> = !pass-git-helper $@
[credential <span class="org-string">"https://github.com"</span>]
<span class="org-variable-name">username</span> = tdehaeze
[credential <span class="org-string">"https://git.tdehaeze.xyz"</span>]
<span class="org-variable-name">username</span> = tdehaeze
[credential <span class="org-string">"https://gitlab.esrf.fr"</span>]
<span class="org-variable-name">username</span> = dehaeze
</pre>
</div>
</div>
</div>
<div id="outline-container-org02367c3" class="outline-3">
<h3 id="org02367c3">Diff-so-fancy</h3>
<div class="outline-text-3" id="text-org02367c3">
<div id="outline-container-orgae60316" class="outline-3">
<h3 id="orgae60316">Diff-so-fancy</h3>
<div class="outline-text-3" id="text-orgae60316">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">diff-so-fancy</span>]
<span class="org-variable-name">markEmptyLines</span> = false
@ -500,9 +271,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org599c398" class="outline-3">
<h3 id="org599c398">Github</h3>
<div class="outline-text-3" id="text-org599c398">
<div id="outline-container-orgdcb66f1" class="outline-3">
<h3 id="orgdcb66f1">Github</h3>
<div class="outline-text-3" id="text-orgdcb66f1">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">github</span>]
<span class="org-variable-name">user</span> = tdehaeze
@ -513,9 +284,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org3e19276" class="outline-2">
<h2 id="org3e19276">Global Git Ignore</h2>
<div class="outline-text-2" id="text-org3e19276">
<div id="outline-container-orgf329fb1" class="outline-2">
<h2 id="orgf329fb1"><code>~/.gitignore_global</code> - Global Git Ignore</h2>
<div class="outline-text-2" id="text-orgf329fb1">
<div class="org-src-container">
<pre class="src src-conf">*~
.DS_Store
@ -524,10 +295,27 @@ Session.vim
</div>
</div>
</div>
<div id="outline-container-org5af3f72" class="outline-2">
<h2 id="org5af3f72"><code>pass-git-helper</code> - Use <code>pass</code> for git passwords</h2>
<div class="outline-text-2" id="text-org5af3f72">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">github.com*</span>]
<span class="org-variable-name">target</span>=github.com/tdehaeze
[<span class="org-type">git.tdehaeze.xyz*</span>]
<span class="org-variable-name">target</span>=git.tdehaeze.xyz/tdehaeze
[<span class="org-type">gitlab.esrf.fr*</span>]
<span class="org-variable-name">target</span>=gitlab.esrf.fr/dehaeze
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-08 ven. 01:40</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GTK Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,15 +22,15 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org52b8984">GTK-2.0</a></li>
<li><a href="#orgd55a07a">GTK-3.0</a></li>
<li><a href="#org2335e48">GTK-2.0</a></li>
<li><a href="#org1e15503">GTK-3.0</a></li>
</ul>
</div>
</div>
<div id="outline-container-org52b8984" class="outline-2">
<h2 id="org52b8984">GTK-2.0</h2>
<div class="outline-text-2" id="text-org52b8984">
<div id="outline-container-org2335e48" class="outline-2">
<h2 id="org2335e48">GTK-2.0</h2>
<div class="outline-text-2" id="text-org2335e48">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">gtk-theme-name</span>=<span class="org-string">"Arc-Dark"</span>
<span class="org-variable-name">gtk-icon-theme-name</span>=<span class="org-string">"Arc"</span>
@ -288,9 +52,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-orgd55a07a" class="outline-2">
<h2 id="orgd55a07a">GTK-3.0</h2>
<div class="outline-text-2" id="text-orgd55a07a">
<div id="outline-container-org1e15503" class="outline-2">
<h2 id="org1e15503">GTK-3.0</h2>
<div class="outline-text-2" id="text-org1e15503">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Settings</span>]
<span class="org-variable-name">gtk-theme-name</span>=Arc-Dark
@ -315,7 +79,7 @@ for the JavaScript code in this tag.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-22 dim. 23:04 -->
<!-- 2021-05-02 dim. 11:26 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>I3 Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,37 +22,36 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgfa3a84a">Mod Key</a></li>
<li><a href="#org6e4f11a">Border Style</a></li>
<li><a href="#orgb3d9c62">Font for window titles</a></li>
<li><a href="#orge2dfbd2">Colors Variables</a></li>
<li><a href="#orgec5c654">Theme colors</a></li>
<li><a href="#orgc470b91">Various Config</a></li>
<li><a href="#orgb1cbca7">Border</a></li>
<li><a href="#org92d84a9">Settings for i3-gaps</a></li>
<li><a href="#org1a7f35c">Workspace names</a></li>
<li><a href="#orgf10c4f1">Use Mouse+$mod to drag floating windows</a></li>
<li><a href="#org445b64b">Back and Forth</a></li>
<li><a href="#orgccf5527">Application Specific</a>
<li><a href="#org603bb02">Mod Key</a></li>
<li><a href="#org2de16b4">Border Style</a></li>
<li><a href="#org27e86ae">Font for window titles</a></li>
<li><a href="#org4f1f60d">Colors Variables</a></li>
<li><a href="#org8584048">Theme colors</a></li>
<li><a href="#org18772b2">Various Config</a></li>
<li><a href="#orgf5906b7">Border</a></li>
<li><a href="#org62f5712">Settings for i3-gaps</a></li>
<li><a href="#org1cf1b72">Workspace names</a></li>
<li><a href="#orgf10019f">Use Mouse+$mod to drag floating windows</a></li>
<li><a href="#orgfacf655">Back and Forth</a></li>
<li><a href="#org4ec8a79">Application Specific</a>
<ul>
<li><a href="#orgec227a1">Open applications on specific workspaces</a></li>
<li><a href="#org05defe1">Open specific applications in floating mode</a></li>
<li><a href="#org0d33818">Open applications on specific workspaces</a></li>
<li><a href="#org859f93b">Open specific applications in floating mode</a></li>
</ul>
</li>
<li><a href="#org6aa38e9">Scratchpad</a></li>
<li><a href="#orgff12892">Run Polybar and SXHKD</a></li>
<li><a href="#org9247875">Scratchpad</a></li>
<li><a href="#org416cf01">Run Polybar and SXHKD</a></li>
</ul>
</div>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">i3 config file (v4)</span>
</pre>
</div>
<div id="outline-container-orgfa3a84a" class="outline-2">
<h2 id="orgfa3a84a">Mod Key</h2>
<div class="outline-text-2" id="text-orgfa3a84a">
<div id="outline-container-org603bb02" class="outline-2">
<h2 id="org603bb02">Mod Key</h2>
<div class="outline-text-2" id="text-org603bb02">
<p>
Set mod key (Mod1=&lt;Alt&gt;, Mod4=&lt;Super&gt;)
</p>
@ -299,9 +62,9 @@ Set mod key (Mod1=&lt;Alt&gt;, Mod4=&lt;Super&gt;)
</div>
</div>
<div id="outline-container-org6e4f11a" class="outline-2">
<h2 id="org6e4f11a">Border Style</h2>
<div class="outline-text-2" id="text-org6e4f11a">
<div id="outline-container-org2de16b4" class="outline-2">
<h2 id="org2de16b4">Border Style</h2>
<div class="outline-text-2" id="text-org2de16b4">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use custom colors for black</span>
new_window pixel <span class="org-highlight-numbers-number">1</span>
@ -319,9 +82,9 @@ Hide borders
</div>
</div>
<div id="outline-container-orgb3d9c62" class="outline-2">
<h2 id="orgb3d9c62">Font for window titles</h2>
<div class="outline-text-2" id="text-orgb3d9c62">
<div id="outline-container-org27e86ae" class="outline-2">
<h2 id="org27e86ae">Font for window titles</h2>
<div class="outline-text-2" id="text-org27e86ae">
<div class="org-src-container">
<pre class="src src-conf">font Hack Nerd Font <span class="org-highlight-numbers-number">11</span>
</pre>
@ -329,9 +92,9 @@ Hide borders
</div>
</div>
<div id="outline-container-orge2dfbd2" class="outline-2">
<h2 id="orge2dfbd2">Colors Variables</h2>
<div class="outline-text-2" id="text-orge2dfbd2">
<div id="outline-container-org4f1f60d" class="outline-2">
<h2 id="org4f1f60d">Colors Variables</h2>
<div class="outline-text-2" id="text-org4f1f60d">
<div class="org-src-container">
<pre class="src src-conf">set_from_resource $bg color0 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
set_from_resource $darkred color1 <span class="org-comment-delimiter">#</span><span class="org-comment">000000</span>
@ -354,9 +117,9 @@ set_from_resource $fg color15 <span class="org-comment-delimiter">#</spa
</div>
</div>
<div id="outline-container-orgec5c654" class="outline-2">
<h2 id="orgec5c654">Theme colors</h2>
<div class="outline-text-2" id="text-orgec5c654">
<div id="outline-container-org8584048" class="outline-2">
<h2 id="org8584048">Theme colors</h2>
<div class="outline-text-2" id="text-org8584048">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">class border backgr. text indic. child_border</span>
client.focused $darkaqua $darkaqua $fg $bg
@ -370,9 +133,9 @@ client.background $bg
</div>
</div>
<div id="outline-container-orgc470b91" class="outline-2">
<h2 id="orgc470b91">Various Config</h2>
<div class="outline-text-2" id="text-orgc470b91">
<div id="outline-container-org18772b2" class="outline-2">
<h2 id="org18772b2">Various Config</h2>
<div class="outline-text-2" id="text-org18772b2">
<p>
Layout mode for new containers
</p>
@ -388,9 +151,9 @@ Layout mode for new containers
</div>
</div>
<div id="outline-container-orgb1cbca7" class="outline-2">
<h2 id="orgb1cbca7">Border</h2>
<div class="outline-text-2" id="text-orgb1cbca7">
<div id="outline-container-orgf5906b7" class="outline-2">
<h2 id="orgf5906b7">Border</h2>
<div class="outline-text-2" id="text-orgf5906b7">
<div class="org-src-container">
<pre class="src src-conf">default_border pixel <span class="org-highlight-numbers-number">1</span>
</pre>
@ -398,14 +161,9 @@ Layout mode for new containers
</div>
</div>
<div id="outline-container-org92d84a9" class="outline-2">
<h2 id="org92d84a9">Settings for i3-gaps</h2>
<div class="outline-text-2" id="text-org92d84a9">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">for_window [class=".*"] border pixel 0</span>
</pre>
</div>
<div id="outline-container-org62f5712" class="outline-2">
<h2 id="org62f5712">Settings for i3-gaps</h2>
<div class="outline-text-2" id="text-org62f5712">
<div class="org-src-container">
<pre class="src src-conf">gaps inner <span class="org-highlight-numbers-number">10</span>
gaps outer <span class="org-highlight-numbers-number">2</span>
@ -414,9 +172,9 @@ gaps outer <span class="org-highlight-numbers-number">2</span>
</div>
</div>
<div id="outline-container-org1a7f35c" class="outline-2">
<h2 id="org1a7f35c">Workspace names</h2>
<div class="outline-text-2" id="text-org1a7f35c">
<div id="outline-container-org1cf1b72" class="outline-2">
<h2 id="org1cf1b72">Workspace names</h2>
<div class="outline-text-2" id="text-org1cf1b72">
<p>
To display names or symbols instead of plain workspace numbers you can use something like: <code>set $ws1 1:mail</code> and <code>set $ws2 2:</code>.
</p>
@ -435,9 +193,9 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
</div>
</div>
<div id="outline-container-orgf10c4f1" class="outline-2">
<h2 id="orgf10c4f1">Use Mouse+$mod to drag floating windows</h2>
<div class="outline-text-2" id="text-orgf10c4f1">
<div id="outline-container-orgf10019f" class="outline-2">
<h2 id="orgf10019f">Use Mouse+$mod to drag floating windows</h2>
<div class="outline-text-2" id="text-orgf10019f">
<div class="org-src-container">
<pre class="src src-conf">floating_modifier $mod
</pre>
@ -445,9 +203,9 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
</div>
</div>
<div id="outline-container-org445b64b" class="outline-2">
<h2 id="org445b64b">Back and Forth</h2>
<div class="outline-text-2" id="text-org445b64b">
<div id="outline-container-orgfacf655" class="outline-2">
<h2 id="orgfacf655">Back and Forth</h2>
<div class="outline-text-2" id="text-orgfacf655">
<div class="org-src-container">
<pre class="src src-conf">workspace_auto_back_and_forth yes
</pre>
@ -455,13 +213,13 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
</div>
</div>
<div id="outline-container-orgccf5527" class="outline-2">
<h2 id="orgccf5527">Application Specific</h2>
<div class="outline-text-2" id="text-orgccf5527">
<div id="outline-container-org4ec8a79" class="outline-2">
<h2 id="org4ec8a79">Application Specific</h2>
<div class="outline-text-2" id="text-org4ec8a79">
</div>
<div id="outline-container-orgec227a1" class="outline-3">
<h3 id="orgec227a1">Open applications on specific workspaces</h3>
<div class="outline-text-3" id="text-orgec227a1">
<div id="outline-container-org0d33818" class="outline-3">
<h3 id="org0d33818">Open applications on specific workspaces</h3>
<div class="outline-text-3" id="text-org0d33818">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">assign[title</span>=<span class="org-string">"^Fig"</span>] $ws6 <span class="org-comment-delimiter"># </span><span class="org-comment">Matlab Figures</span>
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Fig"</span>] layout tabbed
@ -471,32 +229,38 @@ set $ws8 <span class="org-highlight-numbers-number">8</span>
</div>
</div>
<div id="outline-container-org05defe1" class="outline-3">
<h3 id="org05defe1">Open specific applications in floating mode</h3>
<div class="outline-text-3" id="text-org05defe1">
<div id="outline-container-org859f93b" class="outline-3">
<h3 id="org859f93b">Open specific applications in floating mode</h3>
<div class="outline-text-3" id="text-org859f93b">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">for_window [title</span>=<span class="org-string">"File Transfer*"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"GParted"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lightdm-settings"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Lxappearance"</span>] floating enable sticky enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Pavucontrol"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Arandr"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Simple-scan"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"(?i)System-config-printer.py"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Xfburn"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"^Documentation -"</span>] floating enable border normal
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Yad"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Bluetooth Devices"</span>] floating enable
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Simulink Library Browser"</span>] floating enable
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Floating"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">460</span>
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"mpv"</span>] floating enable <span class="org-comment-delimiter"># </span><span class="org-comment">Size/Position is defined in mpv.conf</span>
<span class="org-variable-name">for_window [class</span>=<span class="org-string">"Sxiv"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"khal interactive"</span>] floating enable, resize set <span class="org-highlight-numbers-number">600</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"ncmpcpp"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">400</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"nmtui"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"linkding"</span>] floating enable, resize set <span class="org-highlight-numbers-number">800</span> <span class="org-highlight-numbers-number">600</span>, move position center
<span class="org-variable-name">for_window [title</span>=<span class="org-string">"Xournal"</span>] floating enable, resize set <span class="org-highlight-numbers-number">1100</span> <span class="org-highlight-numbers-number">750</span>, move position center
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org6aa38e9" class="outline-2">
<h2 id="org6aa38e9">Scratchpad</h2>
<div class="outline-text-2" id="text-org6aa38e9">
<div id="outline-container-org9247875" class="outline-2">
<h2 id="org9247875">Scratchpad</h2>
<div class="outline-text-2" id="text-org9247875">
<p>
Move the currently focused window to the scratchpad
</p>
@ -516,12 +280,12 @@ If there are multiple scratchpad windows, this command cycles through them.
</div>
</div>
<div id="outline-container-orgff12892" class="outline-2">
<h2 id="orgff12892">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-orgff12892">
<div id="outline-container-org416cf01" class="outline-2">
<h2 id="org416cf01">Run Polybar and SXHKD</h2>
<div class="outline-text-2" id="text-org416cf01">
<div class="org-src-container">
<pre class="src src-conf">exec --no-startup-id sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc.i3
exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
exec --no-startup-id polybar top &gt;&gt;/tmp/polybar.log 2&gt;&amp;1 &amp;
</pre>
</div>
</div>
@ -529,7 +293,7 @@ exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-22 dim. 23:04</p>
<p class="date">Created: 2021-05-02 dim. 11:26</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-19 jeu. 10:39 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SXIV Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -232,7 +18,6 @@
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">SXIV Configuration</h1>
<p>
Press <code>C-x</code> to activate to key handler.
</p>
@ -247,8 +32,6 @@ do
convert -rotate <span class="org-highlight-numbers-number">90</span> <span class="org-string">"$file"</span> <span class="org-string">"$file"</span> ;;
<span class="org-string">"C-c"</span>)
echo -n <span class="org-string">"$file"</span> | xsel -ib ;;
<span class="org-string">"C-w"</span>)
nitrogen --save --set-zoom-fill <span class="org-string">"$file"</span> ;;
esac
done
</pre>
@ -256,7 +39,7 @@ done
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-19 jeu. 10:39</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

View File

@ -1,229 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-19 jeu. 10:46 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dotfiles - Manjaro Linux</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
<style> #content {margin: auto;} </style>
</head>
<body>
<div id="org-div-home-and-up">
@ -232,30 +19,13 @@
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Dotfiles - Manjaro Linux</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org89a0ea9">Desktop Configuration</a></li>
<li><a href="#org22f70c7">Editors</a></li>
<li><a href="#org99ffc6f">Command Line</a></li>
<li><a href="#org6ff2572">Multimedia</a></li>
<li><a href="#org6a08a41">Internet Related</a></li>
<li><a href="#org9464949">PDF Reader</a></li>
<li><a href="#org646a012">File Managers</a></li>
<li><a href="#orgbbc0114">Organization</a></li>
<li><a href="#orgcc9e876">Others</a></li>
</ul>
</div>
</div>
<p>
The general installation process is described <a href="install.html">here</a>.
The general installation procedure is described <a href="install.html">here</a>.
</p>
<div id="outline-container-org89a0ea9" class="outline-2">
<h2 id="org89a0ea9">Desktop Configuration</h2>
<div class="outline-text-2" id="text-org89a0ea9">
<p>
There are Specific configuration files for:
</p>
<ul class="org-ul">
<li><b>Windows Manager</b>: <a href="bspwm.html">BSPWM</a> and <a href="i3.html">I3</a></li>
<li><b>Hotkey Manager</b>: <a href="sxhkd.html">SXHKD</a></li>
@ -264,102 +34,39 @@ The general installation process is described <a href="install.html">here</a>.
<li><b>Compositor</b>: <a href="compositor.html">Picom</a></li>
<li><b>Notification Manager</b>: <a href="notifications.html">Dunst</a></li>
<li><b>Service Manager</b>: <a href="systemd.html">Systemd</a></li>
<li><a href="xconfig.html">X configuration</a></li>
<li><b>Display Server</b>: <a href="xconfig.html">Xorg</a></li>
<li><b>Editors</b>: <a href="vim.html">Neovim</a> and <a href="./doom.html">Emacs (Doom)</a> (<a href="emacs-library-babel.html">library of babel</a>, <a href="emacs-snippets.html">snippets</a>)</li>
<li><b>Shell</b>: <a href="bash.html">Bash</a></li>
<li><b>Terminal Emulator</b>: <a href="termite.html">Termite</a></li>
<li><b>Terminal Multiplexer</b> <a href="tmux.html">Tmux</a></li>
<li><b>Image Setup</b>: <a href="image.html">Sxiv</a></li>
<li><b>Music Setup</b>: <a href="music.html">Ncmpcpp, Mopidy and Beets</a></li>
<li><b>Video Setup</b>: <a href="video.html">Mpv</a></li>
<li><b>Web Browser</b>: <a href="qutebrowser.html">Qutebrowser</a></li>
<li><b>PDF Reader</b>: <a href="zathura.html">Zathura</a></li>
<li><b>GUI File Manager</b>: <a href="pcmanfm.html">PCManFM</a></li>
<li><b>Terminal File Manager</b>: <a href="ranger.html">Ranger</a></li>
<li><b>Calendar and Contacts</b>: <a href="calendar-contact.html">Vdirsyncer, Khal and Khard</a></li>
<li><b>Mails</b>: <a href="mail.html">Mbsync, Msmtp, Mu and Neomutt</a></li>
<li><b>Contacts</b>: <a href="contacts.html">Khard</a></li>
<li><b>RSS-Reader</b>: <a href="newsboat.html">Newsboat</a></li>
<li><b>Version Control</b>: <a href="git.html">Git</a></li>
<li><b>Scripts</b>: <a href="binaries.html">Scripts</a></li>
<li><b>Desktop Applications</b>: <a href="applications.html">.desktop files</a></li>
<li><b>Computation</b>: <a href="matlab.html">Matlab</a></li>
<li><b>GUI Toolkit</b>: <a href="gtk.html">GTK</a></li>
<li><a href="config.html">Other Configurations</a> and some <a href="data.html">data</a></li>
</ul>
</div>
</div>
<div id="outline-container-org22f70c7" class="outline-2">
<h2 id="org22f70c7">Editors</h2>
<div class="outline-text-2" id="text-org22f70c7">
<p>
I also have:
</p>
<ul class="org-ul">
<li><a href="vim.html">Vim</a></li>
<li><a href="./doom.html">Doom Emacs</a></li>
<li>a nice Home-Server (<a href="nas.html">conf</a>)</li>
<li>a Linux smart-TV (<a href="smart-tv.html">conf</a>)</li>
<li>a Windows PC that I occasionally use (<a href="windows.html">conf</a>)</li>
<li>an Android phone (<a href="android.html">conf</a>)</li>
</ul>
</div>
</div>
<div id="outline-container-org99ffc6f" class="outline-2">
<h2 id="org99ffc6f">Command Line</h2>
<div class="outline-text-2" id="text-org99ffc6f">
<ul class="org-ul">
<li><a href="bash.html">Bash</a> and <a href="zsh.html">ZSH</a></li>
<li>Terminal: <a href="termite.html">Termite</a></li>
<li>Terminal Multiplexer <a href="tmux.html">TMUX</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6ff2572" class="outline-2">
<h2 id="org6ff2572">Multimedia</h2>
<div class="outline-text-2" id="text-org6ff2572">
<ul class="org-ul">
<li><a href="image.html">Image</a></li>
<li><a href="music.html">Music</a></li>
<li><a href="video.html">Video</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6a08a41" class="outline-2">
<h2 id="org6a08a41">Internet Related</h2>
<div class="outline-text-2" id="text-org6a08a41">
<ul class="org-ul">
<li>Web Browser: <a href="qutebrowser.html">Qutebrowser</a></li>
<li>Bookmark Manager: <a href="bookmarks.html">Buku</a></li>
</ul>
</div>
</div>
<div id="outline-container-org9464949" class="outline-2">
<h2 id="org9464949">PDF Reader</h2>
<div class="outline-text-2" id="text-org9464949">
<ul class="org-ul">
<li><a href="zathura.html">Zathura</a></li>
</ul>
</div>
</div>
<div id="outline-container-org646a012" class="outline-2">
<h2 id="org646a012">File Managers</h2>
<div class="outline-text-2" id="text-org646a012">
<ul class="org-ul">
<li>GUI: <a href="pcmanfm.html">Pcmanfm</a></li>
<li>Terminal based: <a href="ranger.html">Ranger</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgbbc0114" class="outline-2">
<h2 id="orgbbc0114">Organization</h2>
<div class="outline-text-2" id="text-orgbbc0114">
<ul class="org-ul">
<li><a href="calendar.html">Calendar</a></li>
<li><a href="mail.html">Mail</a></li>
<li><a href="contacts.html">Contacts</a></li>
<li>RSS-Reader: <a href="newsboat.html">Newsboat</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgcc9e876" class="outline-2">
<h2 id="orgcc9e876">Others</h2>
<div class="outline-text-2" id="text-orgcc9e876">
<ul class="org-ul">
<li><a href="applications.html">Desktop Applications</a></li>
<li><a href="matlab.html">Matlab</a></li>
<li>Some useful <a href="binaries.html">Binaries</a></li>
<li>Some useful <a href="scripts.html">Scripts</a></li>
<li><a href="git.html">Git</a> Configuration</li>
<li><a href="gtk.html">GTK</a></li>
<li><a href="config.html">Other Config</a></li>
</ul>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-19 jeu. 10:46</p>
</div>
</body>
</html>

130
docs/inkscape.html Normal file
View File

@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-01-01 ven. 20:09 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Inkscape</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Inkscape</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orge5e47be">Save Selection to SVG extension</a>
<ul>
<li><a href="#org74c03e7"><code>ink</code> file</a></li>
<li><a href="#org7f93603"><code>py</code> file</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orge5e47be" class="outline-2">
<h2 id="orge5e47be">Save Selection to SVG extension</h2>
<div class="outline-text-2" id="text-orge5e47be">
</div>
<div id="outline-container-org74c03e7" class="outline-3">
<h3 id="org74c03e7"><code>ink</code> file</h3>
<div class="outline-text-3" id="text-org74c03e7">
<div class="org-src-container">
<pre class="src src-xml"><span class="org-nxml-processing-instruction-delimiter">&lt;?</span><span class="org-nxml-processing-instruction-target">xml</span> <span class="org-nxml-processing-instruction-content">version="1.0" encoding="utf-8"</span><span class="org-nxml-processing-instruction-delimiter">?&gt;</span>
<span class="org-nxml-processing-instruction-delimiter">&lt;?</span><span class="org-nxml-processing-instruction-target">xml</span> <span class="org-nxml-processing-instruction-content">version="1.0" encoding="UTF-8"</span><span class="org-nxml-processing-instruction-delimiter">?&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">inkscape-extension</span> <span class="org-nxml-namespace-attribute-xmlns">xmlns</span>=<span class="org-string">"http://www.inkscape.org/namespace/inkscape/extension"</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-comment-delimiter">&lt;!-- </span><span class="org-comment">_name must have same name as .py file but capitalise it. Shows on Menu this way</span><span class="org-comment-delimiter">--&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">_name</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">Save Selection</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">_name</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-comment-delimiter">&lt;!-- </span><span class="org-comment">id should be unique. Associates entered values with this menu </span><span class="org-comment-delimiter">--&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">id</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">org.inkscape.save_selection</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">id</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-comment-delimiter">&lt;!-- </span><span class="org-comment">mention a dependency here and will check for existence (optional)</span><span class="org-comment-delimiter">--&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">dependency</span> <span class="org-nxml-attribute-local-name">type</span>=<span class="org-string">"executable"</span> <span class="org-nxml-attribute-local-name">location</span>=<span class="org-string">"inx"</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">save_selection.py</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">dependency</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-comment-delimiter">&lt;!-- </span><span class="org-comment">start notebook </span><span class="org-comment-delimiter">--&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">param</span> <span class="org-nxml-attribute-local-name">name</span>=<span class="org-string">"param"</span> <span class="org-nxml-attribute-local-name">type</span>=<span class="org-string">"float"</span> <span class="org-nxml-attribute-local-name">min</span>=<span class="org-string">"0.1"</span> <span class="org-nxml-attribute-local-name">max</span>=<span class="org-string">"1000.0"</span> <span class="org-nxml-attribute-local-name">precision</span>=<span class="org-string">"5"</span> <span class="org-nxml-attribute-local-name">_gui-text</span>=<span class="org-string">"A floating value"</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">1.0</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">param</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">param</span> <span class="org-nxml-attribute-local-name">name</span>=<span class="org-string">"achoice"</span> <span class="org-nxml-attribute-local-name">type</span>=<span class="org-string">"bool"</span> <span class="org-nxml-attribute-local-name">_gui-text</span>=<span class="org-string">"A boolean value"</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">false</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">param</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">effect</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">object-type</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">all</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">object-type</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">effects-menu</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">submenu</span> <span class="org-nxml-attribute-local-name">_name</span>=<span class="org-string">"Save Selection"</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">effects-menu</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">effect</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-comment-delimiter">&lt;!-- </span><span class="org-comment">py file again </span><span class="org-comment-delimiter">--&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">script</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-element-local-name">command</span> <span class="org-nxml-attribute-local-name">location</span>=<span class="org-string">"inx"</span> <span class="org-nxml-attribute-local-name">interpreter</span>=<span class="org-string">"python"</span><span class="org-nxml-tag-delimiter">&gt;</span><span class="org-nxml-text">save_selection.py</span><span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">command</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">script</span><span class="org-nxml-tag-delimiter">&gt;</span>
<span class="org-nxml-tag-delimiter">&lt;</span><span class="org-nxml-tag-slash">/</span><span class="org-nxml-element-local-name">inkscape-extension</span><span class="org-nxml-tag-delimiter">&gt;</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7f93603" class="outline-3">
<h3 id="org7f93603"><code>py</code> file</h3>
<div class="outline-text-3" id="text-org7f93603">
<div class="org-src-container">
<pre class="src src-python"><span class="org-keyword">import</span> os
<span class="org-keyword">import</span> inkex
<span class="org-keyword">import</span> inkex.command
<span class="org-keyword">class</span> <span class="org-type">SaveSelection</span>(inkex.OutputExtension): <span class="org-comment-delimiter"># </span><span class="org-comment">choose a better name</span>
<span class="org-keyword">def</span> <span class="org-function-name">add_arguments</span>(<span class="org-keyword">self</span>, pars):
pars.add_argument(<span class="org-string">"--param"</span>, <span class="org-builtin">type</span>=<span class="org-builtin">float</span>, dest=<span class="org-string">"param"</span>, default=<span class="org-highlight-numbers-number">1.0</span>)
pars.add_argument(<span class="org-string">"-x"</span>, <span class="org-string">"--achoice"</span>, <span class="org-builtin">type</span>=inkex.Boolean, dest=<span class="org-string">"achoice"</span>, default=<span class="org-constant">False</span>)
<span class="org-keyword">def</span> <span class="org-function-name">save</span>(<span class="org-keyword">self</span>, stream):
<span class="org-comment-delimiter"># </span><span class="org-comment">param2 = self.options.param</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">choice = self.options.achoice</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inkex.command.inkscape_command(self.svg, verbs=['EditInvert']);</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inkex.command.inkscape_command(self.svg, verbs=['EditDelete']);</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">filename = os.popen('rofi -dmenu -p "Filename"')</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">print(filename)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inkex.debug(self.svg.selected.svg)</span>
<span class="org-keyword">self</span>.document.write(<span class="org-keyword">self</span>.svg.selected)
<span class="org-comment-delimiter"># </span><span class="org-comment">Get selected objects</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">selection = self.svg.selected</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">selection = inkex.load_svg(</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inkex.command.inkscape_command(</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">self.svg, verbs=['FitCanvasToDrawing']))</span>
<span class="org-comment-delimiter"># </span><span class="org-comment"># Create a Canvas ovject</span>
<span class="org-comment-delimiter"># </span><span class="org-comment"># Write File</span>
<span class="org-comment-delimiter"># </span><span class="org-comment"># stream.write(b''.join(self.svg.selected.tostring()))</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">inkex.command.write_svg(selection, "/home/thomas/", "test.svg")</span>
<span class="org-keyword">if</span> <span class="org-builtin">__name__</span> == <span class="org-string">'__main__'</span>:
SaveSelection().run()
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
!function(a,b){"use strict";function c(c,g){var h=this;h.$el=a(c),h.el=c,h.id=e++,h.$window=a(b),h.$document=a(document),h.$el.bind("destroyed",a.proxy(h.teardown,h)),h.$clonedHeader=null,h.$originalHeader=null,h.isSticky=!1,h.hasBeenSticky=!1,h.leftOffset=null,h.topOffset=null,h.init=function(){h.$el.each(function(){var b=a(this);b.css("padding",0),h.$originalHeader=a("thead:first",this),h.$clonedHeader=h.$originalHeader.clone(),b.trigger("clonedHeader."+d,[h.$clonedHeader]),h.$clonedHeader.addClass("tableFloatingHeader"),h.$clonedHeader.css("display","none"),h.$originalHeader.addClass("tableFloatingHeaderOriginal"),h.$originalHeader.after(h.$clonedHeader),h.$printStyle=a('<style type="text/css" media="print">.tableFloatingHeader{display:none !important;}.tableFloatingHeaderOriginal{position:static !important;}</style>'),a("head").append(h.$printStyle)}),h.setOptions(g),h.updateWidth(),h.toggleHeaders(),h.bind()},h.destroy=function(){h.$el.unbind("destroyed",h.teardown),h.teardown()},h.teardown=function(){h.isSticky&&h.$originalHeader.css("position","static"),a.removeData(h.el,"plugin_"+d),h.unbind(),h.$clonedHeader.remove(),h.$originalHeader.removeClass("tableFloatingHeaderOriginal"),h.$originalHeader.css("visibility","visible"),h.$printStyle.remove(),h.el=null,h.$el=null},h.bind=function(){h.$scrollableArea.on("scroll."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.on("scroll."+d+h.id,h.setPositionValues),h.$window.on("resize."+d+h.id,h.toggleHeaders)),h.$scrollableArea.on("resize."+d,h.toggleHeaders),h.$scrollableArea.on("resize."+d,h.updateWidth)},h.unbind=function(){h.$scrollableArea.off("."+d,h.toggleHeaders),h.isWindowScrolling||(h.$window.off("."+d+h.id,h.setPositionValues),h.$window.off("."+d+h.id,h.toggleHeaders)),h.$scrollableArea.off("."+d,h.updateWidth)},h.toggleHeaders=function(){h.$el&&h.$el.each(function(){var b,c=a(this),d=h.isWindowScrolling?isNaN(h.options.fixedOffset)?h.options.fixedOffset.outerHeight():h.options.fixedOffset:h.$scrollableArea.offset().top+(isNaN(h.options.fixedOffset)?0:h.options.fixedOffset),e=c.offset(),f=h.$scrollableArea.scrollTop()+d,g=h.$scrollableArea.scrollLeft(),i=h.isWindowScrolling?f>e.top:d>e.top,j=(h.isWindowScrolling?f:0)<e.top+c.height()-h.$clonedHeader.height()-(h.isWindowScrolling?0:d);i&&j?(b=e.left-g+h.options.leftOffset,h.$originalHeader.css({position:"fixed","margin-top":h.options.marginTop,left:b,"z-index":3}),h.leftOffset=b,h.topOffset=d,h.$clonedHeader.css("display",""),h.isSticky||(h.isSticky=!0,h.updateWidth()),h.setPositionValues()):h.isSticky&&(h.$originalHeader.css("position","static"),h.$clonedHeader.css("display","none"),h.isSticky=!1,h.resetWidth(a("td,th",h.$clonedHeader),a("td,th",h.$originalHeader)))})},h.setPositionValues=function(){var a=h.$window.scrollTop(),b=h.$window.scrollLeft();!h.isSticky||0>a||a+h.$window.height()>h.$document.height()||0>b||b+h.$window.width()>h.$document.width()||h.$originalHeader.css({top:h.topOffset-(h.isWindowScrolling?0:a),left:h.leftOffset-(h.isWindowScrolling?0:b)})},h.updateWidth=function(){if(h.isSticky){h.$originalHeaderCells||(h.$originalHeaderCells=a("th,td",h.$originalHeader)),h.$clonedHeaderCells||(h.$clonedHeaderCells=a("th,td",h.$clonedHeader));var b=h.getWidth(h.$clonedHeaderCells);h.setWidth(b,h.$clonedHeaderCells,h.$originalHeaderCells),h.$originalHeader.css("width",h.$clonedHeader.width())}},h.getWidth=function(c){var d=[];return c.each(function(c){var e,f=a(this);if("border-box"===f.css("box-sizing"))e=f[0].getBoundingClientRect().width;else{var g=a("th",h.$originalHeader);if("collapse"===g.css("border-collapse"))if(b.getComputedStyle)e=parseFloat(b.getComputedStyle(this,null).width);else{var i=parseFloat(f.css("padding-left")),j=parseFloat(f.css("padding-right")),k=parseFloat(f.css("border-width"));e=f.outerWidth()-i-j-k}else e=f.width()}d[c]=e}),d},h.setWidth=function(a,b,c){b.each(function(b){var d=a[b];c.eq(b).css({"min-width":d,"max-width":d})})},h.resetWidth=function(b,c){b.each(function(b){var d=a(this);c.eq(b).css({"min-width":d.css("min-width"),"max-width":d.css("max-width")})})},h.setOptions=function(c){h.options=a.extend({},f,c),h.$scrollableArea=a(h.options.scrollableArea),h.isWindowScrolling=h.$scrollableArea[0]===b},h.updateOptions=function(a){h.setOptions(a),h.unbind(),h.bind(),h.updateWidth(),h.toggleHeaders()},h.init()}var d="stickyTableHeaders",e=0,f={fixedOffset:0,leftOffset:0,marginTop:0,scrollableArea:b};a.fn[d]=function(b){return this.each(function(){var e=a.data(this,"plugin_"+d);e?"string"==typeof b?e[b].apply(e):e.updateOptions(b):"destroy"!==b&&a.data(this,"plugin_"+d,new c(this,b))})}}(jQuery,window);

View File

@ -1,85 +0,0 @@
$(function() {
$('.note').before("<p class='admonition-title note'>Note</p>");
$('.seealso').before("<p class='admonition-title seealso'>See also</p>");
$('.warning').before("<p class='admonition-title warning'>Warning</p>");
$('.caution').before("<p class='admonition-title caution'>Caution</p>");
$('.attention').before("<p class='admonition-title attention'>Attention</p>");
$('.tip').before("<p class='admonition-title tip'>Tip</p>");
$('.important').before("<p class='admonition-title important'>Important</p>");
$('.hint').before("<p class='admonition-title hint'>Hint</p>");
$('.error').before("<p class='admonition-title error'>Error</p>");
$('.danger').before("<p class='admonition-title danger'>Danger</p>");
});
$( document ).ready(function() {
// Shift nav in mobile when clicking the menu.
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
});
// Close menu when you click a link.
$(document).on('click', ".wy-menu-vertical .current ul li a", function() {
$("[data-toggle='wy-nav-shift']").removeClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
});
$(document).on('click', "[data-toggle='rst-current-version']", function() {
$("[data-toggle='rst-versions']").toggleClass("shift-up");
});
// Make tables responsive
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
});
$( document ).ready(function() {
$('#text-table-of-contents ul').first().addClass('nav');
// ScrollSpy also requires that we use
// a Bootstrap nav component.
$('body').scrollspy({target: '#text-table-of-contents'});
// add sticky table headers
$('table').stickyTableHeaders();
// set the height of tableOfContents
var $postamble = $('#postamble');
var $tableOfContents = $('#table-of-contents');
$tableOfContents.css({paddingBottom: $postamble.outerHeight()});
// add TOC button
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
$('#content').prepend(toggleSidebar);
// add close button when sidebar showed in mobile screen
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
var tocTitle = $('#table-of-contents').find('h2');
tocTitle.append(closeBtn);
});
window.SphinxRtdTheme = (function (jquery) {
var stickyNav = (function () {
var navBar,
win,
stickyNavCssClass = 'stickynav',
applyStickNav = function () {
if (navBar.height() <= win.height()) {
navBar.addClass(stickyNavCssClass);
} else {
navBar.removeClass(stickyNavCssClass);
}
},
enable = function () {
applyStickNav();
win.on('resize', applyStickNav);
},
init = function () {
navBar = jquery('nav.wy-nav-side:first');
win = jquery(window);
};
jquery(init);
return {
enable : enable
};
}());
return {
StickyNav : stickyNav
};
}($));

139
docs/latex.html Normal file
View File

@ -0,0 +1,139 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-01-01 ven. 20:09 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>LaTeX Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">LaTeX Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org55e901a">Awesome LaTeX</a></li>
<li><a href="#orgef9bd32">Learn LaTeX</a></li>
<li><a href="#org4efc949">Tools</a></li>
<li><a href="#org9043e21">Theme/class</a></li>
<li><a href="#orgc77243a">Beamer</a></li>
<li><a href="#org07d5f7a">Tikz</a></li>
<li><a href="#orgeafcabf">Packages</a></li>
<li><a href="#org6238db5">Snippets</a>
<ul>
<li><a href="#org830279f">Make arrows with text above and bellow</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org55e901a" class="outline-2">
<h2 id="org55e901a">Awesome LaTeX</h2>
<div class="outline-text-2" id="text-org55e901a">
<ul class="org-ul">
<li><a href="https://github.com/cmichi/latex-template-collection">https://github.com/cmichi/latex-template-collection</a></li>
<li><a href="https://github.com/latex3/latex3">https://github.com/latex3/latex3</a></li>
<li><a href="https://github.com/egeerardyn/awesome-LaTeX">https://github.com/egeerardyn/awesome-LaTeX</a></li>
<li><a href="https://github.com/simonharrer/latex-best-practices">https://github.com/simonharrer/latex-best-practices</a></li>
<li><a href="https://github.com/dspinellis/latex-advice">https://github.com/dspinellis/latex-advice</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgef9bd32" class="outline-2">
<h2 id="orgef9bd32">Learn LaTeX</h2>
<div class="outline-text-2" id="text-orgef9bd32">
<ul class="org-ul">
<li><a href="https://www.youtube.com/user/AlainOlivetti/playlists">https://www.youtube.com/user/AlainOlivetti/playlists</a></li>
</ul>
</div>
</div>
<div id="outline-container-org4efc949" class="outline-2">
<h2 id="org4efc949">Tools</h2>
<div class="outline-text-2" id="text-org4efc949">
<ul class="org-ul">
<li><a href="https://tectonic-typesetting.github.io/en-US/">https://tectonic-typesetting.github.io/en-US/</a></li>
<li><a href="https://github.com/gpoore/minted">https://github.com/gpoore/minted</a></li>
</ul>
</div>
</div>
<div id="outline-container-org9043e21" class="outline-2">
<h2 id="org9043e21">Theme/class</h2>
<div class="outline-text-2" id="text-org9043e21">
<ul class="org-ul">
<li><a href="https://github.com/derric/cleanthesis">https://github.com/derric/cleanthesis</a></li>
<li><a href="https://github.com/tdehaeze/clean-latex-template">https://github.com/tdehaeze/clean-latex-template</a></li>
<li><a href="https://github.com/deedy/Deedy-Resume">https://github.com/deedy/Deedy-Resume</a></li>
<li><a href="https://github.com/deselaers/latex-beamerposter">https://github.com/deselaers/latex-beamerposter</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgc77243a" class="outline-2">
<h2 id="orgc77243a">Beamer</h2>
<div class="outline-text-2" id="text-orgc77243a">
<ul class="org-ul">
<li><a href="https://github.com/josephwright/beamer">https://github.com/josephwright/beamer</a></li>
</ul>
<p>
Themes:
</p>
<ul class="org-ul">
<li><a href="https://github.com/matze/mtheme">https://github.com/matze/mtheme</a></li>
<li><a href="https://github.com/martinbjeldbak/ultimate-beamer-theme-list">https://github.com/martinbjeldbak/ultimate-beamer-theme-list</a></li>
</ul>
</div>
</div>
<div id="outline-container-org07d5f7a" class="outline-2">
<h2 id="org07d5f7a">Tikz</h2>
<div class="outline-text-2" id="text-org07d5f7a">
<ul class="org-ul">
<li><a href="https://github.com/walmes/Tikz">https://github.com/walmes/Tikz</a></li>
<li><a href="https://github.com/xiaohanyu/awesome-tikz">https://github.com/xiaohanyu/awesome-tikz</a></li>
<li><a href="https://github.com/circuitikz/circuitikz">https://github.com/circuitikz/circuitikz</a></li>
<li><a href="https://github.com/cbersch/pst-optexp">https://github.com/cbersch/pst-optexp</a></li>
<li><a href="https://github.com/hackl/TikZ-StructuralAnalysis">https://github.com/hackl/TikZ-StructuralAnalysis</a></li>
<li><a href="https://github.com/fhackenberger/ktikz">https://github.com/fhackenberger/ktikz</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgeafcabf" class="outline-2">
<h2 id="orgeafcabf">Packages</h2>
<div class="outline-text-2" id="text-orgeafcabf">
<ul class="org-ul">
<li><a href="https://github.com/T-F-S/tcolorbox">https://github.com/T-F-S/tcolorbox</a></li>
</ul>
</div>
</div>
<div id="outline-container-org6238db5" class="outline-2">
<h2 id="org6238db5">Snippets</h2>
<div class="outline-text-2" id="text-org6238db5">
</div>
<div id="outline-container-org830279f" class="outline-3">
<h3 id="org830279f">Make arrows with text above and bellow</h3>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-01 ven. 20:09</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-28 mar. 21:32 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Matlab Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,40 +22,36 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org157998a">Startup</a>
<li><a href="#orga81f527">Startup</a>
<ul>
<li><a href="#orgf6d1f33">Setup LaTeX as a default interpreter</a></li>
<li><a href="#org4d6a4e5">Default Line Width</a></li>
<li><a href="#org14081cd">Default grids on all axis</a></li>
<li><a href="#org3406bd4">Default Font Size</a></li>
<li><a href="#org6451de0">Default Fonts</a></li>
<li><a href="#orgad9e350">Make figures into a Box</a></li>
<li><a href="#org9a40d31">Default Colors</a></li>
<li><a href="#org64d60de">Default Plot Colors</a></li>
<li><a href="#org27ce6db">Figure paper and window style</a></li>
<li><a href="#orgd711b41">Set the display format</a></li>
<li><a href="#orga60f640">Home Path</a></li>
<li><a href="#org83d6337">Add to path</a></li>
<li><a href="#orgbc34538">Clear</a></li>
</ul>
</li>
<li><a href="#org20ac1e5">Setup</a>
<ul>
<li><a href="#org2f8f36d">Schemer Import</a></li>
<li><a href="#orgadff39b">Setup LaTeX as a default interpreter</a></li>
<li><a href="#orga7cc243">Default Line Width</a></li>
<li><a href="#org9bcf5b6">Default grids on all axis</a></li>
<li><a href="#orgcda5566">Default Font Size</a></li>
<li><a href="#org0a7bfe6">Default Fonts</a></li>
<li><a href="#orgced64b8">Make figures into a Box</a></li>
<li><a href="#org731843c">Default Colors</a></li>
<li><a href="#orgc91b474">Default Plot Colors</a></li>
<li><a href="#orgc0980a1">Figure paper and window style</a></li>
<li><a href="#org7ed9ec6">Set the display format</a></li>
<li><a href="#orgafda72c">Home Path</a></li>
<li><a href="#orgfcd649d">Add to path</a></li>
<li><a href="#org1b5f37b">Clear</a></li>
</ul>
</li>
<li><a href="#orgfcee066">Setup</a></li>
</ul>
</div>
</div>
<div id="outline-container-org157998a" class="outline-2">
<h2 id="org157998a">Startup</h2>
<div class="outline-text-2" id="text-org157998a">
<div id="outline-container-orga81f527" class="outline-2">
<h2 id="orga81f527">Startup</h2>
<div class="outline-text-2" id="text-orga81f527">
</div>
<div id="outline-container-orgf6d1f33" class="outline-3">
<h3 id="orgf6d1f33">Setup LaTeX as a default interpreter</h3>
<div class="outline-text-3" id="text-orgf6d1f33">
<div id="outline-container-orgadff39b" class="outline-3">
<h3 id="orgadff39b">Setup LaTeX as a default interpreter</h3>
<div class="outline-text-3" id="text-orgadff39b">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesTickLabelInterpreter'</span>, <span class="org-string">'LaTeX'</span>);
@ -302,9 +62,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org4d6a4e5" class="outline-3">
<h3 id="org4d6a4e5">Default Line Width</h3>
<div class="outline-text-3" id="text-org4d6a4e5">
<div id="outline-container-orga7cc243" class="outline-3">
<h3 id="orga7cc243">Default Line Width</h3>
<div class="outline-text-3" id="text-orga7cc243">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultLineLineWidth'</span>, 1.5);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesLineWidth'</span>, 0.5);
@ -313,9 +73,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org14081cd" class="outline-3">
<h3 id="org14081cd">Default grids on all axis</h3>
<div class="outline-text-3" id="text-org14081cd">
<div id="outline-container-org9bcf5b6" class="outline-3">
<h3 id="org9bcf5b6">Default grids on all axis</h3>
<div class="outline-text-3" id="text-org9bcf5b6">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXGrid'</span>,<span class="org-string">'on'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesYGrid'</span>,<span class="org-string">'on'</span>);
@ -325,9 +85,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org3406bd4" class="outline-3">
<h3 id="org3406bd4">Default Font Size</h3>
<div class="outline-text-3" id="text-org3406bd4">
<div id="outline-container-orgcda5566" class="outline-3">
<h3 id="orgcda5566">Default Font Size</h3>
<div class="outline-text-3" id="text-orgcda5566">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontUnits'</span>, <span class="org-string">'points'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontSize'</span>, 10);
@ -339,9 +99,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org6451de0" class="outline-3">
<h3 id="org6451de0">Default Fonts</h3>
<div class="outline-text-3" id="text-org6451de0">
<div id="outline-container-org0a7bfe6" class="outline-3">
<h3 id="org0a7bfe6">Default Fonts</h3>
<div class="outline-text-3" id="text-org0a7bfe6">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesFontName'</span>, <span class="org-string">'Helvetica'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultTextFontName'</span>, <span class="org-string">'Helvetica'</span>);
@ -350,9 +110,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-orgad9e350" class="outline-3">
<h3 id="orgad9e350">Make figures into a Box</h3>
<div class="outline-text-3" id="text-orgad9e350">
<div id="outline-container-orgced64b8" class="outline-3">
<h3 id="orgced64b8">Make figures into a Box</h3>
<div class="outline-text-3" id="text-orgced64b8">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesBox'</span>, <span class="org-string">'on'</span>);
</pre>
@ -360,9 +120,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org9a40d31" class="outline-3">
<h3 id="org9a40d31">Default Colors</h3>
<div class="outline-text-3" id="text-org9a40d31">
<div id="outline-container-org731843c" class="outline-3">
<h3 id="org731843c">Default Colors</h3>
<div class="outline-text-3" id="text-org731843c">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesColor'</span>, <span class="org-string">'w'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultAxesXColor'</span>, <span class="org-string">'k'</span>);
@ -374,9 +134,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org64d60de" class="outline-3">
<h3 id="org64d60de">Default Plot Colors</h3>
<div class="outline-text-3" id="text-org64d60de">
<div id="outline-container-orgc91b474" class="outline-3">
<h3 id="orgc91b474">Default Plot Colors</h3>
<div class="outline-text-3" id="text-orgc91b474">
<div class="org-src-container">
<pre class="src src-matlab">c1 = [ 0 0.4470 0.7410]; <span class="org-comment">% Blue</span>
c2 = [0.8500 0.3250 0.0980]; <span class="org-comment">% Orange</span>
@ -392,9 +152,9 @@ c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
</div>
</div>
<div id="outline-container-org27ce6db" class="outline-3">
<h3 id="org27ce6db">Figure paper and window style</h3>
<div class="outline-text-3" id="text-org27ce6db">
<div id="outline-container-orgc0980a1" class="outline-3">
<h3 id="orgc0980a1">Figure paper and window style</h3>
<div class="outline-text-3" id="text-orgc0980a1">
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigurePaperType'</span>, <span class="org-string">'A4'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">groot</span>, <span class="org-string">'DefaultFigureWindowStyle'</span>, <span class="org-string">'normal'</span>);
@ -403,9 +163,9 @@ c7 = [0.6350 0.0780 0.1840]; <span class="org-comment">% Red</span>
</div>
</div>
<div id="outline-container-orgd711b41" class="outline-3">
<h3 id="orgd711b41">Set the display format</h3>
<div class="outline-text-3" id="text-orgd711b41">
<div id="outline-container-org7ed9ec6" class="outline-3">
<h3 id="org7ed9ec6">Set the display format</h3>
<div class="outline-text-3" id="text-org7ed9ec6">
<div class="org-src-container">
<pre class="src src-matlab">format compact;
format long g;
@ -414,9 +174,9 @@ format long g;
</div>
</div>
<div id="outline-container-orga60f640" class="outline-3">
<h3 id="orga60f640">Home Path</h3>
<div class="outline-text-3" id="text-orga60f640">
<div id="outline-container-orgafda72c" class="outline-3">
<h3 id="orgafda72c">Home Path</h3>
<div class="outline-text-3" id="text-orgafda72c">
<div class="org-src-container">
<pre class="src src-matlab">toolboxes_path = <span class="org-string">'~/Cloud/thesis/matlab/toolboxes/'</span>;
</pre>
@ -424,41 +184,102 @@ format long g;
</div>
</div>
<div id="outline-container-org83d6337" class="outline-3">
<h3 id="org83d6337">Add to path</h3>
<div class="outline-text-3" id="text-org83d6337">
<div id="outline-container-orgfcd649d" class="outline-3">
<h3 id="orgfcd649d">Add to path</h3>
<div class="outline-text-3" id="text-orgfcd649d">
<p>
Provides <code>vecfig3</code> for FRF fitting (<a href="https://www.sintef.no/projectweb/vectorfitting/downloads/">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'matrix_fitting_toolbox_1'</span>])
</pre>
</div>
<p>
Apply and save color schemes in MATLAB with ease (<a href="https://github.com/scottclowe/matlab-schemer">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'matlab-schemer'</span>])
</pre>
</div>
<p>
Converts MATLAB figures to TikZ (<a href="https://github.com/matlab2tikz/matlab2tikz">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'matlab2tikz/src'</span>])
</pre>
</div>
<p>
MATLAB toolbox for exporting publication quality figures (<a href="https://github.com/altmany/export_fig">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'export_fig'</span>])
</pre>
</div>
<p>
MATLAB source code formatter, beautifier (<a href="https://github.com/davidvarga/MBeautifier">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'MBeautifier'</span>])
</pre>
</div>
<p>
Toolbox for Convex Programming (<a href="http://cvxr.com/cvx/">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'CVX'</span>])
</pre>
</div>
<p>
Useful functions to use with <code>orgmode</code> (<a href="https://github.com/tdehaeze/Org-Mode-Matlab">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'Org-Mode-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Usefull-Functions/src'</span>])
addpath([toolboxes_path <span class="org-string">'Stacked-Elements-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Measure-Analysis-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Hinf-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Fit-Model-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Dspace-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'SpeedGoat-Toolbox/src'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/matrix_fitting_toolbox_1'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/matlab-schemer'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/matlab2tikz/src'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/hline_vline'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/export_fig'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/subaxis'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/cbrewer'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/tightfig'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/fig2svg/src'</span>])
addpath([toolboxes_path <span class="org-string">'Add-Ons/CVX'</span>])
</pre>
</div>
<p>
Some useful function (<a href="https://github.com/tdehaeze/matlab_useful_functions">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath(<span class="org-string">'/home/thomas/.emacs.d/.local/straight/repos/mirror/toolbox'</span>)
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'matlab_useful_functions/src'</span>])
</pre>
</div>
<p>
H-Infinity Toolbox (<a href="https://github.com/tdehaeze/hinf-toolbox">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-comment">% addpath([toolboxes_path 'Hinf-Toolbox/src'])</span>
</pre>
</div>
<p>
Toolbox to work with Finite Element Models (<a href="https://github.com/tdehaeze/fem_matlab_toolbox">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path <span class="org-string">'fem_toolbox/src'</span>])
</pre>
</div>
<p>
Toolbox to work with fractional order models (<a href="https://github.com/extall/fomcon-matlab">link</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab">addpath(genpath([toolboxes_path <span class="org-string">'fomcon-matlab'</span>]))
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbc34538" class="outline-3">
<h3 id="orgbc34538">Clear</h3>
<div class="outline-text-3" id="text-orgbc34538">
<div id="outline-container-org1b5f37b" class="outline-3">
<h3 id="org1b5f37b">Clear</h3>
<div class="outline-text-3" id="text-org1b5f37b">
<div class="org-src-container">
<pre class="src src-matlab">clear;
</pre>
@ -467,25 +288,26 @@ addpath([toolboxes_path <span class="org-string">'Add-Ons/CVX'</span>])
</div>
</div>
<div id="outline-container-org20ac1e5" class="outline-2">
<h2 id="org20ac1e5">Setup</h2>
<div class="outline-text-2" id="text-org20ac1e5">
</div>
<div id="outline-container-orgfcee066" class="outline-2">
<h2 id="orgfcee066">Setup</h2>
<div class="outline-text-2" id="text-orgfcee066">
<p>
This script should be run once after Matlab is installed.
</p>
<div id="outline-container-org2f8f36d" class="outline-3">
<h3 id="org2f8f36d">Schemer Import</h3>
<div class="outline-text-3" id="text-org2f8f36d">
<p>
Import a nice color scheme.
</p>
<div class="org-src-container">
<pre class="src src-matlab">schemer_import([home_path <span class="org-string">'/Cloud/thesis/matlab/toolboxes/Add-Ons/matlab-schemer/schemes/monokai.prf'</span>]);
<pre class="src src-matlab">schemer_import(<span class="org-string">'~/Cloud/thesis/matlab/toolboxes/Add-Ons/matlab-schemer/schemes/monokai.prf'</span>);
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-28 mar. 21:32</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-19 jeu. 10:39 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Music/Sound Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -236,23 +22,23 @@
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org1984a25">Pavu Control</a></li>
<li><a href="#orga2274a9">NCMPCPP</a>
<li><a href="#pavucontrol"><code>pavucontrol</code> - Volume Control</a></li>
<li><a href="#mopidy"><code>mopidy</code> - Music Server</a></li>
<li><a href="#ncmpcpp"><code>ncmpcpp</code> - Ncurses based MPD client</a>
<ul>
<li><a href="#orgc496501">Config</a></li>
<li><a href="#orgef62173">Bindings</a></li>
<li><a href="#orga510c77">Config</a></li>
<li><a href="#orga43b7ae">Bindings</a></li>
</ul>
</li>
<li><a href="#org4ad4c04">Beets</a></li>
<li><a href="#org887303a">Mopidy</a></li>
<li><a href="#org6b37adb">Radio with curseradio</a></li>
<li><a href="#beets"><code>beets</code> - Media library management</a></li>
<li><a href="#curseradio"><code>curseradio</code> - Radio with curseradio</a></li>
</ul>
</div>
</div>
<div id="outline-container-org1984a25" class="outline-2">
<h2 id="org1984a25">Pavu Control</h2>
<div class="outline-text-2" id="text-org1984a25">
<div id="outline-container-pavucontrol" class="outline-2">
<h2 id="pavucontrol"><code>pavucontrol</code> - Volume Control</h2>
<div class="outline-text-2" id="text-pavucontrol">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">window</span>]
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">500</span>
@ -267,18 +53,69 @@
</div>
</div>
<div id="outline-container-orga2274a9" class="outline-2">
<h2 id="orga2274a9">NCMPCPP</h2>
<div class="outline-text-2" id="text-orga2274a9">
<div id="outline-container-mopidy" class="outline-2">
<h2 id="mopidy"><code>mopidy</code> - Music Server</h2>
<div class="outline-text-2" id="text-mopidy">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">spotify</span>]
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)&gt;&gt;
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
<span class="org-variable-name">client_secret</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify/client_secret"</span>)&gt;&gt;
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
[<span class="org-type">mpd</span>]
<span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">hostname</span> = 127.0.0.1
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
<span class="org-variable-name">password</span> =
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
<span class="org-variable-name">default_playlist_scheme</span> = m3u
[<span class="org-type">jellyfin</span>]
<span class="org-variable-name">hostname</span> = https://jellyfin.tdehaeze.xyz
<span class="org-variable-name">username</span> = tdehaeze
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"music.tdehaeze.xyz/tdehaeze"</span>)&gt;&gt;
<span class="org-variable-name">libraries</span> = Music
<span class="org-variable-name">albumartistsort</span> = True
<span class="org-variable-name">album_format</span> = {ProductionYear} - {Name}
<span class="org-variable-name">max_bitrate</span> = <span class="org-highlight-numbers-number">10000</span>
[<span class="org-type">file</span>]
<span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
<span class="org-variable-name">excluded_file_extensions</span> =
.db
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
</pre>
</div>
</div>
</div>
<div id="outline-container-ncmpcpp" class="outline-2">
<h2 id="ncmpcpp"><code>ncmpcpp</code> - Ncurses based MPD client</h2>
<div class="outline-text-2" id="text-ncmpcpp">
<p>
<a href="https://rybczak.net/ncmpcpp/">https://rybczak.net/ncmpcpp/</a>
Cheatsheet: <a href="https://pkgbuild.com/~jelle/ncmpcpp/">https://pkgbuild.com/~jelle/ncmpcpp/</a>
</p>
</div>
<div id="outline-container-orgc496501" class="outline-3">
<h3 id="orgc496501">Config</h3>
<div class="outline-text-3" id="text-orgc496501">
<div id="outline-container-orga510c77" class="outline-3">
<h3 id="orga510c77">Config</h3>
<div class="outline-text-3" id="text-orga510c77">
<p>
Configuration directory.
</p>
@ -304,15 +141,41 @@ Notification of song change.
<pre class="src src-conf"><span class="org-variable-name">execute_on_song_change</span> = dunstify --replace=<span class="org-highlight-numbers-number">19845</span> <span class="org-string">"Now Playing &#9835;"</span> <span class="org-string">"$(mpc current)"</span>
</pre>
</div>
<p>
Better user interface
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">user_interface</span> = <span class="org-string">"alternative"</span>
<span class="org-variable-name">playlist_editor_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">search_engine_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">browser_display_mode</span> = <span class="org-string">"columns"</span>
<span class="org-variable-name">playlist_display_mode</span> = <span class="org-string">"columns"</span>
</pre>
</div>
<p>
Sorting by tracking number and then title
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">browser_sort_mode</span> = <span class="org-string">"format"</span>
<span class="org-variable-name">browser_sort_format</span> = <span class="org-string">'{%n - %t}|{%t}'</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">ask_before_clearing_playlists</span> = <span class="org-string">"no"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgef62173" class="outline-3">
<h3 id="orgef62173">Bindings</h3>
<div class="outline-text-3" id="text-orgef62173">
<div id="outline-container-orga43b7ae" class="outline-3">
<h3 id="orga43b7ae">Bindings</h3>
<div class="outline-text-3" id="text-orga43b7ae">
<div class="org-src-container">
<pre class="src src-conf">def_key <span class="org-string">"q"</span>
run_external_command <span class="org-string">"if [ $TMUX ]; then tmux detach; fi"</span>
run_external_command <span class="org-string">"sh -c 'if [ $TMUX ] ; then tmux detach; fi'"</span>
def_key <span class="org-string">"Q"</span>
quit
def_key <span class="org-string">"g"</span>
@ -354,9 +217,9 @@ def_key <span class="org-string">"-"</span>
</div>
</div>
<div id="outline-container-org4ad4c04" class="outline-2">
<h2 id="org4ad4c04">Beets</h2>
<div class="outline-text-2" id="text-org4ad4c04">
<div id="outline-container-beets" class="outline-2">
<h2 id="beets"><code>beets</code> - Media library management</h2>
<div class="outline-text-2" id="text-beets">
<p>
<a href="http://beets.io/">http://beets.io/</a>
</p>
@ -375,54 +238,9 @@ plugins: fromfilename discogs
</div>
</div>
<div id="outline-container-org887303a" class="outline-2">
<h2 id="org887303a">Mopidy</h2>
<div class="outline-text-2" id="text-org887303a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">spotify</span>]
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)&gt;&gt;
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
<span class="org-variable-name">client_secret</span> = &lt;&lt;get-password(passname=<span class="org-string">"spotify/client_secret"</span>)&gt;&gt;
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
[<span class="org-type">mpd</span>]
<span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">hostname</span> = 127.0.0.1
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
<span class="org-variable-name">password</span> =
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
<span class="org-variable-name">default_playlist_scheme</span> = m3u
[<span class="org-type">file</span>]
<span class="org-variable-name">enabled</span> = true
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
<span class="org-variable-name">excluded_file_extensions</span> =
.db
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
[<span class="org-type">audio</span>]
<span class="org-variable-name">output</span> = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=<span class="org-highlight-numbers-number">44100</span>,channels=<span class="org-highlight-numbers-number">2</span>,format=S16LE ! wavenc ! filesink location=/tmp/mpd.fifo
</pre>
</div>
</div>
</div>
<div id="outline-container-org6b37adb" class="outline-2">
<h2 id="org6b37adb">Radio with curseradio</h2>
<div class="outline-text-2" id="text-org6b37adb">
<div id="outline-container-curseradio" class="outline-2">
<h2 id="curseradio"><code>curseradio</code> - Radio with curseradio</h2>
<div class="outline-text-2" id="text-curseradio">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">opml</span>]
<span class="org-variable-name">root</span> = http://opml.radiotime.com/
@ -451,7 +269,7 @@ plugins: fromfilename discogs
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-19 jeu. 10:39</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

2265
docs/nas.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dunst (Notification Manager)</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,32 +22,33 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org8a20fe1">Global</a>
<li><a href="#org88c63ea">Global</a>
<ul>
<li><a href="#org1538ca5">Display</a></li>
<li><a href="#org3209801">Text</a></li>
<li><a href="#org0b3fe43">Icons</a></li>
<li><a href="#orgfccb12b">History</a></li>
<li><a href="#org4cdd8ed">Misc/Advanced</a></li>
<li><a href="#org5759a6d">Display</a></li>
<li><a href="#orgf8f9654">Text</a></li>
<li><a href="#org1472558">Icons</a></li>
<li><a href="#orgb07bee7">History</a></li>
<li><a href="#orgf4f0949">Misc/Advanced</a></li>
</ul>
</li>
<li><a href="#orga574d4b">Shortcuts</a></li>
<li><a href="#org2443a5f">Urgency</a></li>
<li><a href="#org515ca97">Shortcuts</a></li>
<li><a href="#orgf546c51">Urgency</a></li>
</ul>
</div>
</div>
<div id="outline-container-org8a20fe1" class="outline-2">
<h2 id="org8a20fe1">Global</h2>
<div class="outline-text-2" id="text-org8a20fe1">
<div id="outline-container-org88c63ea" class="outline-2">
<h2 id="org88c63ea">Global</h2>
<div class="outline-text-2" id="text-org88c63ea">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">global</span>]
</pre>
</div>
</div>
<div id="outline-container-org1538ca5" class="outline-3">
<h3 id="org1538ca5">Display</h3>
<div class="outline-text-3" id="text-org1538ca5">
<div id="outline-container-org5759a6d" class="outline-3">
<h3 id="org5759a6d">Display</h3>
<div class="outline-text-3" id="text-org5759a6d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Which monitor should the notifications be displayed on.</span>
<span class="org-variable-name">monitor</span> = <span class="org-highlight-numbers-number">0</span>
@ -370,9 +135,10 @@ for the JavaScript code in this tag.
</div>
</div>
</div>
<div id="outline-container-org3209801" class="outline-3">
<h3 id="org3209801">Text</h3>
<div class="outline-text-3" id="text-org3209801">
<div id="outline-container-orgf8f9654" class="outline-3">
<h3 id="orgf8f9654">Text</h3>
<div class="outline-text-3" id="text-orgf8f9654">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">font</span> = Hack Nerd Font <span class="org-highlight-numbers-number">10</span>
@ -2190,15 +1956,14 @@ format = &quot;&lt;b&gt;%s&lt;/b">"&lt;b&gt;%s&lt;/b&gt;</a>\n%b"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Display indicators for URLs (U) and actions (A).</span>
<span class="org-variable-name">show_indicators</span> = yes
</pre>
</div>
</div>
</div>
<div id="outline-container-org0b3fe43" class="outline-3">
<h3 id="org0b3fe43">Icons</h3>
<div class="outline-text-3" id="text-org0b3fe43">
<div id="outline-container-org1472558" class="outline-3">
<h3 id="org1472558">Icons</h3>
<div class="outline-text-3" id="text-org1472558">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Align icons left/right/off</span>
<span class="org-variable-name">icon_position</span> = off
@ -2213,9 +1978,9 @@ format = &quot;&lt;b&gt;%s&lt;/b">"&lt;b&gt;%s&lt;/b&gt;</a>\n%b"</span>
</div>
</div>
<div id="outline-container-orgfccb12b" class="outline-3">
<h3 id="orgfccb12b">History</h3>
<div class="outline-text-3" id="text-orgfccb12b">
<div id="outline-container-orgb07bee7" class="outline-3">
<h3 id="orgb07bee7">History</h3>
<div class="outline-text-3" id="text-orgb07bee7">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Should a notification popped up from history be sticky or timeout</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">as if it would normally do.</span>
@ -2228,15 +1993,15 @@ format = &quot;&lt;b&gt;%s&lt;/b">"&lt;b&gt;%s&lt;/b&gt;</a>\n%b"</span>
</div>
</div>
<div id="outline-container-org4cdd8ed" class="outline-3">
<h3 id="org4cdd8ed">Misc/Advanced</h3>
<div class="outline-text-3" id="text-org4cdd8ed">
<div id="outline-container-orgf4f0949" class="outline-3">
<h3 id="orgf4f0949">Misc/Advanced</h3>
<div class="outline-text-3" id="text-orgf4f0949">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">dmenu path.</span>
<span class="org-variable-name">dmenu</span> = /usr/bin/dmenu -p dunst:
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser for opening urls in context menu.</span>
<span class="org-variable-name">browser</span> = qutebrowser
<span class="org-variable-name">browser</span> = $BROWSER
<span class="org-comment-delimiter"># </span><span class="org-comment">Always run rule-defined scripts, even if the notification is suppressed</span>
<span class="org-variable-name">always_run_script</span> = true
@ -2257,37 +2022,23 @@ format = &quot;&lt;b&gt;%s&lt;/b">"&lt;b&gt;%s&lt;/b&gt;</a>\n%b"</span>
</div>
</div>
<div id="outline-container-orga574d4b" class="outline-2">
<h2 id="orga574d4b">Shortcuts</h2>
<div class="outline-text-2" id="text-orga574d4b">
<div id="outline-container-org515ca97" class="outline-2">
<h2 id="org515ca97">Shortcuts</h2>
<div class="outline-text-2" id="text-org515ca97">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">shortcuts</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Shortcuts are specified as [modifier+][modifier+]...key</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">"mod3" and "mod4" (windows-key).</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Close notification.</span>
<span class="org-variable-name">close</span> = mod1+space
<span class="org-comment-delimiter"># </span><span class="org-comment">Close all notifications.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">close_all = mod1+shift+space</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Redisplay last message(s).</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">On the US keyboard layout "grave" is normally above TAB and left</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">of "1". Make sure this key actually exists on your keyboard layout,</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">e.g. check output of 'xmodmap -pke'</span>
<span class="org-variable-name">history</span> = mod1+grave
<span class="org-comment-delimiter"># </span><span class="org-comment">Context menu.</span>
<span class="org-variable-name">context</span> = mod1+shift+period
<span class="org-variable-name">history</span> = mod1+Escape
</pre>
</div>
</div>
</div>
<div id="outline-container-org2443a5f" class="outline-2">
<h2 id="org2443a5f">Urgency</h2>
<div class="outline-text-2" id="text-org2443a5f">
<div id="outline-container-orgf546c51" class="outline-2">
<h2 id="orgf546c51">Urgency</h2>
<div class="outline-text-2" id="text-orgf546c51">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">urgency_low</span>]
<span class="org-variable-name">background</span> = <span class="org-string">"#32302f"</span>
@ -2310,7 +2061,7 @@ format = &quot;&lt;b&gt;%s&lt;/b">"&lt;b&gt;%s&lt;/b&gt;</a>\n%b"</span>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:20 -->
<!-- 2021-01-08 ven. 01:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PCMANFM</title>
<title>PCManFM</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -253,21 +17,21 @@ for the JavaScript code in this tag.
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">PCMANFM</h1>
<h1 class="title">PCManFM</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org7cb35ab">Config</a></li>
<li><a href="#org9e44fa8">Volume</a></li>
<li><a href="#orgb150f41">UI</a></li>
<li><a href="#org0ad1961">Config</a></li>
<li><a href="#org9ed27d2">Volume</a></li>
<li><a href="#org8c3fa60">UI</a></li>
</ul>
</div>
</div>
<div id="outline-container-org7cb35ab" class="outline-2">
<h2 id="org7cb35ab">Config</h2>
<div class="outline-text-2" id="text-org7cb35ab">
<div id="outline-container-org0ad1961" class="outline-2">
<h2 id="org0ad1961">Config</h2>
<div class="outline-text-2" id="text-org0ad1961">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">config</span>]
<span class="org-variable-name">bm_open_method</span>=<span class="org-highlight-numbers-number">0</span>
@ -276,9 +40,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org9e44fa8" class="outline-2">
<h2 id="org9e44fa8">Volume</h2>
<div class="outline-text-2" id="text-org9e44fa8">
<div id="outline-container-org9ed27d2" class="outline-2">
<h2 id="org9ed27d2">Volume</h2>
<div class="outline-text-2" id="text-org9ed27d2">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">volume</span>]
<span class="org-variable-name">mount_on_startup</span>=<span class="org-highlight-numbers-number">0</span>
@ -289,9 +53,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-orgb150f41" class="outline-2">
<h2 id="orgb150f41">UI</h2>
<div class="outline-text-2" id="text-orgb150f41">
<div id="outline-container-org8c3fa60" class="outline-2">
<h2 id="org8c3fa60">UI</h2>
<div class="outline-text-2" id="text-org8c3fa60">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">ui</span>]
<span class="org-variable-name">always_show_tabs</span>=<span class="org-highlight-numbers-number">0</span>
@ -318,7 +82,7 @@ for the JavaScript code in this tag.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:20</p>
<p class="date">Created: 2021-01-08 ven. 01:33</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-01 dim. 22:50 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Rofi Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -236,15 +22,15 @@
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgf46135a">Rofi</a></li>
<li><a href="#org0c04f0a">Theme</a></li>
<li><a href="#orgcda15fb">Rofi</a></li>
<li><a href="#orged85414">Theme</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgf46135a" class="outline-2">
<h2 id="orgf46135a">Rofi</h2>
<div class="outline-text-2" id="text-orgf46135a">
<div id="outline-container-orgcda15fb" class="outline-2">
<h2 id="orgcda15fb">Rofi</h2>
<div class="outline-text-2" id="text-orgcda15fb">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> {
modi: <span class="org-string">"window,run,ssh"</span>;
@ -297,47 +83,47 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
</div>
</div>
<div id="outline-container-org0c04f0a" class="outline-2">
<h2 id="org0c04f0a">Theme</h2>
<div class="outline-text-2" id="text-org0c04f0a">
<div id="outline-container-orged85414" class="outline-2">
<h2 id="orged85414">Theme</h2>
<div class="outline-text-2" id="text-orged85414">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-type">configuration</span> {
me-select-entry: <span class="org-string">"MouseSecondary"</span>;
me-accept-entry: <span class="org-string">"MousePrimary"</span>;
scroll-method: <span class="org-highlight-numbers-number">1</span>;
show-icons: true;
sidebar-mode: true;
kb-custom-1: <span class="org-string">""</span>;
kb-custom-2: <span class="org-string">""</span>;
kb-custom-3: <span class="org-string">""</span>;
kb-custom-4: <span class="org-string">""</span>;
kb-custom-5: <span class="org-string">""</span>;
kb-custom-6: <span class="org-string">""</span>;
kb-custom-7: <span class="org-string">""</span>;
kb-custom-8: <span class="org-string">""</span>;
kb-custom-9: <span class="org-string">""</span>;
kb-custom-10: <span class="org-string">""</span>;
kb-select-1: <span class="org-string">"Alt+1"</span>;
kb-select-2: <span class="org-string">"Alt+2"</span>;
kb-select-3: <span class="org-string">"Alt+3"</span>;
kb-select-4: <span class="org-string">"Alt+4"</span>;
kb-select-5: <span class="org-string">"Alt+5"</span>;
kb-select-6: <span class="org-string">"Alt+6"</span>;
kb-select-7: <span class="org-string">"Alt+7"</span>;
kb-select-8: <span class="org-string">"Alt+8"</span>;
kb-select-9: <span class="org-string">"Alt+9"</span>;
kb-select-10: <span class="org-string">"Alt+0"</span>;
me-select-entry: <span class="org-string">"MouseSecondary"</span>;
me-accept-entry: <span class="org-string">"MousePrimary"</span>;
scroll-method: <span class="org-highlight-numbers-number">1</span>;
show-icons: true;
sidebar-mode: true;
kb-custom-1: <span class="org-string">""</span>;
kb-custom-2: <span class="org-string">""</span>;
kb-custom-3: <span class="org-string">""</span>;
kb-custom-4: <span class="org-string">""</span>;
kb-custom-5: <span class="org-string">""</span>;
kb-custom-6: <span class="org-string">""</span>;
kb-custom-7: <span class="org-string">""</span>;
kb-custom-8: <span class="org-string">""</span>;
kb-custom-9: <span class="org-string">""</span>;
kb-custom-10: <span class="org-string">""</span>;
kb-select-1: <span class="org-string">"Alt+1"</span>;
kb-select-2: <span class="org-string">"Alt+2"</span>;
kb-select-3: <span class="org-string">"Alt+3"</span>;
kb-select-4: <span class="org-string">"Alt+4"</span>;
kb-select-5: <span class="org-string">"Alt+5"</span>;
kb-select-6: <span class="org-string">"Alt+6"</span>;
kb-select-7: <span class="org-string">"Alt+7"</span>;
kb-select-8: <span class="org-string">"Alt+8"</span>;
kb-select-9: <span class="org-string">"Alt+9"</span>;
kb-select-10: <span class="org-string">"Alt+0"</span>;
}
<span class="org-type">*</span> {
//// COLORS ////
//// uncomment to match bspwm edition theme
background: <span class="org-comment-delimiter">#</span><span class="org-comment">292f34FF;</span>
background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">292f3400;</span>
foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">F6F9FFFF;</span>
selected: <span class="org-comment-delimiter">#</span><span class="org-comment">1ABB9BFF;</span>
selected-foreground: @foreground;
background: <span class="org-comment-delimiter">#</span><span class="org-comment">292f34FF;</span>
background-color: <span class="org-comment-delimiter">#</span><span class="org-comment">292f3400;</span>
foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">F6F9FFFF;</span>
selected: <span class="org-comment-delimiter">#</span><span class="org-comment">1ABB9BFF;</span>
selected-foreground: @foreground;
//// uncomment to match Adapta Nokto theme
// background: <span class="org-comment-delimiter">#</span><span class="org-comment">222D32E8;</span>
@ -347,51 +133,50 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
// selected-foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">FFFFFFFF;</span>
//// common - active and urgent
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span>
urgent-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
urgent-foreground: @foreground;
selected-urgent-background: @urgent-foreground;
selected-urgent-foreground: @urgent-background;
active-background: <span class="org-comment-delimiter">#</span><span class="org-comment">3A464BFF;</span>
urgent-background: <span class="org-comment-delimiter">#</span><span class="org-comment">800000FF;</span>
urgent-foreground: @foreground;
selected-urgent-background: @urgent-foreground;
selected-urgent-foreground: @urgent-background;
//// TEXT ////
font: <span class="org-string">"xos4 Terminus 18px"</span>;
// font: <span class="org-string">"Knack Nerd Font 16px"</span>;
text-color: @foreground;
font: <span class="org-string">"xos4 Terminus 18px"</span>;
text-color: @foreground;
//// PADDING ETC ////
margin: 0px;
border: 0px;
padding: 0px;
spacing: 0px;
elementpadding: 2px 0px;
elementmargin: 0px 2px;
listmargin: 0px 2px 0px 0px;
margin: 0px;
border: 0px;
padding: 0px;
spacing: 0px;
elementpadding: 2px 0px;
elementmargin: 0px 2px;
listmargin: 0px 2px 0px 0px;
//// SIZE ////
windowwidth: 40ch;
buttonwidth: 18ch;
lines: <span class="org-highlight-numbers-number">12</span>;
fixed-height: false;
windowwidth: 40ch;
buttonwidth: 18ch;
lines: <span class="org-highlight-numbers-number">12</span>;
fixed-height: false;
//// POSITION ////
location: northwest;
anchor: northwest;
x-offset: 0px;
y-offset: 24px;
location: northwest;
anchor: northwest;
x-offset: 0px;
y-offset: 24px;
//// LAYOUT ////
scrollbar: true;
scrollbar: true;
//// uncomment to get submenu-like style
menustyle: [ sb-mainbox ];
buttonpadding: 2px 1ch;
button-bg: @background;
dynamic: true;
menustyle: [ sb-mainbox ];
buttonpadding: 2px 1ch;
button-bg: @background;
dynamic: true;
//// uncomment to get tabs-like style
// menustyle: [ tb-mainbox ];
@ -400,86 +185,86 @@ kb-cancel: <span class="org-string">"Escape,Control+g"</span>;
}
//////////////////////////////////////////
<span class="org-type">window</span> {
width: @windowwidth;
children: @menustyle;
width: @windowwidth;
children: @menustyle;
}
//submenu-style
<span class="org-type">sb-mainbox</span> {
orientation: horizontal;
children: [ sidebar, vertibox ];
orientation: horizontal;
children: [ sidebar, vertibox ];
}
//tabs-style
<span class="org-type">tb-mainbox</span> {
orientation: vertical;
children: [ inputbar, horibox ];
background-color: @background;
orientation: vertical;
children: [ inputbar, horibox ];
background-color: @background;
}
//desktop-submenu
<span class="org-type">dt-mainbox</span> {
orientation: vertical;
children: [ boxdummy, sb-mainbox ];
orientation: vertical;
children: [ boxdummy, sb-mainbox ];
}
<span class="org-type">horibox</span> {
orientation: horizontal;
children: [ listview, sidebar ];
orientation: horizontal;
children: [ listview, sidebar ];
}
<span class="org-type">sidebar</span> {
orientation: vertical;
orientation: vertical;
}
<span class="org-type">button</span> {
horizontal-align: <span class="org-highlight-numbers-number">0</span>;
padding: @buttonpadding;
width: @buttonwidth;
background-color: @button-bg;
expand: false;
horizontal-align: <span class="org-highlight-numbers-number">0</span>;
padding: @buttonpadding;
width: @buttonwidth;
background-color: @button-bg;
expand: false;
}
<span class="org-type">vertibox</span> {
orientation: vertical;
children: [ inputbar, listview ];
background-color: @background;
orientation: vertical;
children: [ inputbar, listview ];
background-color: @background;
}
<span class="org-type">prompt</span> {
enabled: false;
enabled: false;
}
<span class="org-type">listview</span> {
margin: @listmargin;
margin: @listmargin;
}
<span class="org-type">scrollbar</span> {
handle-width: 0.5ch;
handle-color: @selected;
handle-width: 0.5ch;
handle-color: @selected;
}
<span class="org-type">boxdummy</span> {
enabled: false;
orientation: vertical;
expand: false;
children: [ textboxdummy ];
enabled: false;
orientation: vertical;
expand: false;
children: [ textboxdummy ];
}
<span class="org-type">textboxdummy</span> {
str: <span class="org-string">" "</span>;
str: <span class="org-string">" "</span>;
}
<span class="org-type">element, inputbar, textboxdummy</span> {
padding: @elementpadding;
margin: @elementmargin;
width: @elementwidth;
padding: @elementpadding;
margin: @elementmargin;
width: @elementwidth;
}
element.normal.active,
<span class="org-type">element.alternate.active</span> {
background-color: @active-background;
text-color: @selected-foreground;
background-color: @active-background;
text-color: @selected-foreground;
}
element.selected,
<span class="org-type">button.selected</span> {
background-color: @selected;
text-color: @selected-foreground;
background-color: @selected;
text-color: @selected-foreground;
}
element.normal.urgent,
<span class="org-type">element.alternate.urgent</span> {
background-color: @urgent-background;
text-color: @urgent-foreground;
background-color: @urgent-background;
text-color: @urgent-foreground;
}
<span class="org-type">element.selected.urgent</span> {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
</pre>
</div>
@ -488,7 +273,7 @@ element.normal.urgent,
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-01 dim. 22:50</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,615 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-22 dim. 23:03 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Scripts</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Scripts</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgfbe1cfb">Wallpapers</a></li>
<li><a href="#orgf13ea83">LockScreen</a></li>
<li><a href="#org872b600">Lock / Exit / Suspend / &#x2026;</a></li>
<li><a href="#org8a282fd">NAS - Mount</a></li>
<li><a href="#orge80ca70">Icons Unicode</a></li>
<li><a href="#orgfe8be19">Org-Protocol-Capture-HTML</a></li>
<li><a href="#orgcd3ccf1">Restart Mopidy</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgfbe1cfb" class="outline-2">
<h2 id="orgfbe1cfb">Wallpapers</h2>
<div class="outline-text-2" id="text-orgfbe1cfb">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">while</span> true; <span class="org-keyword">do</span>
nitrogen --set-zoom-fill --random <span class="org-string">".wallpapers"</span>
<span class="org-type">sleep</span> 10m
<span class="org-keyword">done</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf13ea83" class="outline-2">
<h2 id="orgf13ea83">LockScreen</h2>
<div class="outline-text-2" id="text-orgf13ea83">
<p>
First, turn off dunst
</p>
<div class="org-src-container">
<pre class="src src-bash">killall -SIGUSR1 dunst &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"off"</span> &gt; /tmp/dunststatus;
</pre>
</div>
<p>
Turn off the music if it is playing.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">MPC_STATE</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">mpc</span> | sed -n <span class="org-string">'2p'</span> | cut -d <span class="org-string">"["</span> -f2 | cut -d <span class="org-string">"]"</span> -f1<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">MPC_STATE</span> == <span class="org-string">"playing"</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
mpc pause
<span class="org-keyword">fi</span>
</pre>
</div>
<p>
Then take a screenshot and process it.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
<span class="org-type">rm</span> -f $<span class="org-variable-name">temp_file</span>
maim $<span class="org-variable-name">temp_file</span>
convert $<span class="org-variable-name">temp_file</span> -scale 10% -scale 1000% $<span class="org-variable-name">temp_file</span>
</pre>
</div>
<p>
Finally, lock the screen using <code>i3lock</code>.
</p>
<div class="org-src-container">
<pre class="src src-bash">i3lock --no-unlock-indicator --ignore-empty-password --nofork --image=$<span class="org-variable-name">temp_file</span> &amp;&amp; killall -SIGUSR2 dunst &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"on"</span> &gt; /tmp/dunststatus
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">revert</span><span class="org-rainbow-delimiters-depth-1">()</span> <span class="org-rainbow-delimiters-depth-1">{</span>
xset dpms <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span> <span class="org-highlight-numbers-number">0</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">trap</span> revert HUP INT TERM
<span class="org-comment-delimiter"># </span><span class="org-comment">turn off screen after 5 seconds</span>
xset +dpms dpms <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span> <span class="org-highlight-numbers-number">5</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Parameters</span>
<span class="org-variable-name">temp_file</span>=<span class="org-string">"/tmp/screen.png"</span>
<span class="org-variable-name">icon</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">HOME</span></span><span class="org-string">/Pictures/Evil_Rick_Sprite.png"</span>
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">1920</span>
<span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">1080</span>
<span class="org-variable-name">blur_factor</span>=<span class="org-highlight-numbers-number">6</span>
<span class="org-variable-name">lock_blur_factor</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Take the screen shot, blur the image and add the icon</span>
ffmpeg -f x11grab -video_size <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{width}</span></span><span class="org-string">x</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{height}</span></span><span class="org-string">"</span> -y -i $<span class="org-variable-name">DISPLAY</span> -i $<span class="org-variable-name">icon</span> -filter_complex <span class="org-string">"boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">blur_factor</span></span><span class="org-string">:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">blur_factor</span></span><span class="org-string">,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,boxblur=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">lock_blur_factor</span></span><span class="org-string">:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">lock_blur_factor</span></span><span class="org-string">"</span> -vframes <span class="org-highlight-numbers-number">1</span> $<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternative</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">maim -d 1 $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -blur 0x8 $temp_file $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">convert -composite $temp_file $icon -gravity South -geometry -20x1200 $temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Lock the screen with the image</span>
i3lock --no-unlock-indicator --ignore-empty-password --show-failed-attempts --nofork --image=$<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Remove the screenshot</span>
<span class="org-type">rm</span> $<span class="org-variable-name">temp_file</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Don't turn off screen when back from lock</span>
revert
</pre>
</div>
</div>
</div>
<div id="outline-container-org872b600" class="outline-2">
<h2 id="org872b600">Lock / Exit / Suspend / &#x2026;</h2>
<div class="outline-text-2" id="text-org872b600">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">option</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"Lock\nExit\nLogout\nSuspend\nHibernate\nReboot\nShutdown"</span> | rofi -i -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">option</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
<span class="org-string">"Lock"</span>)
i3exit lock ;;
<span class="org-string">"Exit"</span>)
i3exit switch_user ;;
<span class="org-string">"Logout"</span>)
i3exit logout ;;
<span class="org-string">"Suspend"</span>)
i3exit suspend ;;
<span class="org-string">"Hibernate"</span>)
i3exit hibernate ;;
<span class="org-string">"Reboot"</span>)
i3exit reboot ;;
<span class="org-string">"Shutdown"</span>)
i3exit shutdown ;;
<span class="org-keyword">esac</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org8a282fd" class="outline-2">
<h2 id="org8a282fd">NAS - Mount</h2>
<div class="outline-text-2" id="text-org8a282fd">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"mount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> <span class="org-type">sudo</span> -A mount 192.168.1.2:/volume1/Downloads/ /mnt/NAS/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Successfully mounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Error while mounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"umount"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> <span class="org-type">sudo</span> -A umount /mnt/NAS/; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Successfully unmounted'</span>
<span class="org-keyword">else</span>
dunstify --replace=<span class="org-highlight-numbers-number">58249</span> <span class="org-string">'NAS'</span> <span class="org-string">'Error while unmounted'</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge80ca70" class="outline-2">
<h2 id="orge80ca70">Icons Unicode</h2>
<div class="outline-text-2" id="text-orge80ca70">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">The famous "get a menu of emojis to copy" script.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Must have xclip installed to even show menu.</span>
xclip -h <span class="org-highlight-numbers-number">2</span>&gt;/dev/null || <span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">chosen</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">cut</span> -d <span class="org-string">';'</span> -f1 ~/.local/share/emoji | rofi -dmenu -i -l <span class="org-highlight-numbers-number">20</span> | sed <span class="org-string">"s/ .*//"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span> != <span class="org-string">""</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-keyword">exit</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If you run this command with an argument, it will automatically insert the character.</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
xdotool key Shift+Insert
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">"</span> | tr -d <span class="org-string">'\n'</span> | xsel -ib
dunstify <span class="org-string">"'</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">chosen</span></span><span class="org-string">' copied to clipboard."</span> &amp;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfe8be19" class="outline-2">
<h2 id="orgfe8be19">Org-Protocol-Capture-HTML</h2>
<div class="outline-text-2" id="text-orgfe8be19">
<p>
Defaults
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">heading</span>=<span class="org-string">"link"</span>
<span class="org-variable-name">template</span>=<span class="org-string">"pu"</span>
<span class="org-variable-name">url</span>=<span class="org-string">"https://google.com/"</span>
</pre>
</div>
<p>
Functions
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-2">[</span><span class="org-rainbow-delimiters-depth-3">[</span> -n $<span class="org-variable-name">debug</span> <span class="org-rainbow-delimiters-depth-3">]</span><span class="org-rainbow-delimiters-depth-2">]</span>
<span class="org-keyword">then</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
<span class="org-type">echo</span> <span class="org-string">"DEBUG: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-rainbow-delimiters-depth-2">}</span>
debug <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-keyword">function</span> <span class="org-function-name">debug</span> <span class="org-rainbow-delimiters-depth-2">{</span>
true
<span class="org-rainbow-delimiters-depth-2">}</span>
<span class="org-keyword">fi</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">die</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span> &gt;&amp;<span class="org-highlight-numbers-number">2</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
<span class="org-keyword">function</span> <span class="org-function-name">urlencode</span> <span class="org-rainbow-delimiters-depth-1">{</span>
python -c <span class="org-string">"</span>
<span class="org-string">from __future__ import print_function</span>
<span class="org-string">try:</span>
<span class="org-string"> from urllib import quote # Python 2</span>
<span class="org-string">except ImportError:</span>
<span class="org-string"> from urllib.parse import quote # Python 3</span>
<span class="org-string">import sys</span>
<span class="org-string">print(quote(sys.stdin.read()[:-1], safe=''))"</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
<p>
Documentation
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">function</span> <span class="org-function-name">usage</span> <span class="org-rainbow-delimiters-depth-1">{</span>
<span class="org-type">cat</span> &lt;&lt;EOF
<span class="org-sh-heredoc">$0 [OPTIONS] [HTML]</span>
<span class="org-sh-heredoc">html | $0 [OPTIONS]</span>
<span class="org-sh-heredoc">Send HTML to Emacs through org-protocol, passing it through Pandoc to</span>
<span class="org-sh-heredoc">convert HTML to Org-mode. HTML may be passed as an argument or</span>
<span class="org-sh-heredoc">through STDIN. If only URL is given, it will be downloaded and its</span>
<span class="org-sh-heredoc">contents used.</span>
<span class="org-sh-heredoc">Options:</span>
<span class="org-sh-heredoc"> -h, --heading HEADING Heading</span>
<span class="org-sh-heredoc"> -t, --template TEMPLATE org-capture template key (default: pu)</span>
<span class="org-sh-heredoc"> -u, --url URL URL</span>
<span class="org-sh-heredoc"> --debug Print debug info</span>
<span class="org-sh-heredoc"> --help I need somebody!</span>
<span class="org-sh-heredoc">EOF</span>
<span class="org-rainbow-delimiters-depth-1">}</span>
</pre>
</div>
<p>
Arguments
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">args</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">getopt</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">0</span></span><span class="org-string">"</span> -o dh:rt:u: -l debug,help,heading:,template:,url: -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> <span class="org-sh-escaped-newline">\</span>
|| die <span class="org-string">"Unable to parse args. Is getopt installed?"</span>
<span class="org-builtin">eval</span> set -- <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
<span class="org-keyword">while</span> true
<span class="org-keyword">do</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
-d|--debug)
<span class="org-variable-name">debug</span>=true
debug <span class="org-string">"Debugging on"</span>
;;
--help)
usage
<span class="org-keyword">exit</span>
;;
-h|--heading)
<span class="org-builtin">shift</span>
<span class="org-variable-name">heading</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
-t|--template)
<span class="org-builtin">shift</span>
<span class="org-variable-name">template</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
-u|--url)
<span class="org-builtin">shift</span>
<span class="org-variable-name">url</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span>
;;
--)
<span class="org-comment-delimiter"># </span><span class="org-comment">Remaining args</span>
<span class="org-builtin">shift</span>
<span class="org-variable-name">rest</span>=<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">break</span>
;;
<span class="org-keyword">esac</span>
<span class="org-builtin">shift</span>
<span class="org-keyword">done</span>
debug <span class="org-string">"ARGS: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">args</span></span><span class="org-string">"</span>
debug <span class="org-string">"Remaining args: </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{rest[@]}</span></span><span class="org-string">"</span>
</pre>
</div>
<p>
Get HTML
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> -n $<span class="org-variable-name">@</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
debug <span class="org-string">"Text from args"</span>
<span class="org-variable-name">body</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">@</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
<p>
URL-encode
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">heading</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode heading."</span>
<span class="org-variable-name">url</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode URL."</span>
<span class="org-variable-name">body</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">urlencode</span> &lt;&lt;&lt;<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span> || die <span class="org-string">"Unable to urlencode text."</span>
</pre>
</div>
<p>
Send to Emacs
</p>
<div class="org-src-container">
<pre class="src src-bash">emacsclient <span class="org-string">"org-protocol://capture?template=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">template</span></span><span class="org-string">&amp;url=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">url</span></span><span class="org-string">&amp;title=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">heading</span></span><span class="org-string">&amp;body=</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">body</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgcd3ccf1" class="outline-2">
<h2 id="orgcd3ccf1">Restart Mopidy</h2>
<div class="outline-text-2" id="text-orgcd3ccf1">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">pids</span>=<span class="org-rainbow-delimiters-depth-1">(</span> $<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-sh-quoted-exec">pgrep</span> -f mopidy<span class="org-rainbow-delimiters-depth-2">)</span> <span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">for</span> pid<span class="org-keyword"> in</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{pids[@]}</span></span><span class="org-string">"</span>; <span class="org-keyword">do</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> $<span class="org-variable-name">pid</span> != $<span class="org-variable-name">$</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">kill</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">pid</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">done</span>
<span class="org-type">echo</span> <span class="org-string">"Killed mopidy."</span>
<span class="org-type">echo</span> <span class="org-string">"Restarting mopidy..."</span>
mopidy --config ~/.config/mopidy/mopidy.conf &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
<span class="org-type">echo</span> <span class="org-string">"Done"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-22 dim. 23:03</p>
</div>
</body>
</html>

89
docs/smart-tv.html Normal file
View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Smart TV</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Smart TV</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgc99bcbe">Hardware</a></li>
<li><a href="#orgdcb6edf">Installation</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgc99bcbe" class="outline-2">
<h2 id="orgc99bcbe">Hardware</h2>
<div class="outline-text-2" id="text-orgc99bcbe">
<p>
MINISFORUM X35G Mini PC
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 1:</span> Smart TV Hardware</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left"><b>Part</b></th>
<th scope="col" class="org-left"><b>Model</b></th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left">CPU</td>
<td class="org-left">10th Gen Intel Core i3-1005G</td>
</tr>
<tr>
<td class="org-left">RAM</td>
<td class="org-left">16Go (2x8Go) DDR4 3200MHz</td>
</tr>
<tr>
<td class="org-left">SSD NVME</td>
<td class="org-left">512Gb</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-orgdcb6edf" class="outline-2">
<h2 id="orgdcb6edf">Installation</h2>
<div class="outline-text-2" id="text-orgdcb6edf">
<ul class="org-ul">
<li>Manjaro KDE</li>
<li>Install <code>paru</code></li>
<li>Install Jellyfin, Molotov, Spotify, &#x2026;</li>
<li>SSH access</li>
</ul>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-19 jeu. 10:38 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simple X Hotkey Daemon</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -236,51 +22,49 @@
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org2fb1fb3">Basic</a></li>
<li><a href="#org09132ec">Set shut down, restart and locking features</a></li>
<li><a href="#orgbf890ea">Start Applications</a></li>
<li><a href="#orga722b3c">Multimedia keys</a>
<li><a href="#orgc1e18e6">Basic</a></li>
<li><a href="#orgeadcbf4">Multimedia keys</a>
<ul>
<li><a href="#orgd2c2b8e">Sound</a></li>
<li><a href="#orgfbf581a">Backlight</a></li>
<li><a href="#org52b748d">Change Tracks</a></li>
<li><a href="#org4be15b6">Print Screen</a></li>
<li><a href="#orga6c4085">Other</a></li>
<li><a href="#orgd68d181">Sound</a></li>
<li><a href="#org24e45ab">Backlight</a></li>
<li><a href="#org4c0670a">Change Tracks</a></li>
<li><a href="#orgd572bed">Print Screen</a></li>
<li><a href="#orga25cc09">Other</a></li>
</ul>
</li>
<li><a href="#org3ba2ae2">Command Mode</a></li>
<li><a href="#org592413b">Change Keyboard Layout</a></li>
<li><a href="#org9d0a9b9">BSPWM related</a>
<li><a href="#orgfa5db4a"><code>Super + key</code> - Start Applications</a></li>
<li><a href="#orgda8c5e4"><code>Super + Shift</code> - Managing Applications</a></li>
<li><a href="#orgad54cb1"><code>Super + Space</code> - Command Mode</a></li>
<li><a href="#org655f822">BSPWM related</a>
<ul>
<li><a href="#org97f0c44">BSPWM hotkeys</a></li>
<li><a href="#org2695587">Monocle Layout</a></li>
<li><a href="#org450c8fd">Set the window State</a></li>
<li><a href="#org1e277da">Sticky Window</a></li>
<li><a href="#org33a7d86">Focus and Swap</a></li>
<li><a href="#orga753787">Preselect</a></li>
<li><a href="#org2696cae">Resize</a></li>
<li><a href="#orgb21b9fa">BSPWM hotkeys</a></li>
<li><a href="#org7784897">Monocle Layout</a></li>
<li><a href="#orgbe96bd6">Set the window State</a></li>
<li><a href="#org8a5891f">Sticky Window</a></li>
<li><a href="#org9363f85">Focus and Swap</a></li>
<li><a href="#org39668cf">Preselect</a></li>
<li><a href="#orgefaac3d">Resize</a></li>
</ul>
</li>
<li><a href="#org177f7f6">I3 related</a>
<li><a href="#orgb8b77ba">I3 related</a>
<ul>
<li><a href="#org43a8bcb">Quit/Restart hotkeys</a></li>
<li><a href="#orgd7260b2">Monocle Layout</a></li>
<li><a href="#org7675fb7">Set the window State</a></li>
<li><a href="#org370d3f4">Sticky Window</a></li>
<li><a href="#orgd24232d">focus/swap</a></li>
<li><a href="#org1822729">Preselect</a></li>
<li><a href="#org9872528">Resize</a></li>
<li><a href="#orgf0994dd">Kill Window</a></li>
<li><a href="#orgf0e6469">Set the window State</a></li>
<li><a href="#org993d527">focus/swap</a></li>
<li><a href="#org1163075">Preselect</a></li>
<li><a href="#org523987d">Resize</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org2fb1fb3" class="outline-2">
<h2 id="org2fb1fb3">Basic</h2>
<div class="outline-text-2" id="text-org2fb1fb3">
<div id="outline-container-orgc1e18e6" class="outline-2">
<h2 id="orgc1e18e6">Basic</h2>
<div class="outline-text-2" id="text-orgc1e18e6">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + x
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Kill Windows</span>
super + ctrl + x
xkill
</pre>
</div>
@ -288,60 +72,156 @@
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">make sxhkd reload its configuration files:</span>
super + Escape
pkill -USR1 -x sxhkd
pkill -usr1 -x sxhkd; notify-send <span class="org-string">'sxhkd'</span> <span class="org-string">'Reloaded config'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Update Polybar</span>
super + r
$HOME/.config/polybar/scripts/launch.sh
super + shift + r
polybar-msg cmd restart
</pre>
</div>
</div>
</div>
<div id="outline-container-org09132ec" class="outline-2">
<h2 id="org09132ec">Set shut down, restart and locking features</h2>
<div class="outline-text-2" id="text-org09132ec">
<div class="org-src-container">
<pre class="src src-conf">XF86PowerOff
$HOME/scripts/quit.sh
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
XF86PowerOff
i3exit
<span class="org-comment-delimiter"># </span><span class="org-comment">Exit Screen</span>
super + <span class="org-highlight-numbers-number">0</span>
$HOME/scripts/quit.sh
i3exit
</pre>
</div>
<p>
Change Keyboard Layout:
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Change keyboard to US-International layout</span>
super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
<span class="org-comment-delimiter"># </span><span class="org-comment">Change keyboard to US layout</span>
super + shift + d
setxkbmap -layout us -option caps:escape
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbf890ea" class="outline-2">
<h2 id="orgbf890ea">Start Applications</h2>
<div class="outline-text-2" id="text-orgbf890ea">
<div id="outline-container-orgeadcbf4" class="outline-2">
<h2 id="orgeadcbf4">Multimedia keys</h2>
<div class="outline-text-2" id="text-orgeadcbf4">
</div>
<div id="outline-container-orgd68d181" class="outline-3">
<h3 id="orgd68d181">Sound</h3>
<div class="outline-text-3" id="text-orgd68d181">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start program launcher</span>
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Mute/Unmute</span>
XF86AudioMute
amixer -D pulse sset Master toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Increase Volume</span>
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
<span class="org-comment-delimiter"># </span><span class="org-comment">Decrease Volume</span>
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
</pre>
</div>
</div>
</div>
<div id="outline-container-org24e45ab" class="outline-3">
<h3 id="org24e45ab">Backlight</h3>
<div class="outline-text-3" id="text-org24e45ab">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Increase Backlight</span>
XF86MonBrightnessUp
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Descrease Backlight</span>
XF86MonBrightnessDown
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4c0670a" class="outline-3">
<h3 id="org4c0670a">Change Tracks</h3>
<div class="outline-text-3" id="text-org4c0670a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Play/Pause music</span>
super + period
mpc toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous/Next music</span>
super + {greater,less}
mpc {next,prev}
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Play/Pause music</span>
XF86AudioPlay
mpc toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Next music</span>
XF86AudioNext
mpc next
<span class="org-comment-delimiter"># </span><span class="org-comment">Previous music</span>
XF86AudioPrev
mpc prev
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd572bed" class="outline-3">
<h3 id="orgd572bed">Print Screen</h3>
<div class="outline-text-3" id="text-orgd572bed">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Screenshot script</span>
Print
~/.local/bin/screenshot
<span class="org-comment-delimiter"># </span><span class="org-comment">Switch Windows</span>
XF86Display
rofi -show window
</pre>
</div>
</div>
</div>
<div id="outline-container-orga25cc09" class="outline-3">
<h3 id="orga25cc09">Other</h3>
<div class="outline-text-3" id="text-orga25cc09">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Run Command</span>
XF86Search
rofi -show run
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgfa5db4a" class="outline-2">
<h2 id="orgfa5db4a"><code>Super + key</code> - Start Applications</h2>
<div class="outline-text-2" id="text-orgfa5db4a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Switch Windows</span>
super + w
rofi -show window
<span class="org-comment-delimiter"># </span><span class="org-comment">program launcher</span>
super + d
rofi -show run
<span class="org-comment-delimiter"># </span><span class="org-comment">Launch categorized menu</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">categorized menu</span>
super + z
rofi -show drun
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Sound Manager</span>
super + shift + s
pavucontrol
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Bluetooth Manager</span>
super + shift + b
blueman-manager
<span class="org-comment-delimiter"># </span><span class="org-comment">Windows Switch</span>
super + shift + w
rofi -show window
<span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">super + shift + f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$HOME/bin/bukurun</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
super + shift + p
rofi-pass
</pre>
</div>
@ -350,14 +230,6 @@ super + shift + p
super + Return
$TERMINAL
<span class="org-comment-delimiter"># </span><span class="org-comment">Tmux Terminal</span>
super + shift + Return
$TERMINAL -e <span class="org-string">'tmux'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Command line Calendar</span>
super + shift + c
$TERMINAL -e <span class="org-string">"khal interactive"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">File Manager</span>
super + o
$TERMINAL -e <span class="org-string">"tmux new-session -A -s ranger ranger"</span>
@ -365,94 +237,57 @@ super + o
<span class="org-comment-delimiter"># </span><span class="org-comment">Browser</span>
super + i
qutebrowser
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
super + m
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
super + e
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga722b3c" class="outline-2">
<h2 id="orga722b3c">Multimedia keys</h2>
<div class="outline-text-2" id="text-orga722b3c">
</div>
<div id="outline-container-orgd2c2b8e" class="outline-3">
<h3 id="orgd2c2b8e">Sound</h3>
<div class="outline-text-3" id="text-orgd2c2b8e">
<div id="outline-container-orgda8c5e4" class="outline-2">
<h2 id="orgda8c5e4"><code>Super + Shift</code> - Managing Applications</h2>
<div class="outline-text-2" id="text-orgda8c5e4">
<div class="org-src-container">
<pre class="src src-conf">XF86AudioMute
amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
</pre>
</div>
</div>
</div>
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Network Manager</span>
super + shift + w
$TERMINAL -e <span class="org-string">'sudo nmtui'</span>
<div id="outline-container-orgfbf581a" class="outline-3">
<h3 id="orgfbf581a">Backlight</h3>
<div class="outline-text-3" id="text-orgfbf581a">
<div class="org-src-container">
<pre class="src src-conf">XF86MonBrightnessUp
xbacklight -inc <span class="org-highlight-numbers-number">10</span>
XF86MonBrightnessDown
xbacklight -dec <span class="org-highlight-numbers-number">10</span>
</pre>
</div>
</div>
</div>
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
super + shift + b
blueman-manager
<div id="outline-container-org52b748d" class="outline-3">
<h3 id="org52b748d">Change Tracks</h3>
<div class="outline-text-3" id="text-org52b748d">
<div class="org-src-container">
<pre class="src src-conf">super + period
mpc toggle
super + {greater,less}
mpc {next,prev}
<span class="org-comment-delimiter"># </span><span class="org-comment">Calculator</span>
super + shift + c
rofi-calc
<span class="org-comment-delimiter"># </span><span class="org-comment">Sound Manager</span>
super + shift + s
pavucontrol
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Bookmarks</span>
super + shift + f
bukurun
<span class="org-comment-delimiter"># </span><span class="org-comment">Passwords</span>
super + shift + p
rofi-pass
</pre>
</div>
</div>
</div>
<div id="outline-container-org4be15b6" class="outline-3">
<h3 id="org4be15b6">Print Screen</h3>
<div class="outline-text-3" id="text-org4be15b6">
<div class="org-src-container">
<pre class="src src-conf">Print
~/bin/screenshot
XF86Display
rofi -show window
</pre>
</div>
</div>
</div>
<div id="outline-container-orga6c4085" class="outline-3">
<h3 id="orga6c4085">Other</h3>
<div class="outline-text-3" id="text-orga6c4085">
<div class="org-src-container">
<pre class="src src-conf">XF86Search
rofi -show run
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org3ba2ae2" class="outline-2">
<h2 id="org3ba2ae2">Command Mode</h2>
<div class="outline-text-2" id="text-org3ba2ae2">
<div id="outline-container-orgad54cb1" class="outline-2">
<h2 id="orgad54cb1"><code>Super + Space</code> - Command Mode</h2>
<div class="outline-text-2" id="text-orgad54cb1">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Command line Calendar Client (khal)</span>
super + space ; c
@ -466,11 +301,12 @@ super + space ; shift + c
super + space ; o
pcmanfm;
<span class="org-comment-delimiter"># </span><span class="org-comment">Mails with neomutt</span>
super + space ; m
$TERMINAL -e <span class="org-string">"tmux new-session -A -s neomutt neomutt"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Download with Aria2c</span>
super + space ; d
$TERMINAL -e <span class="org-string">"tmux new-session -A -s aria2p aria2p --port 6800 --host http://dl.tdehaeze.xyz --secret $(pass dl.tdehaeze.xyz/tdehaeze | sed -n 1p)"</span>
super + space ; shift + m
<span class="org-comment-delimiter"># </span><span class="org-comment">Run another instance of Neomutt in read-only mode</span>
super + space ; m
$TERMINAL -e <span class="org-string">"neomutt -R"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Weechat</span>
@ -487,49 +323,36 @@ super + space ; p
<span class="org-comment-delimiter"># </span><span class="org-comment">Print Screen</span>
super + space ; shift + p
$HOME/bin/mopidy-restart
$HOME/.local/bin/mopidy-restart
<span class="org-comment-delimiter"># </span><span class="org-comment">Default Browser</span>
super + space ; i
$BROWSER;
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternative Browser</span>
super + space ; shift + i
brave;
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Torrent Managaer</span>
super + space ; t
$TERMINAL -e <span class="org-string">"tremc"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs</span>
super + space ; e
emacs;
<span class="org-comment-delimiter"># </span><span class="org-comment">Emacs Client</span>
super + space ; shift + e
<span class="org-variable-name">emacsclient -create-frame --alternate-editor</span>=<span class="org-string">""</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Weather</span>
super + space ; shift + w
weather;
</pre>
</div>
</div>
</div>
<div id="outline-container-org592413b" class="outline-2">
<h2 id="org592413b">Change Keyboard Layout</h2>
<div class="outline-text-2" id="text-org592413b">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
setxkbmap -layout us -option caps:escape
</pre>
</div>
</div>
<div id="outline-container-org655f822" class="outline-2">
<h2 id="org655f822">BSPWM related</h2>
<div class="outline-text-2" id="text-org655f822">
</div>
<div id="outline-container-org9d0a9b9" class="outline-2">
<h2 id="org9d0a9b9">BSPWM related</h2>
<div class="outline-text-2" id="text-org9d0a9b9">
</div>
<div id="outline-container-org97f0c44" class="outline-3">
<h3 id="org97f0c44">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-org97f0c44">
<div id="outline-container-orgb21b9fa" class="outline-3">
<h3 id="orgb21b9fa">BSPWM hotkeys</h3>
<div class="outline-text-3" id="text-orgb21b9fa">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
@ -543,9 +366,9 @@ super + {_,shift + }q
</div>
</div>
<div id="outline-container-org2695587" class="outline-3">
<h3 id="org2695587">Monocle Layout</h3>
<div class="outline-text-3" id="text-org2695587">
<div id="outline-container-org7784897" class="outline-3">
<h3 id="org7784897">Monocle Layout</h3>
<div class="outline-text-3" id="text-org7784897">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
super + m
@ -559,9 +382,9 @@ super + c
</div>
</div>
<div id="outline-container-org450c8fd" class="outline-3">
<h3 id="org450c8fd">Set the window State</h3>
<div class="outline-text-3" id="text-org450c8fd">
<div id="outline-container-orgbe96bd6" class="outline-3">
<h3 id="orgbe96bd6">Set the window State</h3>
<div class="outline-text-3" id="text-orgbe96bd6">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window state to tiled</span>
super + t
@ -588,9 +411,9 @@ super + s
</div>
</div>
<div id="outline-container-org1e277da" class="outline-3">
<h3 id="org1e277da">Sticky Window</h3>
<div class="outline-text-3" id="text-org1e277da">
<div id="outline-container-org8a5891f" class="outline-3">
<h3 id="org8a5891f">Sticky Window</h3>
<div class="outline-text-3" id="text-org8a5891f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the node flags</span>
super + ctrl + y
@ -600,9 +423,9 @@ super + ctrl + y
</div>
</div>
<div id="outline-container-org33a7d86" class="outline-3">
<h3 id="org33a7d86">Focus and Swap</h3>
<div class="outline-text-3" id="text-org33a7d86">
<div id="outline-container-org9363f85" class="outline-3">
<h3 id="org9363f85">Focus and Swap</h3>
<div class="outline-text-3" id="text-org9363f85">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,j,k,l}
@ -635,13 +458,13 @@ super + shift + {1-9}
</div>
</div>
<div id="outline-container-orga753787" class="outline-3">
<h3 id="orga753787">Preselect</h3>
<div class="outline-text-3" id="text-orga753787">
<div id="outline-container-org39668cf" class="outline-3">
<h3 id="org39668cf">Preselect</h3>
<div class="outline-text-3" id="text-org39668cf">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">preselect the direction</span>
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
bspc node -p {west,south,north,east}
<span class="org-comment-delimiter"># </span><span class="org-comment">preselect the ratio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">super + ctrl + {1-9}</span>
@ -649,15 +472,15 @@ super + ctrl + {h,j,k,l}
<span class="org-comment-delimiter"># </span><span class="org-comment">cancel the preselection for the focused node</span>
super + ctrl + space
bspc node -p cancel
bspc node -p cancel
</pre>
</div>
</div>
</div>
<div id="outline-container-org2696cae" class="outline-3">
<h3 id="org2696cae">Resize</h3>
<div class="outline-text-3" id="text-org2696cae">
<div id="outline-container-orgefaac3d" class="outline-3">
<h3 id="orgefaac3d">Resize</h3>
<div class="outline-text-3" id="text-orgefaac3d">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">expand a window by moving one of its side outward</span>
super + alt + {h,j,k,l}
@ -679,69 +502,54 @@ super + {Left,Down,Up,Right}
</div>
</div>
<div id="outline-container-org177f7f6" class="outline-2">
<h2 id="org177f7f6">I3 related</h2>
<div class="outline-text-2" id="text-org177f7f6">
<div id="outline-container-orgb8b77ba" class="outline-2">
<h2 id="orgb8b77ba">I3 related</h2>
<div class="outline-text-2" id="text-orgb8b77ba">
</div>
<div id="outline-container-org43a8bcb" class="outline-3">
<h3 id="org43a8bcb">Quit/Restart hotkeys</h3>
<div class="outline-text-3" id="text-org43a8bcb">
<div id="outline-container-orgf0994dd" class="outline-3">
<h3 id="orgf0994dd">Kill Window</h3>
<div class="outline-text-3" id="text-orgf0994dd">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">quit/restart bspwm</span>
super + alt + {q,r}
i3-msg {quit,restart}
<span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + {_,shift + }q
i3-msg {kill,kill}
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">close and kill</span>
super + q
i3-msg kill
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd7260b2" class="outline-3">
<h3 id="orgd7260b2">Monocle Layout</h3>
<div class="outline-text-3" id="text-orgd7260b2">
<div id="outline-container-orgf0e6469" class="outline-3">
<h3 id="orgf0e6469">Set the window State</h3>
<div class="outline-text-3" id="text-orgf0e6469">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">alternate between the tiled and monocle layout</span>
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to full-screen</span>
super + f
i3-msg fullscreen toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Set the window to floating</span>
super + s
i3-msg floating toggle
<span class="org-comment-delimiter"># </span><span class="org-comment">Alternate between the tiled and normal layout</span>
super + t
i3-msg layout toggle tabbed split
<span class="org-comment-delimiter"># </span><span class="org-comment">Change focus between tiling / floating windows</span>
super + c
i3-msg focus mode_toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-org7675fb7" class="outline-3">
<h3 id="org7675fb7">Set the window State</h3>
<div class="outline-text-3" id="text-org7675fb7">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set the window state</span>
super + {t,s, shift + f}
i3-msg {fullscreen disable,floating toggle,fullscreen toggle}
</pre>
</div>
</div>
</div>
<div id="outline-container-org370d3f4" class="outline-3">
<h3 id="org370d3f4">Sticky Window</h3>
<div class="outline-text-3" id="text-org370d3f4">
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + y
<span class="org-comment-delimiter"># </span><span class="org-comment">Sticky window</span>
super + y
i3-msg sticky toggle
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd24232d" class="outline-3">
<h3 id="orgd24232d">focus/swap</h3>
<div class="outline-text-3" id="text-orgd24232d">
<div id="outline-container-org993d527" class="outline-3">
<h3 id="org993d527">focus/swap</h3>
<div class="outline-text-3" id="text-org993d527">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Focus/swap the node in the given direction</span>
super + {_,shift + }{h,Left}
@ -760,15 +568,19 @@ super + {_,shift + }{l,Right}
super + {p,n}
i3-msg workspace {prev,next}
<span class="org-comment-delimiter"># </span><span class="org-comment">focus the last Desktop</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus the last Desktop</span>
super + b
i3-msg workspace back_and_forth
<span class="org-comment-delimiter"># </span><span class="org-comment">focus or send to the given desktop</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus to the given desktop</span>
super + {1-9}
i3-msg workspace <span class="org-string">'{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Send to the given desktop</span>
super + ctrl + {1-9}
i3-msg move container to workspace <span class="org-string">'{1-9}'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Focus and Send to the given desktop</span>
super + shift + {1-9}
<span class="org-variable-name">WP</span>={1-9} &amp;&amp; i3-msg move container to workspace $WP &amp;&amp; i3-msg workspace $WP
</pre>
@ -776,16 +588,18 @@ super + shift + {1-9}
</div>
</div>
<div id="outline-container-org1822729" class="outline-3">
<h3 id="org1822729">Preselect</h3>
<div class="outline-text-3" id="text-org1822729">
<div id="outline-container-org1163075" class="outline-3">
<h3 id="org1163075">Preselect</h3>
<div class="outline-text-3" id="text-org1163075">
<p>
Preselect the direction
</p>
<div class="org-src-container">
<pre class="src src-conf">super + ctrl + {h,l,Left,Right}
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set Horizontal Layout</span>
super + ctrl + {h,l,Left,Right}
i3-msg split h
<span class="org-comment-delimiter"># </span><span class="org-comment">Set Vertical Layout</span>
super + ctrl + {j,k,Up,Down}
i3-msg split v
</pre>
@ -793,19 +607,23 @@ super + ctrl + {j,k,Up,Down}
</div>
</div>
<div id="outline-container-org9872528" class="outline-3">
<h3 id="org9872528">Resize</h3>
<div class="outline-text-3" id="text-org9872528">
<div id="outline-container-org523987d" class="outline-3">
<h3 id="org523987d">Resize</h3>
<div class="outline-text-3" id="text-org523987d">
<p>
Expand/Shrink a window
</p>
<div class="org-src-container">
<pre class="src src-conf">super + alt + h
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Shrink</span>
super + alt + h
i3-msg resize shrink width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Grow</span>
super + alt + j
i3-msg resize grow height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
<span class="org-comment-delimiter"># </span><span class="org-comment">Vertical Shrink</span>
super + alt + k
i3-msg resize shrink height <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
<span class="org-comment-delimiter"># </span><span class="org-comment">Horizontal Grow</span>
super + alt + l
i3-msg resize grow width <span class="org-highlight-numbers-number">10</span> px or <span class="org-highlight-numbers-number">10</span> ppt
</pre>
@ -816,7 +634,7 @@ super + alt + l
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-19 jeu. 10:38</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-01 dim. 22:50 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Systemd services and timers</title>
<title><code>systemd</code> services and timers</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -231,129 +17,73 @@
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Systemd services and timers</h1>
<h1 class="title"><code>systemd</code> services and timers</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5b65512">Pass Git</a>
<li><a href="#org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</a>
<ul>
<li><a href="#org273d46b">Service</a></li>
<li><a href="#orgb01bb7a">Timer</a></li>
<li><a href="#org51ea00d">Script</a></li>
<li><a href="#org782b2ab">Service</a></li>
<li><a href="#org0f85a10">Timer</a></li>
<li><a href="#orga2cf44a">Script</a></li>
</ul>
</li>
<li><a href="#org79abe94">Buku Git</a>
<li><a href="#orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</a>
<ul>
<li><a href="#org4754614">Service</a></li>
<li><a href="#org82ac068">Timer</a></li>
<li><a href="#org2868e0c">Script</a></li>
<li><a href="#orgf49f7f3">Service</a></li>
<li><a href="#org541a815">Timer</a></li>
<li><a href="#orgdeee651">Script</a></li>
</ul>
</li>
<li><a href="#org1d68bb0">Check mail</a>
<li><a href="#orgcd55ae1"><code>checkmail</code> - Check new mails</a>
<ul>
<li><a href="#orgac03fe6">Service</a></li>
<li><a href="#orgcf59bd1">Timer</a></li>
<li><a href="#org55b365f">Script</a></li>
<li><a href="#org2b2ce61">Service</a></li>
<li><a href="#org3b13896">Timer</a></li>
<li><a href="#orgd21f3b8">Script</a></li>
</ul>
</li>
<li><a href="#orgefb3320">Sync mail</a>
<li><a href="#orgb4148ce"><code>syncmail</code> - Synchronize all mails</a>
<ul>
<li><a href="#org02e8c97">Service</a></li>
<li><a href="#org6676a46">Timer</a></li>
<li><a href="#orgd646b63">Service</a></li>
<li><a href="#orga7b9728">Timer</a></li>
</ul>
</li>
<li><a href="#org2ff1601">Vdirsyncer</a>
<li><a href="#org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</a>
<ul>
<li><a href="#orgc4390f4">Service</a></li>
<li><a href="#orgd6ba6e4">Timer</a></li>
<li><a href="#org527e986">Service</a></li>
<li><a href="#org057bbfb">Timer</a></li>
</ul>
</li>
<li><a href="#orgb34591d">SSH Agent</a>
<li><a href="#orgea6990c"><code>ssh-agent</code> - SSH Agent</a>
<ul>
<li><a href="#orga05a23f">Service</a></li>
<li><a href="#orgd52a406">Service</a></li>
</ul>
</li>
<li><a href="#orge82b3ac">Powertop</a>
<li><a href="#org6c316cc"><code>powertop</code> - Powertop</a>
<ul>
<li><a href="#org3f915ce">Service</a></li>
<li><a href="#org8b3fdc8">Service</a></li>
</ul>
</li>
<li><a href="#orgd4b9d58">Mopidy</a>
<li><a href="#org4072349"><code>emacs</code> - Emacs</a>
<ul>
<li><a href="#org49549f0">Service</a></li>
<li><a href="#org047c23f">Service</a></li>
</ul>
</li>
</ul>
</div>
</div>
<p>
<a href="https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units">https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units</a>
</p>
<div id="outline-container-org5b65512" class="outline-2">
<h2 id="org5b65512">Pass Git</h2>
<div class="outline-text-2" id="text-org5b65512">
<div id="outline-container-org9efc12d" class="outline-2">
<h2 id="org9efc12d"><code>bukugit</code> - Automatic commit and push new bookmarks</h2>
<div class="outline-text-2" id="text-org9efc12d">
</div>
<div id="outline-container-org273d46b" class="outline-3">
<h3 id="org273d46b">Service</h3>
<div class="outline-text-3" id="text-org273d46b">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Passwords every day
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/pass_git_sync.sh
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb01bb7a" class="outline-3">
<h3 id="orgb01bb7a">Timer</h3>
<div class="outline-text-3" id="text-orgb01bb7a">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Passwords every day
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network-online.target
[<span class="org-type">Timer</span>]
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">16</span>:<span class="org-highlight-numbers-number">00</span>:<span class="org-highlight-numbers-number">00</span>
<span class="org-variable-name">Persistent</span>=true
<span class="org-variable-name">Unit</span>=passgit.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-org51ea00d" class="outline-3">
<h3 id="org51ea00d">Script</h3>
<div class="outline-text-3" id="text-org51ea00d">
<div class="org-src-container">
<pre class="src src-bash">pass <span class="org-type">git</span> pull --rebase &amp;&amp; pass <span class="org-type">git</span> push
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org79abe94" class="outline-2">
<h2 id="org79abe94">Buku Git</h2>
<div class="outline-text-2" id="text-org79abe94">
</div>
<div id="outline-container-org4754614" class="outline-3">
<h3 id="org4754614">Service</h3>
<div class="outline-text-3" id="text-org4754614">
<div id="outline-container-org782b2ab" class="outline-3">
<h3 id="org782b2ab">Service</h3>
<div class="outline-text-3" id="text-org782b2ab">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Bookmarks every day
@ -362,15 +92,15 @@
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/buku_git_push.sh
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/buku_git_push
</pre>
</div>
</div>
</div>
<div id="outline-container-org82ac068" class="outline-3">
<h3 id="org82ac068">Timer</h3>
<div class="outline-text-3" id="text-org82ac068">
<div id="outline-container-org0f85a10" class="outline-3">
<h3 id="org0f85a10">Timer</h3>
<div class="outline-text-3" id="text-org0f85a10">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
@ -391,17 +121,23 @@
</div>
</div>
<div id="outline-container-org2868e0c" class="outline-3">
<h3 id="org2868e0c">Script</h3>
<div class="outline-text-3" id="text-org2868e0c">
<div id="outline-container-orga2cf44a" class="outline-3">
<h3 id="orga2cf44a">Script</h3>
<div class="outline-text-3" id="text-orga2cf44a">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/share/buku/
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s bookmarks.db<span class="org-rainbow-delimiters-depth-3">)</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
<span class="org-type">git</span> add bookmarks.db
<span class="org-type">git</span> commit -m <span class="org-string">"Changed bookmarks - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span>
<span class="org-type">git</span> push
<span class="org-type">rm</span> bookmarks.org;
buku -e bookmarks.org &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">cat</span> header.org bookmarks.org &gt; index.org &amp;&amp; <span class="org-sh-escaped-newline">\</span>
emacs index.org --batch -f org-html-export-to-html --kill &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">git</span> add index.html
<span class="org-type">git</span> add bookmarks.db &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">git</span> commit -m <span class="org-string">"Changed bookmarks - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">git</span> push
<span class="org-keyword">exit</span>
<span class="org-keyword">fi</span>
</pre>
@ -410,13 +146,75 @@
</div>
</div>
<div id="outline-container-org1d68bb0" class="outline-2">
<h2 id="org1d68bb0">Check mail</h2>
<div class="outline-text-2" id="text-org1d68bb0">
<div id="outline-container-orga6ac362" class="outline-2">
<h2 id="orga6ac362"><code>braingit</code> - Automatic commit and push new brain pages</h2>
<div class="outline-text-2" id="text-orga6ac362">
</div>
<div id="outline-container-orgac03fe6" class="outline-3">
<h3 id="orgac03fe6">Service</h3>
<div class="outline-text-3" id="text-orgac03fe6">
<div id="outline-container-orgf49f7f3" class="outline-3">
<h3 id="orgf49f7f3">Service</h3>
<div class="outline-text-3" id="text-orgf49f7f3">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=yes
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/brain_git_push
</pre>
</div>
</div>
</div>
<div id="outline-container-org541a815" class="outline-3">
<h3 id="org541a815">Timer</h3>
<div class="outline-text-3" id="text-org541a815">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync Brain Website everyday
<span class="org-variable-name">RefuseManualStart</span>=no
<span class="org-variable-name">RefuseManualStop</span>=no
<span class="org-variable-name">Wants</span>=network-online.target
<span class="org-variable-name">After</span>=network-online.target
[<span class="org-type">Timer</span>]
<span class="org-variable-name">OnCalendar</span>=*-*-* <span class="org-highlight-numbers-number">16</span>:<span class="org-highlight-numbers-number">00</span>:<span class="org-highlight-numbers-number">00</span>
<span class="org-variable-name">Persistent</span>=true
<span class="org-variable-name">Unit</span>=braingit.service
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdeee651" class="outline-3">
<h3 id="orgdeee651">Script</h3>
<div class="outline-text-3" id="text-orgdeee651">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/Cloud/brain-website/
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span><span class="org-rainbow-delimiters-depth-2">[</span> <span class="org-negation-char">!</span> -z $<span class="org-rainbow-delimiters-depth-3">(</span><span class="org-sh-quoted-exec">git</span> status -s content/<span class="org-rainbow-delimiters-depth-3">)</span> <span class="org-rainbow-delimiters-depth-2">]</span><span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
<span class="org-type">git</span> add content static &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">git</span> commit -m <span class="org-string">"Update Content - </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +%F)</span></span><span class="org-string">"</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">git</span> push
<span class="org-keyword">exit</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgcd55ae1" class="outline-2">
<h2 id="orgcd55ae1"><code>checkmail</code> - Check new mails</h2>
<div class="outline-text-2" id="text-orgcd55ae1">
</div>
<div id="outline-container-org2b2ce61" class="outline-3">
<h3 id="org2b2ce61">Service</h3>
<div class="outline-text-3" id="text-org2b2ce61">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Check new mails
@ -425,15 +223,15 @@
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/checkmail.sh -q
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/checkmail -q
</pre>
</div>
</div>
</div>
<div id="outline-container-orgcf59bd1" class="outline-3">
<h3 id="orgcf59bd1">Timer</h3>
<div class="outline-text-3" id="text-orgcf59bd1">
<div id="outline-container-org3b13896" class="outline-3">
<h3 id="org3b13896">Timer</h3>
<div class="outline-text-3" id="text-org3b13896">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Check Mail every x minutes
@ -457,9 +255,9 @@
</div>
</div>
<div id="outline-container-org55b365f" class="outline-3">
<h3 id="org55b365f">Script</h3>
<div class="outline-text-3" id="text-org55b365f">
<div id="outline-container-orgd21f3b8" class="outline-3">
<h3 id="orgd21f3b8">Script</h3>
<div class="outline-text-3" id="text-orgd21f3b8">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">while</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">do</span> <span class="org-comment-delimiter"># </span><span class="org-comment">while loop starts</span>
<span class="org-keyword">case</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-keyword"> in</span>
@ -482,7 +280,7 @@
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Retreive mails</span>
mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variable-name">opt_verbose</span> gmail-Home esrf-Home ulg-Home uliege-Home
mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variable-name">opt_verbose</span> gmail-Home esrf-Home ulg-Home uliege-Home <span class="org-highlight-numbers-number">2</span>&gt;/tmp/mbsync.log
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
@ -502,18 +300,17 @@ mbsync $<span class="org-variable-name">opt_all</span> $<span class="org-variabl
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Notification</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">new</span></span><span class="org-string">"</span> -gt <span class="org-highlight-numbers-number">0</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
dunstify --replace=<span class="org-highlight-numbers-number">98465</span> <span class="org-string">'New mail'</span> <span class="org-string">"&#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">esrf_new</span></span><span class="org-string"> &#63402; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">gmail_new</span></span><span class="org-string"> &#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">ulg_new</span></span><span class="org-string"> &#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">uliege_new</span></span><span class="org-string">"</span>
dunstify --replace=<span class="org-highlight-numbers-number">98465</span> <span class="org-string">'Mails &#63215;'</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$((</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">gmail_new</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">+</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">esrf_new</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">+</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">ulg_new</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">+</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">uliege_new</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">) new mail(s)"</span>
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Indexation and Tags</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">mu update</span>
mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $<span class="org-variable-name">opt_quiet</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Update on Emacs</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">if [ "$(($new-$old))" -gt 0 ]; then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">emacsclient --eval '(mu4e-update-index)';</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fi</span>
<span class="org-keyword">if</span> <span class="org-type">pgrep</span> -f <span class="org-string">'mu server'</span>; <span class="org-keyword">then</span>
emacsclient --eval <span class="org-string">'(mu4e-update-index)'</span>
<span class="org-keyword">else</span>
mu index $<span class="org-variable-name">opt_verbose</span> $<span class="org-variable-name">opt_quiet</span>
<span class="org-keyword">fi</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
</pre>
</div>
@ -521,13 +318,13 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-orgefb3320" class="outline-2">
<h2 id="orgefb3320">Sync mail</h2>
<div class="outline-text-2" id="text-orgefb3320">
<div id="outline-container-orgb4148ce" class="outline-2">
<h2 id="orgb4148ce"><code>syncmail</code> - Synchronize all mails</h2>
<div class="outline-text-2" id="text-orgb4148ce">
</div>
<div id="outline-container-org02e8c97" class="outline-3">
<h3 id="org02e8c97">Service</h3>
<div class="outline-text-3" id="text-org02e8c97">
<div id="outline-container-orgd646b63" class="outline-3">
<h3 id="orgd646b63">Service</h3>
<div class="outline-text-3" id="text-orgd646b63">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync all mails
@ -536,15 +333,15 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
[<span class="org-type">Service</span>]
<span class="org-variable-name">Type</span>=oneshot
<span class="org-variable-name">ExecStart</span>=%h/scripts/checkmail.sh -a -q
<span class="org-variable-name">ExecStart</span>=%h/.local/bin/checkmail -a -q
</pre>
</div>
</div>
</div>
<div id="outline-container-org6676a46" class="outline-3">
<h3 id="org6676a46">Timer</h3>
<div class="outline-text-3" id="text-org6676a46">
<div id="outline-container-orga7b9728" class="outline-3">
<h3 id="orga7b9728">Timer</h3>
<div class="outline-text-3" id="text-orga7b9728">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Sync All Mails every x hours
@ -569,13 +366,13 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-org2ff1601" class="outline-2">
<h2 id="org2ff1601">Vdirsyncer</h2>
<div class="outline-text-2" id="text-org2ff1601">
<div id="outline-container-org64a5ff5" class="outline-2">
<h2 id="org64a5ff5"><code>vdirsyncer</code> - Synchronize calendar and contacts</h2>
<div class="outline-text-2" id="text-org64a5ff5">
</div>
<div id="outline-container-orgc4390f4" class="outline-3">
<h3 id="orgc4390f4">Service</h3>
<div class="outline-text-3" id="text-orgc4390f4">
<div id="outline-container-org527e986" class="outline-3">
<h3 id="org527e986">Service</h3>
<div class="outline-text-3" id="text-org527e986">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Synchronize calendars and contacts
@ -591,9 +388,9 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-orgd6ba6e4" class="outline-3">
<h3 id="orgd6ba6e4">Timer</h3>
<div class="outline-text-3" id="text-orgd6ba6e4">
<div id="outline-container-org057bbfb" class="outline-3">
<h3 id="org057bbfb">Timer</h3>
<div class="outline-text-3" id="text-org057bbfb">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Synchronize vdirs
@ -611,13 +408,13 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-orgb34591d" class="outline-2">
<h2 id="orgb34591d">SSH Agent</h2>
<div class="outline-text-2" id="text-orgb34591d">
<div id="outline-container-orgea6990c" class="outline-2">
<h2 id="orgea6990c"><code>ssh-agent</code> - SSH Agent</h2>
<div class="outline-text-2" id="text-orgea6990c">
</div>
<div id="outline-container-orga05a23f" class="outline-3">
<h3 id="orga05a23f">Service</h3>
<div class="outline-text-3" id="text-orga05a23f">
<div id="outline-container-orgd52a406" class="outline-3">
<h3 id="orgd52a406">Service</h3>
<div class="outline-text-3" id="text-orgd52a406">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=SSH key agent
@ -635,13 +432,13 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-orge82b3ac" class="outline-2">
<h2 id="orge82b3ac">Powertop</h2>
<div class="outline-text-2" id="text-orge82b3ac">
<div id="outline-container-org6c316cc" class="outline-2">
<h2 id="org6c316cc"><code>powertop</code> - Powertop</h2>
<div class="outline-text-2" id="text-org6c316cc">
</div>
<div id="outline-container-org3f915ce" class="outline-3">
<h3 id="org3f915ce">Service</h3>
<div class="outline-text-3" id="text-org3f915ce">
<div id="outline-container-org8b3fdc8" class="outline-3">
<h3 id="org8b3fdc8">Service</h3>
<div class="outline-text-3" id="text-org8b3fdc8">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Powertop tunings
@ -658,29 +455,28 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
</div>
<div id="outline-container-orgd4b9d58" class="outline-2">
<h2 id="orgd4b9d58">Mopidy</h2>
<div class="outline-text-2" id="text-orgd4b9d58">
<div id="outline-container-org4072349" class="outline-2">
<h2 id="org4072349"><code>emacs</code> - Emacs</h2>
<div class="outline-text-2" id="text-org4072349">
</div>
<div id="outline-container-org49549f0" class="outline-3">
<h3 id="org49549f0">Service</h3>
<div class="outline-text-3" id="text-org49549f0">
<div id="outline-container-org047c23f" class="outline-3">
<h3 id="org047c23f">Service</h3>
<div class="outline-text-3" id="text-org047c23f">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Unit</span>]
<span class="org-variable-name">Description</span>=Mopidy music server
<span class="org-variable-name">After</span>=avahi-daemon.service
<span class="org-variable-name">After</span>=dbus.service
<span class="org-variable-name">After</span>=network.target
<span class="org-variable-name">After</span>=nss-lookup.target
<span class="org-variable-name">After</span>=pulseaudio.service
<span class="org-variable-name">After</span>=remote-fs.target
<span class="org-variable-name">After</span>=sound.target
<span class="org-variable-name">Description</span>=Emacs text editor
<span class="org-variable-name">Documentation</span>=info:emacs man:emacs(<span class="org-highlight-numbers-number">1</span>) https://gnu.org/software/emacs/
[<span class="org-type">Service</span>]
<span class="org-variable-name">ExecStart</span>=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
<span class="org-variable-name">Type</span>=simple
<span class="org-variable-name">ExecStart</span>=/usr/bin/emacs --fg-daemon
<span class="org-variable-name">ExecStop</span>=/usr/bin/emacsclient --eval <span class="org-string">"(kill-emacs)"</span>
<span class="org-variable-name">Environment</span>=SSH_AUTH_SOCK=%t/keyring/ssh
<span class="org-variable-name">Restart</span>=on-failure
[<span class="org-type">Install</span>]
<span class="org-variable-name">WantedBy</span>=multi-user.target
<span class="org-variable-name">WantedBy</span>=default.target
</pre>
</div>
</div>
@ -689,7 +485,7 @@ mu index --maildir=~/.mail $<span class="org-variable-name">opt_verbose</span> $
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-01 dim. 22:50</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

94
docs/tablet.html Normal file
View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Drawing Tablet - Xournal</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Drawing Tablet - Xournal</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org51f707f"><code>xournalpp</code></a></li>
</ul>
</div>
</div>
<div id="outline-container-org51f707f" class="outline-2">
<h2 id="org51f707f"><code>xournalpp</code></h2>
<div class="outline-text-2" id="text-org51f707f">
<p>
<code>toolbar.ini</code>:
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">## </span><span class="org-comment">Xournal++ Toolbar configuration</span>
<span class="org-comment-delimiter">## </span><span class="org-comment">Here you can customize the Toolbars</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Delete this file to generate a new config file with default values</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Available buttons:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">File: NEW,SAVE,OPEN,PRINT</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Edit: CUT,COPY,PASTE,SEARCH,UNDO,REDO,INSERT_NEW_PAGE</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Navigation: GOTO_FIRST,GOTO_BACK,GOTO_NEXT,GOTO_LAST,GOTO_NEXT_ANNOTATED_PAGE</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Zoom: ZOOM_OUT,ZOOM_IN,ZOOM_FIT,ZOOM_100,FULLSCREEN,PAIRED_PAGES</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Color: COLOR(0xffffff),COLOR(0xffff00),COLOR(0xff8000),COLOR(0xff00ff),COLOR(0x00ff00),COLOR(0x00c0ff),COLOR(0x808080),COLOR(0x008000),COLOR(0xff0000),COLOR(0x3333cc),COLOR(0x000000),COLOR_SELECT</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Notice: This are the default Xournal colors, each other color in HEX can also be used, eg COLOR(0x12ABCF);</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Tools: ERASER,PEN,HIGHLIGHTER,IMAGE,TEXT,IMAGE,SELECT,SELECT_REGION,SELECT_RECTANGLE,VERTICAL_SPACE,HAND</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Notice: ERASER also has a drop down menu to select the eraser type, SELECT are all selection tools, with drop down menu</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Tool settings: SHAPE_RECOGNIZER,RULER,FINE,MEDIUM,THICK,SELECT_FONT</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Components: PAGE_SPIN,ZOOM_SLIDER,LAYER</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">PAGE_SPIN: The page spiner, incl. current page label</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">ZOOM_SLIDER: The zoom slider</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">LAYER: The layer dropdown menu</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter">#</span>
[<span class="org-type">Floating Toolbox - Custom</span>]
<span class="org-variable-name">toolbarTop1</span>=SAVE,NEW,OPEN,SEPARATOR,IMAGE,TEXT,MATH_TEX,DRAW,SEPARATOR,SELECT,SEPARATOR,DEFAULT_TOOL,SEPARATOR,ZOOM_100,ZOOM_FIT
<span class="org-variable-name">toolbarFloat1</span>=PEN,HIGHLIGHTER,ERASER
<span class="org-variable-name">toolbarFloat2</span>=FINE,MEDIUM,THICK,VERY_THICK
<span class="org-variable-name">toolbarFloat3</span>=COLOR(0xffffff),COLOR(0x0072BD),COLOR(0xD95218),COLOR(0xECB01F),COLOR(0x7D2E8E),COLOR(0x77AB2F),COLOR(0x000000),COLOR_SELECT
<span class="org-variable-name">toolbarFloat4</span>=DRAW_RECTANGLE,DRAW_ELLIPSE,DRAW_ARROW,RULER,DRAW_SPLINE
<span class="org-variable-name">name</span>=Floating Tolbox - Custom
</pre>
</div>
<p>
Special lines in <code>settings.xml</code>:
</p>
<div class="org-src-container">
<pre class="src src-conf">&lt;!--Config for new pages--&gt;
<span class="org-variable-name">&lt;property name</span>=<span class="org-string">"eagerPageCleanup"</span> value=<span class="org-string">"true"</span>/&gt;
<span class="org-variable-name">&lt;property name</span>=<span class="org-string">"pageTemplate"</span> value=<span class="org-string">"xoj/template&amp;#10;copyLastPageSettings=false&amp;#10;size=600.0x400.0&amp;#10;backgroundType=plain&amp;#10;backgroundColor=#ffffff&amp;#10;"</span>/&gt;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Termite Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,16 +22,16 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5db7562">Options</a></li>
<li><a href="#org256b6c3">Hints</a></li>
<li><a href="#org0d0648a">Colors</a></li>
<li><a href="#orga2a8aab">Options</a></li>
<li><a href="#orgd325539">Hints</a></li>
<li><a href="#org53904a0">Colors</a></li>
</ul>
</div>
</div>
<div id="outline-container-org5db7562" class="outline-2">
<h2 id="org5db7562">Options</h2>
<div class="outline-text-2" id="text-org5db7562">
<div id="outline-container-orga2a8aab" class="outline-2">
<h2 id="orga2a8aab">Options</h2>
<div class="outline-text-2" id="text-orga2a8aab">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">options</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">allow_bold = true</span>
@ -283,8 +47,8 @@ for the JavaScript code in this tag.
<span class="org-comment-delimiter">#</span><span class="org-comment">scroll_on_keystroke = true</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Length of the scrollback buffer, 0 disabled the scrollback buffer</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">and setting it to a negative value means "infinite scrollback"</span>
<span class="org-variable-name">scrollback_lines</span> = <span class="org-highlight-numbers-number">10000</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">search_wrap = true</span>
<span class="org-variable-name">scrollback_lines</span> = -1
<span class="org-variable-name">search_wrap</span> = true
<span class="org-comment-delimiter">#</span><span class="org-comment">urgent_on_bell = true</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">hyperlinks = false</span>
@ -309,9 +73,9 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org256b6c3" class="outline-2">
<h2 id="org256b6c3">Hints</h2>
<div class="outline-text-2" id="text-org256b6c3">
<div id="outline-container-orgd325539" class="outline-2">
<h2 id="orgd325539">Hints</h2>
<div class="outline-text-2" id="text-orgd325539">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">hints</span>]
<span class="org-comment-delimiter">#</span><span class="org-comment">padding = 2</span>
@ -323,71 +87,71 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org0d0648a" class="outline-2">
<h2 id="org0d0648a">Colors</h2>
<div class="outline-text-2" id="text-org0d0648a">
<div id="outline-container-org53904a0" class="outline-2">
<h2 id="org53904a0">Colors</h2>
<div class="outline-text-2" id="text-org53904a0">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">colors</span>]
<span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg2</span>
<span class="org-variable-name">foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg1</span>
<span class="org-variable-name">foreground_bold</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-variable-name">cursor</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">cursor_foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-variable-name">background</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg2</span>
<span class="org-variable-name">foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg1</span>
<span class="org-variable-name">foreground_bold</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-variable-name">cursor</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">cursor_foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-variable-name">background</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">16 color space</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">16 color space</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">color0</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg3</span>
<span class="org-variable-name">color8</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fb2</span>
<span class="org-variable-name">color7</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg0</span>
<span class="org-variable-name">color15</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fbf1c7</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg0_s</span>
<span class="org-variable-name">color0</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg3</span>
<span class="org-variable-name">color8</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fb2</span>
<span class="org-variable-name">color7</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg0</span>
<span class="org-variable-name">color15</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fbf1c7</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Red</span>
<span class="org-variable-name">color1</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-variable-name">color9</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Red</span>
<span class="org-variable-name">color1</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-variable-name">color9</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Green</span>
<span class="org-variable-name">color2</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-variable-name">color10</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Green</span>
<span class="org-variable-name">color2</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-variable-name">color10</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Yellow</span>
<span class="org-variable-name">color3</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-variable-name">color11</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Yellow</span>
<span class="org-variable-name">color3</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-variable-name">color11</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Blue</span>
<span class="org-variable-name">color4</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-variable-name">color12</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Blue</span>
<span class="org-variable-name">color4</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-variable-name">color12</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Purple</span>
<span class="org-variable-name">color5</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-variable-name">color13</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Purple</span>
<span class="org-variable-name">color5</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-variable-name">color13</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Teal</span>
<span class="org-variable-name">color6</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-variable-name">color14</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Teal</span>
<span class="org-variable-name">color6</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-variable-name">color14</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Extra colors</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color16</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fe8019</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color17</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg1</span>
<span class="org-variable-name">color18</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg2</span>
<span class="org-variable-name">color19</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg3</span>
<span class="org-variable-name">color20</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg</span>
<span class="org-variable-name">color21</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Extra colors</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color16</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">fe8019</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">orange</span>
<span class="org-variable-name">color17</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg1</span>
<span class="org-variable-name">color18</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">bg2</span>
<span class="org-variable-name">color19</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg3</span>
<span class="org-variable-name">color20</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">fg</span>
<span class="org-variable-name">color21</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
</pre>
</div>
</div>
@ -395,7 +159,7 @@ for the JavaScript code in this tag.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:20 -->
<!-- 2021-01-08 ven. 01:33 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tmux Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,24 +22,24 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org7100dc0">Line</a></li>
<li><a href="#orga883317">Bindings</a></li>
<li><a href="#orgbb430a8">Settings</a></li>
<li><a href="#org36a813b">Plugins</a>
<li><a href="#org0839f62">Line</a></li>
<li><a href="#org38bb482">Bindings</a></li>
<li><a href="#org364f2d8">Settings</a></li>
<li><a href="#orgabc3f53">Plugins</a>
<ul>
<li><a href="#orgf29132d">Install plugins</a></li>
<li><a href="#org281bf63">Configuration</a></li>
<li><a href="#org20fa141">Install plugins</a></li>
<li><a href="#orgd295864">Configuration</a></li>
</ul>
</li>
<li><a href="#org0ea6f8c">Colors</a></li>
<li><a href="#orge798cb7">Initialize TMUX plugin manager</a></li>
<li><a href="#org6ad3f07">Colors</a></li>
<li><a href="#org1235a26">Initialize TMUX plugin manager</a></li>
</ul>
</div>
</div>
<div id="outline-container-org7100dc0" class="outline-2">
<h2 id="org7100dc0">Line</h2>
<div class="outline-text-2" id="text-org7100dc0">
<div id="outline-container-org0839f62" class="outline-2">
<h2 id="org0839f62">Line</h2>
<div class="outline-text-2" id="text-org0839f62">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activate the status bar</span>
set -g status <span class="org-string">"on"</span>
@ -330,9 +94,9 @@ set-window-option -g window-status-format <span class="org-string">"#[fg=colour2
</div>
</div>
<div id="outline-container-orga883317" class="outline-2">
<h2 id="orga883317">Bindings</h2>
<div class="outline-text-2" id="text-orga883317">
<div id="outline-container-org38bb482" class="outline-2">
<h2 id="org38bb482">Bindings</h2>
<div class="outline-text-2" id="text-org38bb482">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Set prefix to 'C-Space'</span>
unbind C-b
@ -412,9 +176,9 @@ bind-key -T copy-mode-vi <span class="org-string">'C-v'</span> send-keys -X rect
</div>
</div>
<div id="outline-container-orgbb430a8" class="outline-2">
<h2 id="orgbb430a8">Settings</h2>
<div class="outline-text-2" id="text-orgbb430a8">
<div id="outline-container-org364f2d8" class="outline-2">
<h2 id="org364f2d8">Settings</h2>
<div class="outline-text-2" id="text-org364f2d8">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Activity monitoring</span>
set -g visual-activity off
@ -487,13 +251,13 @@ set-window-option -g aggressive-resize
</div>
</div>
<div id="outline-container-org36a813b" class="outline-2">
<h2 id="org36a813b">Plugins</h2>
<div class="outline-text-2" id="text-org36a813b">
<div id="outline-container-orgabc3f53" class="outline-2">
<h2 id="orgabc3f53">Plugins</h2>
<div class="outline-text-2" id="text-orgabc3f53">
</div>
<div id="outline-container-orgf29132d" class="outline-3">
<h3 id="orgf29132d">Install plugins</h3>
<div class="outline-text-3" id="text-orgf29132d">
<div id="outline-container-org20fa141" class="outline-3">
<h3 id="org20fa141">Install plugins</h3>
<div class="outline-text-3" id="text-org20fa141">
<div class="org-src-container">
<pre class="src src-conf">set -g @plugin <span class="org-string">'tmux-plugins/tpm'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set -g @plugin 'tmux-plugins/tmux-sessionist'</span>
@ -507,9 +271,9 @@ set -g @plugin <span class="org-string">'seebi/tmux-colors-solarized'</span>
</div>
</div>
<div id="outline-container-org281bf63" class="outline-3">
<h3 id="org281bf63">Configuration</h3>
<div class="outline-text-3" id="text-org281bf63">
<div id="outline-container-orgd295864" class="outline-3">
<h3 id="orgd295864">Configuration</h3>
<div class="outline-text-3" id="text-orgd295864">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">tmux-resurrect</span>
@ -551,9 +315,9 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
</div>
</div>
<div id="outline-container-org0ea6f8c" class="outline-2">
<h2 id="org0ea6f8c">Colors</h2>
<div class="outline-text-2" id="text-org0ea6f8c">
<div id="outline-container-org6ad3f07" class="outline-2">
<h2 id="org6ad3f07">Colors</h2>
<div class="outline-text-2" id="text-org6ad3f07">
<div class="org-src-container">
<pre class="src src-conf">set -g @colors-solarized <span class="org-string">'light'</span>
</pre>
@ -561,9 +325,9 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
</div>
</div>
<div id="outline-container-orge798cb7" class="outline-2">
<h2 id="orge798cb7">Initialize TMUX plugin manager</h2>
<div class="outline-text-2" id="text-orge798cb7">
<div id="outline-container-org1235a26" class="outline-2">
<h2 id="org1235a26">Initialize TMUX plugin manager</h2>
<div class="outline-text-2" id="text-org1235a26">
<div class="org-src-container">
<pre class="src src-conf">run <span class="org-string">'~/.tmux/plugins/tpm/tpm'</span>
</pre>
@ -573,7 +337,7 @@ set -g @batt_attached_icon <span class="org-string">"o"</span>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:20</p>
<p class="date">Created: 2021-01-08 ven. 01:33</p>
</div>
</body>
</html>

146
docs/torrent.html Normal file
View File

@ -0,0 +1,146 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-05-02 dim. 11:26 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Torrent Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Torrent Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgc387510"><code>tremc</code> - Curses interface for Transmission</a></li>
<li><a href="#orgcdb4a92"><code>aria2c</code> - Lightweight download utility</a>
<ul>
<li><a href="#org1d6cd04">Download Start Script</a></li>
<li><a href="#org702c949">Download Complete Script</a></li>
<li><a href="#orgc677acc">Download Error Script</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orgc387510" class="outline-2">
<h2 id="orgc387510"><code>tremc</code> - Curses interface for Transmission</h2>
<div class="outline-text-2" id="text-orgc387510">
<p>
<a href="https://github.com/tremc/tremc">https://github.com/tremc/tremc</a>
</p>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">Connection</span>]
<span class="org-variable-name">password</span> = &lt;&lt;get-password(passname=<span class="org-string">"nas/transmission"</span>)&gt;&gt;
<span class="org-variable-name">username</span> = tdehaeze
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">9091</span>
<span class="org-variable-name">host</span> = torrent.tdehaeze.xyz
<span class="org-variable-name">path</span> = /transmission/rpc/
<span class="org-variable-name">ssl</span> = False
[<span class="org-type">Sorting</span>]
<span class="org-variable-name">order</span> = name
[<span class="org-type">Filtering</span>]
<span class="org-variable-name">filter</span> =
<span class="org-variable-name">invert</span> = False
[<span class="org-type">Misc</span>]
<span class="org-variable-name">compact_list</span> = False
<span class="org-variable-name">torrentname_is_progressbar</span> = True
<span class="org-variable-name">file_viewer</span> = xdg-open %%s
<span class="org-variable-name">file_open_in_terminal</span> = True
[<span class="org-type">Colors</span>]
<span class="org-variable-name">title_seed</span> = bg:green,fg:black
<span class="org-variable-name">title_download</span> = bg:blue,fg:black
<span class="org-variable-name">title_idle</span> = bg:cyan,fg:black
<span class="org-variable-name">title_verify</span> = bg:magenta,fg:black
<span class="org-variable-name">title_paused</span> = bg:black,fg:white
<span class="org-variable-name">title_error</span> = bg:red,fg:white
<span class="org-variable-name">download_rate</span> = bg:black,fg:blue
<span class="org-variable-name">upload_rate</span> = bg:black,fg:red
<span class="org-variable-name">eta+ratio</span> = bg:black,fg:white
<span class="org-variable-name">filter_status</span> = bg:red,fg:black
<span class="org-variable-name">dialog</span> = bg:black,fg:white
<span class="org-variable-name">dialog_important</span> = bg:red,fg:black
<span class="org-variable-name">button</span> = bg:white,fg:black
<span class="org-variable-name">button_focused</span> = bg:black,fg:white
<span class="org-variable-name">file_prio_high</span> = bg:red,fg:black
<span class="org-variable-name">file_prio_normal</span> = bg:white,fg:black
<span class="org-variable-name">file_prio_low</span> = bg:yellow,fg:black
<span class="org-variable-name">file_prio_off</span> = bg:blue,fg:black
</pre>
</div>
</div>
</div>
<div id="outline-container-orgcdb4a92" class="outline-2">
<h2 id="orgcdb4a92"><code>aria2c</code> - Lightweight download utility</h2>
<div class="outline-text-2" id="text-orgcdb4a92">
<div class="org-src-container">
<pre class="src src-conf">continue
<span class="org-variable-name">daemon</span>=true
<span class="org-variable-name">dir</span>=/home/thomas/Downloads
<span class="org-variable-name">max-connection-per-server</span>=<span class="org-highlight-numbers-number">4</span>
<span class="org-variable-name">max-concurrent-downloads</span>=<span class="org-highlight-numbers-number">3</span>
<span class="org-variable-name">enable-rpc</span>=true
<span class="org-variable-name">rpc-listen-all</span>=true
<span class="org-variable-name">http-user</span>=dehaeze.thomas@gmail.com
<span class="org-variable-name">http-passwd</span>=&lt;&lt;get-password(passname=<span class="org-string">"1fichier.com/dehaeze.thomas@gmail.com"</span>)&gt;&gt;
<span class="org-variable-name">on-download-start</span>=/home/thomas/.config/aria2/download-start.sh
<span class="org-variable-name">on-download-complete</span>=/home/thomas/.config/aria2/download-complete.sh
<span class="org-variable-name">on-download-error</span>=/home/thomas/.config/aria2/download-error.sh
</pre>
</div>
</div>
<div id="outline-container-org1d6cd04" class="outline-3">
<h3 id="org1d6cd04">Download Start Script</h3>
<div class="outline-text-3" id="text-org1d6cd04">
<div class="org-src-container">
<pre class="src src-bash">dunstify <span class="org-string">"DL Started"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2&gt; /dev/null)</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org702c949" class="outline-3">
<h3 id="org702c949">Download Complete Script</h3>
<div class="outline-text-3" id="text-org702c949">
<div class="org-src-container">
<pre class="src src-bash">dunstify <span class="org-string">"DL Completed"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2&gt; /dev/null)</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc677acc" class="outline-3">
<h3 id="orgc677acc">Download Error Script</h3>
<div class="outline-text-3" id="text-orgc677acc">
<div class="org-src-container">
<pre class="src src-bash">dunstify --urgency=critical <span class="org-string">"DL Failed"</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">basename</span><span class="org-string"><span class="org-sh-quoted-exec"> \"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">3</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">\" 2&gt; /dev/null)</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-05-02 dim. 11:26</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MPV Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,141 +22,44 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgebdc047">MPV Configuration</a>
<ul>
<li><a href="#org57b72c4">Video settings</a></li>
<li><a href="#orgdfdb9bc">Audio settings</a></li>
<li><a href="#orgc9bdb6a">Other settings</a></li>
</ul>
</li>
<li><a href="#org20df82e">MPV Key Bindings</a></li>
<li><a href="#org06a0ee3"><code>mpv.conf</code> - MPV Configuration</a></li>
<li><a href="#org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</a></li>
</ul>
</div>
</div>
<div id="outline-container-orgebdc047" class="outline-2">
<h2 id="orgebdc047">MPV Configuration</h2>
<div class="outline-text-2" id="text-orgebdc047">
</div>
<div id="outline-container-org57b72c4" class="outline-3">
<h3 id="org57b72c4">Video settings</h3>
<div class="outline-text-3" id="text-org57b72c4">
<div id="outline-container-org06a0ee3" class="outline-2">
<h2 id="org06a0ee3"><code>mpv.conf</code> - MPV Configuration</h2>
<div class="outline-text-2" id="text-org06a0ee3">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Start in fullscreen mode by default.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">fs=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">force starting with centered window</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">geometry=50%:50%</span>
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">When Floating, put MPV on the bottom right corner</span>
<span class="org-variable-name">geometry</span>=99%:98%
<span class="org-comment-delimiter"># </span><span class="org-comment">don't allow a new window to have a size larger than 90% of the screen size</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">autofit-larger=90%x90%</span>
<span class="org-variable-name">autofit-larger</span>=40%x40%
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not close the window on exit.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">keep-open=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not wait with showing the video window until it has loaded. (This will</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">resize the window once video is loaded. Also always shows a window with</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">audio.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">force-window=immediate</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable the On Screen Controller (OSC).</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">osc=no</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Keep the player window on top of all other windows.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">ontop=yes</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Specify high quality video rendering preset (for --vo=gpu only)</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Can cause performance problems with some drivers and GPUs.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">profile=gpu-hq</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Force video to lock on the display's refresh rate, and change video and audio</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">speed to some degree to ensure synchronous playback - can cause problems</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">with some drivers and desktop environments.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">video-sync=display-resample</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable hardware decoding if available. Often, this does not work with all</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">video outputs, but should work well with default settings on most systems.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If performance or energy usage is an issue, forcing the vdpau or vaapi VOs</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">may or may not help.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">hwdec=auto</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdfdb9bc" class="outline-3">
<h3 id="orgdfdb9bc">Audio settings</h3>
<div class="outline-text-3" id="text-orgdfdb9bc">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Specify default audio device. You can list devices with: --audio-device=help</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">The option takes the device string (the stuff between the '...').</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-device=alsa/default</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not filter audio to keep pitch when changing playback speed.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-pitch-correction=no</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Output 5.1 audio natively, and upmix/downmix audio with a different format.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-channels=5.1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable any automatic remix, _if_ the audio output accepts the audio format.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">of the currently played file. See caveats mentioned in the manpage.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">(The default is "auto-safe", see manpage.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">audio-channels=auto</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc9bdb6a" class="outline-3">
<h3 id="orgc9bdb6a">Other settings</h3>
<div class="outline-text-3" id="text-orgc9bdb6a">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Pretend to be a web browser. Might fix playback with some streaming sites,</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">but also will break with shoutcast streams.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">user-agent="Mozilla/5.0"</span>
<span class="org-variable-name">stop-screensaver</span> = <span class="org-string">"yes"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not run the screensaver when playing videos</span>
<span class="org-variable-name">stop-screensaver</span>=<span class="org-string">"yes"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Automatically load subtitle file with filename same to the video</span>
<span class="org-variable-name">sub-auto</span>=fuzzy
<span class="org-comment-delimiter"># </span><span class="org-comment">cache settings</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use 150MB input cache by default. The cache is enabled for network streams only.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-default=153600</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use 150MB input cache for everything, even local files.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache=153600</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Disable the behavior that the player will pause if the cache goes below a</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">certain fill size.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-pause=no</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Read ahead about 5 seconds of audio and video packets.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">demuxer-readahead-secs=5.0</span>
<span class="org-comment-delimiter">#</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Raise readahead from demuxer-readahead-secs to this value if a cache is active.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">cache-secs=50.0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Display French subtitles if available.</span>
<span class="org-variable-name">slang</span>=fr
<span class="org-comment-delimiter"># </span><span class="org-comment">Display English subtitles if available.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">slang=en</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Play English audio if available, fall back to French otherwise.</span>
<span class="org-variable-name">alang</span>=en,fr
<span class="org-comment-delimiter"># </span><span class="org-comment">Play Finnish audio if available, fall back to English otherwise.</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">alang=fi,en</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Change subtitle encoding. For Arabic subtitles use 'cp1256'.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If the file seems to be valid UTF-8, prefer UTF-8.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">(You can add '+' in front of the codepage to force it.)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">sub-codepage=cp1256</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Do not close mpv at the end of video</span>
<span class="org-variable-name">keep-open</span>=yes
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org20df82e" class="outline-2">
<h2 id="org20df82e">MPV Key Bindings</h2>
<div class="outline-text-2" id="text-org20df82e">
<div id="outline-container-org9b7ebc9" class="outline-2">
<h2 id="org9b7ebc9"><code>input.conf</code> - MPV Key Bindings</h2>
<div class="outline-text-2" id="text-org9b7ebc9">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Audio</span>
@ -502,7 +169,7 @@ Z add sub-delay +0.1 <span class="org-comment-delimiter"># </s
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">[ multiply speed 1/1.1 # scale playback speed</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">] multiply speed 1.1</span>
<span class="org-comment-delimiter"><span class="org-type">#</span></span><span class="org-comment">{ multiply speed 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">{ multiply speed 0.5</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">} multiply speed 2.0</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">BS set speed 1.0 # reset speed to normal</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">=============================================================</span>
@ -600,7 +267,7 @@ Z add sub-delay +0.1 <span class="org-comment-delimiter"># </s
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

232
docs/windows.html Normal file
View File

@ -0,0 +1,232 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2021-01-08 ven. 01:43 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Windows Config and Install</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Windows Config and Install</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org9346dc9">Create a bootable USB Key</a></li>
<li><a href="#org0143940">Install Windows10 PRO</a></li>
<li><a href="#org0cc05f7">Install Software using Chocolatey</a></li>
<li><a href="#org0a94edb">Debloat windows10</a></li>
<li><a href="#org432cd75">SSHFS</a>
<ul>
<li><a href="#org46e6091">SSH Setup</a></li>
<li><a href="#orgb2e9259">SSHFS</a></li>
</ul>
</li>
<li><a href="#orgb8446e0">Software Setup</a>
<ul>
<li><a href="#orge44d00a">Syncthing</a></li>
<li><a href="#org796ab09">Cura</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org9346dc9" class="outline-2">
<h2 id="org9346dc9">Create a bootable USB Key</h2>
<div class="outline-text-2" id="text-org9346dc9">
<ul class="org-ul">
<li>Download Windows10 ISO <a href="https://www.microsoft.com/en-us/software-download/windows10ISO">https://www.microsoft.com/en-us/software-download/windows10ISO</a></li>
<li>Create bootable USB key using the woeusb utility (<a href="https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/">https://computingforgeeks.com/create-windows-10-bootable-usb-on-linux/</a>)</li>
</ul>
<div class="org-src-container">
<pre class="src src-bash">yay -S woeusb
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> woeusb --device file.iso /dev/sdb --target-filesystem ntfs
</pre>
</div>
</div>
</div>
<div id="outline-container-org0143940" class="outline-2">
<h2 id="org0143940">Install Windows10 PRO</h2>
</div>
<div id="outline-container-org0cc05f7" class="outline-2">
<h2 id="org0cc05f7">Install Software using Chocolatey</h2>
<div class="outline-text-2" id="text-org0cc05f7">
<p>
First install Chocolatey using a PowerShell as administrator:
</p>
<div class="org-src-container">
<pre class="src src-bash">Set-ExecutionPolicy Bypass -Scope Process -Force; <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol = <span class="org-rainbow-delimiters-depth-1">[</span>System.Net.ServicePointManager<span class="org-rainbow-delimiters-depth-1">]</span>::SecurityProtocol -bor <span class="org-highlight-numbers-number">3072</span>; iex <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://chocolatey.org/install.ps1'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
</pre>
</div>
<p>
Then, install all required software using one command:
</p>
<div class="org-src-container">
<pre class="src src-bash">choco install -y firefox 7zip.install vlc git.install malwarebytes sumatrapdf.install steam anydesk discord f.lux cmder cura ccleaner neovim
</pre>
</div>
</div>
</div>
<div id="outline-container-org0a94edb" class="outline-2">
<h2 id="org0a94edb">Debloat windows10</h2>
<div class="outline-text-2" id="text-org0a94edb">
<p>
<a href="https://github.com/Sycnex/Windows10Debloater">https://github.com/Sycnex/Windows10Debloater</a>
</p>
<p>
Run a PowerShell with administrative rights and run:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-function-name">iex</span> <span class="org-rainbow-delimiters-depth-1">(</span><span class="org-rainbow-delimiters-depth-2">(</span>New-Object System.Net.WebClient<span class="org-rainbow-delimiters-depth-2">)</span>.DownloadString<span class="org-rainbow-delimiters-depth-2">(</span><span class="org-string">'https://git.io/debloat'</span><span class="org-rainbow-delimiters-depth-2">)</span><span class="org-rainbow-delimiters-depth-1">)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org432cd75" class="outline-2">
<h2 id="org432cd75">SSHFS</h2>
<div class="outline-text-2" id="text-org432cd75">
</div>
<div id="outline-container-org46e6091" class="outline-3">
<h3 id="org46e6091">SSH Setup</h3>
<div class="outline-text-3" id="text-org46e6091">
<p>
Install OpenSSH from <code>chocolatey</code> as the one packed with Windows is quite old (<a href="https://blog.frankfu.com.au/2019/03/21/moving-from-windows-1809s-openssh-to-openssh-portable/">link</a>):
</p>
<div class="org-src-container">
<pre class="src src-bash">choco install openssh --package-parameters=<span class="org-string">"/SSHAgentFeature"</span>
</pre>
</div>
<p>
Then generate the keys:
</p>
<div class="org-src-container">
<pre class="src src-bash">ssh-keygen
</pre>
</div>
<p>
Start the SSH-Agent to automatically unlock the keys:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start the service</span>
Start-Service ssh-agent
<span class="org-comment-delimiter"># </span><span class="org-comment">This should return a status of Running</span>
Get-Service ssh-agent
<span class="org-comment-delimiter"># </span><span class="org-comment">Now load your key files into ssh-agent</span>
ssh-add
</pre>
</div>
<p>
Copy the public key with:
</p>
<div class="org-src-container">
<pre class="src src-bash">Get-Content -Path $<span class="org-variable-name">HOME</span><span class="org-string">\.</span>ssh\id_rsa.pub | Set-Clipboard
</pre>
</div>
<p>
And add it to <code>~/.ssh/authorized_keys</code> on the server side.
</p>
<p>
Finally, it should be possible to ssh to the server.
</p>
</div>
</div>
<div id="outline-container-orgb2e9259" class="outline-3">
<h3 id="orgb2e9259">SSHFS</h3>
<div class="outline-text-3" id="text-orgb2e9259">
<p>
Install <a href="https://github.com/billziss-gh/sshfs-win">sshfs-win</a>.
</p>
<p>
Run the <code>Registry Editor</code>, and find <code>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\WinFsp\Services\sshfs.kr</code>, then edit <code>CommandLine</code>:
</p>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">svc %1 %2 %U -o create_dir_umask</span>=<span class="org-highlight-numbers-number">000</span> -o create_file_umask=<span class="org-highlight-numbers-number">111</span> -o umask=<span class="org-highlight-numbers-number">000</span>
</pre>
</div>
<p>
Then, to mount the network drive using <code>sshfs</code>:
</p>
<div class="org-src-container">
<pre class="src src-bash">net use X: <span class="org-string">\\</span>sshfs.kr\thomas@192.168.1.150\srv\storage /persistent:yes
</pre>
</div>
<p>
To un-mount it:
</p>
<div class="org-src-container">
<pre class="src src-bash">net use X: /delete
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgb8446e0" class="outline-2">
<h2 id="orgb8446e0">Software Setup</h2>
<div class="outline-text-2" id="text-orgb8446e0">
</div>
<div id="outline-container-orge44d00a" class="outline-3">
<h3 id="orge44d00a">Syncthing</h3>
<div class="outline-text-3" id="text-orge44d00a">
<p>
<a href="https://docs.syncthing.net/users/autostart.html#autostart-windows-startup">https://docs.syncthing.net/users/autostart.html#autostart-windows-startup</a>
</p>
<p>
Go to <code>%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup</code> and create a shortcut linking to <code>C:\path_to\syncthing.exe -no-console -no-browser</code>
</p>
<p>
Then, Syncthing can be accessed with: <a href="http://localhost:8384/">http://localhost:8384/</a>
</p>
</div>
</div>
<div id="outline-container-org796ab09" class="outline-3">
<h3 id="org796ab09">Cura</h3>
<div class="outline-text-3" id="text-org796ab09">
<ul class="org-ul">
<li><a href="https://github.com/fieldOfView/Cura-OctoPrintPlugin">https://github.com/fieldOfView/Cura-OctoPrintPlugin</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-08 ven. 01:43</p>
</div>
</body>
</html>

View File

@ -1,229 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-03-01 dim. 22:50 -->
<!-- 2021-04-25 dim. 19:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Configuration Files related to Xorg</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -236,28 +22,28 @@
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org46b88d4">Xresources</a>
<li><a href="#xresources"><code>~/.Xresources</code></a>
<ul>
<li><a href="#org97a3062">Colors</a></li>
<li><a href="#orgb20ef40">Fonts</a></li>
<li><a href="#org2f75682">Cursor</a></li>
<li><a href="#orgff42f84">Colors</a></li>
<li><a href="#orgabc7947">Fonts</a></li>
<li><a href="#org8a5f615">Cursor</a></li>
</ul>
</li>
<li><a href="#org5283ed8">Xmodmap</a></li>
<li><a href="#org8d77773">xinit</a></li>
<li><a href="#org530c426">Xprofile</a></li>
<li><a href="#xmodmap"><code>~/.Xmodmap</code></a></li>
<li><a href="#xinitrc"><code>~/.xinitrc</code></a></li>
<li><a href="#xprofile"><code>~/.xprofile</code></a></li>
</ul>
</div>
</div>
<div id="outline-container-org46b88d4" class="outline-2">
<h2 id="org46b88d4">Xresources</h2>
<div class="outline-text-2" id="text-org46b88d4">
<div id="outline-container-xresources" class="outline-2">
<h2 id="xresources"><code>~/.Xresources</code></h2>
<div class="outline-text-2" id="text-xresources">
</div>
<div id="outline-container-org97a3062" class="outline-3">
<h3 id="org97a3062">Colors</h3>
<div class="outline-text-3" id="text-org97a3062">
<div id="outline-container-orgff42f84" class="outline-3">
<h3 id="orgff42f84">Colors</h3>
<div class="outline-text-3" id="text-orgff42f84">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">define base00 #32302f</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">define base01 #3c3836</span>
@ -315,9 +101,9 @@
</div>
</div>
<div id="outline-container-orgb20ef40" class="outline-3">
<h3 id="orgb20ef40">Fonts</h3>
<div class="outline-text-3" id="text-orgb20ef40">
<div id="outline-container-orgabc7947" class="outline-3">
<h3 id="orgabc7947">Fonts</h3>
<div class="outline-text-3" id="text-orgabc7947">
<div class="org-src-container">
<pre class="src src-conf">Xft.dpi: <span class="org-highlight-numbers-number">96</span>
Xft.autohint: <span class="org-highlight-numbers-number">0</span>
@ -331,9 +117,9 @@ Xft.rgba: rgb
</div>
</div>
<div id="outline-container-org2f75682" class="outline-3">
<h3 id="org2f75682">Cursor</h3>
<div class="outline-text-3" id="text-org2f75682">
<div id="outline-container-org8a5f615" class="outline-3">
<h3 id="org8a5f615">Cursor</h3>
<div class="outline-text-3" id="text-org8a5f615">
<div class="org-src-container">
<pre class="src src-conf">Xcursor.theme: Breeze
Xcursor.size: <span class="org-highlight-numbers-number">0</span>
@ -343,9 +129,9 @@ Xcursor.size: <span class="org-highlight-numbers-number">0</span>
</div>
</div>
<div id="outline-container-org5283ed8" class="outline-2">
<h2 id="org5283ed8">Xmodmap</h2>
<div class="outline-text-2" id="text-org5283ed8">
<div id="outline-container-xmodmap" class="outline-2">
<h2 id="xmodmap"><code>~/.Xmodmap</code></h2>
<div class="outline-text-2" id="text-xmodmap">
<div class="org-src-container">
<pre class="src src-conf">keycode <span class="org-highlight-numbers-number">8</span> =
keycode <span class="org-highlight-numbers-number">9</span> = Escape NoSymbol Escape
@ -600,9 +386,9 @@ keycode <span class="org-highlight-numbers-number">255</span> = XF86RFKill NoSym
</div>
</div>
<div id="outline-container-org8d77773" class="outline-2">
<h2 id="org8d77773">xinit</h2>
<div class="outline-text-2" id="text-org8d77773">
<div id="outline-container-xinitrc" class="outline-2">
<h2 id="xinitrc"><code>~/.xinitrc</code></h2>
<div class="outline-text-2" id="text-xinitrc">
<div class="org-src-container">
<pre class="src src-bash">dbus-update-activation-environment --systemd DISPLAY
</pre>
@ -651,43 +437,58 @@ Merge in defaults and keymaps
</pre>
</div>
<p>
Start <code>gnome-keyring-daemon</code>.
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">gnome-keyring-daemon</span> --start --components=pkcs11,secrets,ssh<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-builtin">export</span> SSH_AUTH_SOCK
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -f ~/.xprofile <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-builtin">.</span> ~/.xprofile
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">exec</span> i3
</pre>
</div>
</div>
</div>
<div id="outline-container-org530c426" class="outline-2">
<h2 id="org530c426">Xprofile</h2>
<div class="outline-text-2" id="text-org530c426">
<div id="outline-container-xprofile" class="outline-2">
<h2 id="xprofile"><code>~/.xprofile</code></h2>
<div class="outline-text-2" id="text-xprofile">
<p>
Keyboard Options
Keyboard Options:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Set repetition keyboard rate</span>
xset r rate <span class="org-highlight-numbers-number">200</span> <span class="org-highlight-numbers-number">40</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Set International US keyboard layout</span>
setxkbmap -layout us -variant intl -option caps:escape &amp;
</pre>
</div>
<p>
Start programs related to display.
Start programs related to display:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Screen options</span>
xrandr --output eDP1 --mode 1920x1080 --dpi <span class="org-highlight-numbers-number">192</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Set custom wallpaper script</span>
$<span class="org-variable-name">HOME</span>/scripts/wallpapers.sh &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Set random wallpaper</span>
setbg ~/.local/data/wallpapers/ &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide mouse cursor after x seconds</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> unclutter &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
unclutter --timeout <span class="org-highlight-numbers-number">5</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Autolock screen after x minutes</span>
xautolock -locker <span class="org-string">"~/scripts/lockscreen.sh"</span> -detectsleep -time <span class="org-highlight-numbers-number">30</span> -notify <span class="org-highlight-numbers-number">60</span> -notifier <span class="org-string">"dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'"</span> &amp;
xautolock -locker <span class="org-string">"~/.local/bin/lockscreen"</span> -detectsleep -time <span class="org-highlight-numbers-number">30</span> -notify <span class="org-highlight-numbers-number">60</span> -notifier <span class="org-string">"dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'"</span> &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Redshift</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> redshift &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
@ -699,34 +500,49 @@ picom --daemon &amp;
</div>
<p>
Start the applications related to the top bar (polybar + applet).
Manually start <code>mopidy</code> as it seems to not start automatically:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start Network Management Framework</span>
nm-applet &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Start Power Manager</span>
xfce4-power-manager &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Bluetooth Manager</span>
blueman-applet &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Synology Cloud Station Drive</span>
synology-drive &amp;
<span class="org-comment-delimiter"># </span><span class="org-comment">Udiskie to automount usb keys</span>
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> udiskie &gt;/dev/null || <span class="org-sh-escaped-newline">\</span>
udiskie --automount --notify --tray &amp;
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash">mopidy --config ~/.config/mopidy/mopidy.conf &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Mopidy</span>
mopidy --config ~/.config/mopidy/mopidy.conf &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
</pre>
</div>
<p>
Finally, run SXHKD for the key bindings.
Configuration for the HUION Inspiroy Ink H320M graphical tablet (<a href="tablet.html">Tablet config</a>):
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Lock cursor in first display. Change HEAD number to use a different displace</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">xsetwacom set "HUION Huion Tablet_H320M Pen stylus" MapToOutput "HEAD-0"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Pen Buttons</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pen stylus"</span> button <span class="org-highlight-numbers-number">1</span> <span class="org-highlight-numbers-number">1</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Left click</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pen stylus"</span> button <span class="org-highlight-numbers-number">2</span> <span class="org-highlight-numbers-number">2</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Right click</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pen stylus"</span> button <span class="org-highlight-numbers-number">3</span> <span class="org-highlight-numbers-number">3</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Middle click</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Tablet Buttons</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Top Buttons</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">1</span> key Ctrl T <span class="org-comment-delimiter"># </span><span class="org-comment">Tools</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">2</span> key Ctrl Shift A <span class="org-comment-delimiter"># </span><span class="org-comment">Hand Tool</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">3</span> key Ctrl Shift D <span class="org-comment-delimiter"># </span><span class="org-comment">Default Tool</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Round Buttons (Top, Bottom, Middle, Left, Right)</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">8</span> key Ctrl Shift + <span class="org-comment-delimiter"># </span><span class="org-comment">Zoom</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">9</span> key Ctrl - <span class="org-comment-delimiter"># </span><span class="org-comment">Unzoom</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">10</span> key Ctrl S <span class="org-comment-delimiter"># </span><span class="org-comment">Save</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">11</span> key Ctrl Z <span class="org-comment-delimiter"># </span><span class="org-comment">Undo</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">12</span> key Ctrl Shift Z <span class="org-comment-delimiter"># </span><span class="org-comment">Redo</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Bottom Buttons</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">13</span> key Ctrl Shift O <span class="org-comment-delimiter"># </span><span class="org-comment">Select</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">14</span> key Ctrl <span class="org-comment-delimiter"># </span><span class="org-comment">Ctrl (Color Picker, Zoom)</span>
xsetwacom set <span class="org-string">"HUION Huion Tablet_H320M Pad pad"</span> button <span class="org-highlight-numbers-number">15</span> key Ctrl Q <span class="org-comment-delimiter"># </span><span class="org-comment">Quit</span>
</pre>
</div>
<p>
Finally, run SXHKD for the key bindings:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start sxhkd</span>
@ -739,7 +555,7 @@ Finally, run SXHKD for the key bindings.
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-03-01 dim. 22:50</p>
<p class="date">Created: 2021-04-25 dim. 19:10</p>
</div>
</body>
</html>

View File

@ -1,251 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-02-10 mer. 17:57 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Zathura</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,16 +22,21 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgb79ef7e">Configuration</a></li>
<li><a href="#orgf927afe">Bindings</a></li>
<li><a href="#org0ac6dba">Colors</a></li>
<li><a href="#orgc0ba73f">Configuration</a></li>
<li><a href="#orge5e71df">Bindings</a></li>
<li><a href="#orgbe75730">Colors</a></li>
<li><a href="#orgc4659f8">Scripts</a>
<ul>
<li><a href="#org69796fa">Extract one page as a PDF</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-orgb79ef7e" class="outline-2">
<h2 id="orgb79ef7e">Configuration</h2>
<div class="outline-text-2" id="text-orgb79ef7e">
<div id="outline-container-orgc0ba73f" class="outline-2">
<h2 id="orgc0ba73f">Configuration</h2>
<div class="outline-text-2" id="text-orgc0ba73f">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Use clipboard</span>
set selection-clipboard clipboard
@ -278,14 +47,17 @@ set statusbar-v-padding <span class="org-highlight-numbers-number">0</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Padding between pages</span>
set page-padding <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Use Synctex with Emasc</span>
set synctex true
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf927afe" class="outline-2">
<h2 id="orgf927afe">Bindings</h2>
<div class="outline-text-2" id="text-orgf927afe">
<div id="outline-container-orge5e71df" class="outline-2">
<h2 id="orge5e71df">Bindings</h2>
<div class="outline-text-2" id="text-orge5e71df">
<div class="org-src-container">
<pre class="src src-conf">map u scroll half-up
map d scroll half-down
@ -303,18 +75,19 @@ map H zoom out
map i recolor
map p print
map m toggle_statusbar
map t toggle_statusbar
map &lt;Space&gt; scroll full-down
map &lt;BackSpace&gt; scroll full-up
map &lt;C-s&gt; feedkeys <span class="org-string">":exec /home/thomas/.config/zathura/scripts/extract-pdf-page.sh $FILE&lt;Return&gt;"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0ac6dba" class="outline-2">
<h2 id="org0ac6dba">Colors</h2>
<div class="outline-text-2" id="text-org0ac6dba">
<div id="outline-container-orgbe75730" class="outline-2">
<h2 id="orgbe75730">Colors</h2>
<div class="outline-text-2" id="text-orgbe75730">
<div class="org-src-container">
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Base16 Gruvbox dark, soft</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)</span>
@ -355,10 +128,34 @@ set recolor-keephue <span class="org-string">"false"</span>
</div>
</div>
</div>
<div id="outline-container-orgc4659f8" class="outline-2">
<h2 id="orgc4659f8">Scripts</h2>
<div class="outline-text-2" id="text-orgc4659f8">
</div>
<div id="outline-container-org69796fa" class="outline-3">
<h3 id="org69796fa">Extract one page as a PDF</h3>
<div class="outline-text-3" id="text-org69796fa">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=/tmp/pdf_page.pdf
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask for page number</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Ideally would get the page from Zathura...</span>
<span class="org-variable-name">pagenum</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -dmenu -p <span class="org-string">"Page Number"</span><span class="org-rainbow-delimiters-depth-1">)</span>
pdftk $<span class="org-highlight-numbers-number">1</span> <span class="org-type">cat</span> $<span class="org-variable-name">pagenum</span> output $<span class="org-variable-name">tmpfile</span>.pdf &amp;&amp; <span class="org-sh-escaped-newline">\</span>
pdf2svg $<span class="org-variable-name">tmpfile</span>.pdf $<span class="org-variable-name">tmpfile</span>.svg &amp;&amp; <span class="org-sh-escaped-newline">\</span>
inkscape $<span class="org-variable-name">tmpfile</span>.svg
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-02-10 mer. 17:57</p>
</div>
</body>
</html>

View File

@ -1,251 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-01-11 sam. 22:19 -->
<!-- 2021-01-01 ven. 14:56 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ZSH Config</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="org-div-home-and-up">
@ -258,18 +26,17 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org5a86fa0">Zplug</a></li>
<li><a href="#orgdf62626">Zplug</a></li>
</ul>
</div>
</div>
<p>
<a href="https://github.com/unixorn/awesome-zsh-plugins">https://github.com/unixorn/awesome-zsh-plugins</a>
</p>
<div id="outline-container-org5a86fa0" class="outline-2">
<h2 id="org5a86fa0">Zplug</h2>
<div class="outline-text-2" id="text-org5a86fa0">
<div id="outline-container-orgdf62626" class="outline-2">
<h2 id="orgdf62626">Zplug</h2>
<div class="outline-text-2" id="text-orgdf62626">
<p>
<a href="https://github.com/zplug/zplug">https://github.com/zplug/zplug</a>
</p>
@ -296,7 +63,7 @@ zplug load --verbose
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-01-11 sam. 22:19</p>
<p class="date">Created: 2021-01-01 ven. 14:56</p>
</div>
</body>
</html>

3495
doom.org Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,206 +0,0 @@
#+TITLE:Desktop file for the applications
: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>
:END:
* Mime Applications
:PROPERTIES:
:header-args: :tangle ~/.config/mimeapps.list
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Default Applications]
text/plain=nvim.desktop
x-scheme-handler/magnet=torrent.desktop;
text/x-shellscript=nvim.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
x-scheme-handler/mailto=neomutt.desktop
message/rfc822=neomutt.desktop
application/x-bittorrent=deluge.desktop
application/pdf=zathura.desktop
x-scheme-handler/http=qutebrowser.desktop
x-scheme-handler/https=qutebrowser.desktop
x-scheme-handler/ftp=qutebrowser.desktop
x-scheme-handler/chrome=qutebrowser.desktop
text/html=qutebrowser.desktop
application/x-extension-htm=qutebrowser.desktop
application/x-extension-html=qutebrowser.desktop
application/x-extension-shtml=qutebrowser.desktop
application/xhtml+xml=qutebrowser.desktop
application/x-extension-xhtml=qutebrowser.desktop
application/x-extension-xht=qutebrowser.desktop
[Added Associations]
text/plain=mousepad.desktop;
application/x-bittorrent=deluge.desktop;
#+END_SRC
* Neomutt
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/neomutt.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Name=Neomutt
GenericName=Email client
Exec=$TERMINAL -e neomutt %u
Type=Application
Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg
Categories=Network;Email;
MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
StartupNotify=true
#+end_src
* Weechat
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/weechat.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Encoding=UTF-8
MultipleArgs=false
Terminal=false
Exec=$TERMINAL --class=WeeChat -e 'weechat'
StartupWMClass=WeeChat
Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg
Type=Application
Categories=Network;IRCClient;
StartupNotify=true
Name=WeeChat
GenericName=IRC Client
#+end_src
* Matlab
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/matlab.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Version=R2019b
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=/usr/local/MATLAB/R2019b/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
#+end_src
* Zathura
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/zathura.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Version=1.0
Type=Application
Name=Zathura
Comment=A minimalistic document viewer
Exec=zathura %U
Icon=/usr/share/icons/Papirus/64x64/apps/zathura.svg
Terminal=false
Categories=Office;Viewer;
Keywords=PDF;PS;PostScript;DjVU;document;presentation;viewer;
#+end_src
* Neovim
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/nvim.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Name=Neovim
GenericName=Text Editor
Comment=Edit text files
Exec=nvim %F
Terminal=true
Type=Application
Keywords=Text;editor;
Icon=/usr/share/icons/Papirus/48x48/apps/nvim.svg
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;
#+end_src
* Images
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/img.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Type=Application
Name=Image viewer
Exec=/usr/bin/sxiv -a %u
#+end_src
* Org-Protocol
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/org-protocol.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Name=org-protocol
Exec=emacsclient %u
Type=Application
Terminal=false
Categories=System;
MimeType=x-scheme-handler/org-protocol;
#+end_src
* Ranger
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/ranger.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Type=Application
Name=ranger
Comment=Launches the ranger file manager
Icon=utilities-terminal
Terminal=true
Exec=ranger
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler/smb;x-scheme-handler/nfs;x-scheme-handler/ftp;
#+end_src
* Emacs Client
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/emacsclient.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Name=Emacs Client
Exec=emacsclient -c %u
Icon=emacs-icon
Type=Application
Terminal=false
MimeType=x-scheme-handler/org-protocol;
NoDisplay=true
#+end_src

View File

@ -1,429 +0,0 @@
#+TITLE: Bash Configuration
: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>
:END:
* Bashrc
:PROPERTIES:
:header-args:bash: :tangle ~/.bashrc
:header-args:bash+: :comments both :mkdirp yes
:END:
** What does that do?
#+BEGIN_SRC bash
[[ $- != *i* ]] && return
#+END_SRC
** Bash Completion
#+BEGIN_SRC bash
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
#+END_SRC
** Ignore case for autocompletion
#+BEGIN_SRC bash
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
#+END_SRC
** Use Color
#+BEGIN_SRC bash
use_color=true
alias ls='ls -hN --color=auto --group-directories-first'
alias grep='grep --colour=auto'
#+END_SRC
** Set colorful PS1 only on colorful terminals.
dircolors --print-database uses its own built-in database instead of using /etc/DIR_COLORS. Try to use the external file first to take advantage of user additions. Use internal bash globbing instead of external grep binary.
#+BEGIN_SRC bash
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
match_lhs=""
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
[[ -z ${match_lhs} ]] \
&& type -P dircolors >/dev/null \
&& match_lhs=$(dircolors --print-database)
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
if ${use_color} ; then
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if type -P dircolors >/dev/null ; then
if [[ -f ~/.dir_colors ]] ; then
eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
eval $(dircolors -b /etc/DIR_COLORS)
fi
fi
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
else
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
fi
else
if [[ ${EUID} == 0 ]] ; then
# show root@ when we don't have colors
PS1='\u@\h \W \$ '
else
PS1='\u@\h \w \$ '
fi
fi
#+END_SRC
** Some config
#+BEGIN_SRC bash
unset use_color safe_term match_lhs sh
xhost +local:root > /dev/null 2>&1
complete -cf sudo
# Line wrap on window resize
shopt -s checkwinsize
shopt -s expand_aliases
# Auto "cd" when entering just a path
shopt -s autocd
# Enable history appending instead of overwriting
shopt -s histappend
#+END_SRC
** Prompt
#+BEGIN_SRC bash
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
#+END_SRC
** SSH Agent
#+begin_src bash
# if ! pgrep -u "$USER" ssh-agent > /dev/null; then
# ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
# fi
# if [[ ! "$SSH_AUTH_SOCK" ]]; then
# eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
# fi
#+end_src
** Rebind up and down arrow keys to search through bash history
#+BEGIN_SRC bash
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
#+END_SRC
** Aliases
*** Better defaults for some commands
#+BEGIN_SRC bash
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias mutt="neomutt"
alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf'
#+END_SRC
*** One letter aliases
#+BEGIN_SRC bash
alias r="ranger"
alias t="tmux"
alias v="nvim"
alias sv='sudo -E nvim'
alias g="git"
alias m="neomutt"
alias y="yadm"
alias o="xdg-open"
alias x="sxiv -ft *"
#+END_SRC
*** Neovim
#+begin_src bash
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present.
#+end_src
*** Magit
#+BEGIN_SRC bash
# alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'"
alias magit="nvim -c MagitOnly"
#+END_SRC
*** Vim-like
#+BEGIN_SRC bash
alias :q=exit
alias :e=nvim
#+END_SRC
*** Print each PATH entry on a separate line
#+BEGIN_SRC bash
alias path='echo -e ${PATH//:/\\n}'
#+END_SRC
** Functions
*** Display colors
#+BEGIN_SRC bash
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
# foreground colors
for fgc in {30..37}; do
# background colors
for bgc in {40..47}; do
fgc=${fgc#37} # white
bgc=${bgc#40} # black
vals="${fgc:+$fgc;}${bgc}"
vals=${vals%%;}
seq0="${vals:+\e[${vals}m}"
printf " %-9s" "${seq0:-(default)}"
printf " ${seq0}TEXT\e[m"
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
done
echo; echo
done
}
#+END_SRC
*** Meteo
#+BEGIN_SRC bash
meteo() {
if [ -n "$*" ]; then
address="wttr.in/"
address+=$*
address+="?lang=fr"
curl "$address"
else
address="wttr.in/"
address+="?lang=fr"
curl "$address"
fi
}
alias meteo=meteo
#+END_SRC
*** Upload using transfer.sh
#+BEGIN_SRC bash
upload() {
# write to output to tmpfile because of progress bar
tmpfile=$(mktemp -t transferXXX)
# basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9]/-/g')
curl --progress-bar --upload-file "$1" "https://transfer.sh/" >> $tmpfile;
cat $tmpfile | xsel -ib;
echo "Copied:" $(cat $tmpfile);
rm -f $tmpfile;
}
alias upload=upload
#+END_SRC
*** Extract archive
usage: ex <file>
#+BEGIN_SRC bash
ex ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via ex()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
#+END_SRC
*** Tree display
=tre= is a shorthand for =tree= with hidden files and color enabled, ignoring
the =.git= directory, listing directories first. The output gets piped into
=less= with options to preserve color and line numbers, unless the output is
small enough for one screen.
#+BEGIN_SRC bash
function tre() {
tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@" | less -FRNX;
}
#+END_SRC
*** Create a new directory and enter it
#+BEGIN_SRC bash
function mkd() {
mkdir -p "$@" && cd "$_";
}
#+END_SRC
*** Filesize of directory
#+BEGIN_SRC bash
function fs() {
if du -b /dev/null > /dev/null 2>&1; then
local arg=-sbh;
else
local arg=-sh;
fi
if [[ -n "$@" ]]; then
du $arg -- "$@";
else
du $arg .[^.]* ./*;
fi;
}
#+END_SRC
*** Redirect both standard output and standard error, as well as sending to background
#+BEGIN_SRC bash
function nullify() {
"$@" >/dev/null 2>&1
}
#+END_SRC
*** Send SMS
https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface
#+begin_src bash
sms(){
local args="$@"
# local phone_number name phone_type
# khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type
local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t')
if [[ -z "${phone_number}" ]]; then
echo No recipient was chosen >&2
return
else
# echo "${name}"$'\t'"${phone_number}"$'\t'"${phone_type}" > ${_KDECONNECT_SMS_LAST_RECIPIENT}
kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c
# kdeconnect-cli --device ${_KDECONNECT_DEFAULT_DEVICE} --send-sms "${args}" --destination "${phone_number}" && \
# echo sent sms message to ${name} | fribidi
fi
}
#+end_src
** Bash History
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history
#+BEGIN_SRC bash
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
#+END_SRC
Change the file location because certain bash sessions truncate =.bash_history= file upon close. http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
#+BEGIN_SRC bash
export HISTFILE=~/.bash_eternal_history
#+END_SRC
Force prompt to write history after every command. http://superuser.com/questions/20900/bash-history-loss
#+BEGIN_SRC bash
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
#+END_SRC
** Starship Prompt
#+begin_src bash
eval "$(starship init bash)"
#+end_src
* Bash Profile
:PROPERTIES:
:header-args:bash: :tangle ~/.bash_profile
:header-args:bash+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC bash
[[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
#+END_SRC
* Profile
:PROPERTIES:
:header-args:bash: :tangle ~/.profile
:header-args:bash+: :comments both :mkdirp yes
:END:
** QT And GTK Themes
#+begin_src bash
export QT_QPA_PLATFORMTHEME="qt5ct"
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#+END_SRC
** Gui program to ask for sudo password
#+begin_src bash
export SUDO_ASKPASS=~/bin/askpass-rofi
#+END_SRC
** Gnome Keyring Daemon
#+begin_src bash
if [ -n "$DESKTOP_SESSION" ];then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi
#+end_src
** Default
#+begin_src bash
export EDITOR="nvim"
export TERMINAL="termite"
export BROWSER="qutebrowser"
export READER="zathura"
export FILE="ranger"
#+END_SRC
** Exports
#+begin_src bash
export TERM=xterm-256color
#+END_SRC
*** XDG Default
#+begin_src bash
export XDG_CONFIG_HOME="$HOME/.config"
#+end_src
*** Better yaourt colors
#+begin_src bash
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"
#+END_SRC
*** Use Ripgrep for FZF
#+begin_src bash
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export FZF_DEFAULT_OPTS='--layout=reverse --height=20'
#+END_SRC
*** Goland
#+begin_src bash
export GOPATH=$HOME/go
#+END_SRC
** Path
#+begin_src bash
PATH=$HOME/appimages:$PATH
PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
PATH=$GOPATH:$GOPATH/bin:$PATH
PATH=~/bin:$PATH
PATH=~/.emacs.d/bin:$PATH
export PATH
#+END_SRC

View File

@ -1,790 +0,0 @@
#+TITLE: 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>
:END:
* Select Screen
:PROPERTIES:
:header-args: :tangle ~/bin/displayselect
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
Script taken from Luke Smith.
#+begin_src bash
twoscreen() { # If multi-monitor is selected and there are two screens.
mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?")
# Mirror displays using native resolution of external display and a scaled
# version for the internal display
if [ "$mirror" = "yes" ]; then
external=$(echo "$screens" | dmenu -i -p "Optimize resolution for:")
internal=$(echo "$screens" | grep -v "$external")
res_external=$(xrandr --query | sed -n "/^$external/,/\+/p" | \
tail -n 1 | awk '{print $1}')
res_internal=$(xrandr --query | sed -n "/^$internal/,/\+/p" | \
tail -n 1 | awk '{print $1}')
res_ext_x=$(echo $res_external | sed 's/x.*//')
res_ext_y=$(echo $res_external | sed 's/.*x//')
res_int_x=$(echo $res_internal | sed 's/x.*//')
res_int_y=$(echo $res_internal | sed 's/.*x//')
scale_x=$(echo "$res_ext_x / $res_int_x" | bc -l)
scale_y=$(echo "$res_ext_y / $res_int_y" | bc -l)
xrandr --output "$external" --auto --scale 1.0x1.0 \
--output "$internal" --auto --same-as "$external" \
--scale "$scale_x"x"$scale_y"
else
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
secondary=$(echo "$screens" | grep -v "$primary")
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
fi
}
morescreen() { # If multi-monitor is selected and there are more than two screens.
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
}
multimon() { # Multi-monitor handler.
case "$(echo "$screens" | wc -l)" in
1) xrandr $(echo "$allposs" | grep -v "$screens" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
2) twoscreen ;;
,*) morescreen ;;
esac ;}
# Get all possible displays
allposs=$(xrandr -q | grep "connected")
# Get all connected screens.
screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
# Get user choice including multi-monitor and manual selection:
chosen=$(printf "%s\\ncancel\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&
case "$chosen" in
"cancel") exit ;;
"manual selection") arandr ; exit ;;
"multi-monitor") multimon ;;
,*) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
esac
$HOME/.config/polybar/scripts/launch.sh # restart polybar
pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen
#+end_src
* getbib
:PROPERTIES:
:header-args: :tangle ~/bin/getbib
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
[ -z "$1" ] && echo "Give either a pdf file or a DOI as an argument." && exit
if [ -f "$1" ]; then
# Try to get DOI from pdfinfo or pdftotext output.
doi=$(pdfinfo "$1" | grep -io "doi:.*") ||
doi=$(pdftotext "$1" 2>/dev/null - | grep -io "doi:.*" -m 1) ||
exit 1
else
doi="$1"
fi
# Check crossref.org for the bib citation.
curl -s "http://api.crossref.org/works/$doi/transform/application/x-bibtex" -w "\\n"
#+end_src
* vpnToggle
:PROPERTIES:
:header-args: :tangle ~/bin/vpntoggle
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [[ $(nordvpn status) == *"Connected"* ]]; then
nordvpn disconnect && dunstify --replace=23198 "VPN" "Disconnected";
else
country=`cat ~/bin/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`;
dunstify --replace=23198 "VPN" "Connecting to $country...";
nordvpn connect $country && dunstify --replace=23198 "VPN" "Connected to $country";
fi
#+end_src
* bukurun
:PROPERTIES:
:header-args: :tangle ~/bin/bukurun
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
_rofi () {
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
}
# display settings
display_type=1
max_str_width=80
# keybindings
switch_view="Alt+Tab"
new_bookmark="Alt+n"
actions="Alt+a"
edit="Alt+e"
delete="Alt+d"
# colors
help_color="#334433"
# source global config
if [[ -f /etc/buku_run.config ]]
then
source /etc/buku_run.config
fi
# source local config:
if [[ -z $XDG_CONFIG_DIR ]]
then
if [[ -f $HOME/.config/buku_run/config ]]
then
source $HOME/.config/buku_run/config
else
echo "User config file \'~/.config/buku_run/config\' not found. using global config"
fi
else
if [[ -f "${XDG_CONFIG_DIR}/buku_run/config" ]]
then
source "${XDG_CONFIG_DIR}/buku_run/config"
else
echo "User config file \'~/.config/buku_run/config\' not found. using global config"
fi
fi
main () {
HELP="Welcome to Buku. Use <span color='${help_color}'>${new_bookmark}</span> to add a new Bookmark
Use <span color='${help_color}'>${switch_view}</span> to switch View. <span color='${help_color}'>${actions}</span> for actions"
if [[ $mode == "bookmarks" ]]; then
content=$(parseBuku)
menu=$(echo "${content}" | _rofi -p '> ' -filter "${filter}" -mesg "${HELP}" -kb-custom-1 "${new_bookmark}" -kb-custom-2 "${switch_view}" -kb-custom-3 "${actions}" -kb-custom-4 "${edit}" -kb-custom-5 "${delete}")
elif [[ $mode == "tags" ]]; then
menu=$(buku --np --st | awk '{$NF=""; print $0}' | cut -d ' ' -f2- | _rofi -p '> ' -mesg "${HELP}" -kb-custom-1 "${new_bookmark}" -kb-custom-2 "${switch_view}" -kb-custom-3 "${actions}" -kb-custom-4 "${edit}" -kb-custom-5 "${delete}")
fi
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 12 ]]; then
optionsMenu
elif [[ $val -eq 10 ]]; then
addMark
elif [[ $val -eq 14 ]]; then
deleteMenu
elif [[ $val -eq 13 ]]; then
editMenu
elif [[ $val -eq 11 ]]; then
if [[ $mode == "bookmarks" ]]; then
export mode="tags"
mode=tags main
elif [[ $mode == "tags" ]]; then
export mode="bookmarks"
mode=bookmarks main
fi
elif [[ $val -eq 0 ]]; then
if [[ $mode == "bookmarks" ]]; then
id=$(getId "$content" "$menu")
for bm in ${id}; do
buku -o "${bm}"
done
elif [[ $mode == "tags" ]]; then
filter="${menu}" mode="bookmarks" main
fi
fi
}
optionsMenu () {
if [[ $mode == "bookmarks" ]]; then
askmenu=$(echo -e "< Return\n---\n1. Edit\n2. Delete" | _rofi -p '> ' -mesg "Choose Action for bookmark")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $askmenu == "< Return" ]]; then
export mode=bookmarks
main
elif [[ $askmenu == "1. Edit" ]]; then
editMenu
elif [[ $askmenu == "2. Delete" ]]; then
deleteMenu
fi
fi
elif [[ $mode == "tags" ]]; then
askmenu=$(echo -e "< Return\n---\n1. Replace Tag\n2. Delete Tag" | _rofi -p '> ' -mesg "Choose Action for tag \"${menu}\"")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $askmenu == "< Return" ]]; then
export mode=tags
main
elif [[ $askmenu == "1. Replace Tag" ]]; then
newtag=$(echo | _rofi -p '> ' -mesg "Enter new tag name for tag \"${menu}\"")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $newtag == "" ]]; then
mode=tags main
else
buku -r "${menu}" "${newtag}"
mode=tags main
fi
fi
elif [[ $askmenu == "2. Delete Tag" ]]; then
delask=$(echo -e "1. Yes\n2. No" | _rofi -p '> ' -mesg "Really delete tag?")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $delask == "1. Yes" ]]; then
buku -r "${menu}"
mode=tags main
elif [[ $delask == "2. No" ]]; then
mode=tags main
fi
fi
fi
fi
fi
}
deleteMenu () {
id=$(getId "$content" "$menu")
delask=$(echo -e "1. Yes\n2. No" | _rofi -p '> ' -mesg "Really delete bookmark?")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $delask == "1. Yes" ]]; then
buku -d ${id} --tacit
mode=bookmarks main
elif [[ $delask == "2. No" ]]; then
optionsMenu
fi
fi
}
editMenu () {
id=$(getId "$content" "$menu")
title="$(getTitleFromId $id)"
bookmark="$(getUrlFromId $id)"
tags="$(getTagsFromId $id)"
content=$(echo -e "1. title: $title\n2. url: $bookmark\n3. tags: $tags")
editmenu=$(echo -e "< Return\n---\n${content}" | _rofi -p '> ')
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $editmenu == "< Return" ]]; then
main
elif [[ $editmenu == "tags: NOTAG" ]]; then
addTags --update
elif [[ $editmenu =~ tags:* ]]; then
tags="${tags}" editTags
elif [[ $editmenu =~ url:* ]]; then
editBookmark
elif [[ $editmenu =~ title:* ]]; then
editTitle
fi
fi
}
editTags () {
edittagsmenu=$(echo | _rofi -filter "${tags}" -p '> ' -mesg "Edit Tags and hit Enter")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
buku -u ${id} --tag "${edittagsmenu}"
fi
mode=bookmarks main
}
editBookmark () {
bmarkmenu=$(echo "" | _rofi -p "> " -filter "${bookmark}" -mesg "Edit Bookmark and hit Enter")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $bmarkmenu == "http"* ]]; then
buku -u "${id}" --url "${bmarkmenu}"
else
echo "" | rofi -e "Not a valid URI, Make sure URLs start with http"
editBookmark
fi
fi
mode=bookmarks main
}
editTitle () {
titlemenu=$(echo "" | _rofi -p "> " -filter "${title}" -mesg "Edit Title and hit Enter")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
buku -u "${id}" --title "${titlemenu}"
fi
mode=bookmarks main
}
addMark () {
inserturl=$(echo -e "$(xclip -o)" | _rofi -p '> ' -mesg "Use URL below or type manually")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
addTags
fi
}
addTags () {
inserttags=$(buku --np --st | awk '{$NF=""; print $0}' | cut -d ' ' -f2- | _rofi -p '> ' -mesg "Add some tags. Separate tags with ', '")
val=$?
if [[ $val -eq 1 ]]; then
exit
elif [[ $val -eq 0 ]]; then
if [[ $(echo "${inserttags}" | wc -l) -gt 1 ]]; then
taglist=$(echo "${inserttags}" | tr '\n' ',')
tags=()
for tag in $taglist; do
tags+=("$tag")
done
else
tags=${inserttags}
fi
if [[ $1 == "--update" ]]; then
buku -u "${id}" --tag ${tags}
else
buku -a ${inserturl} ${tags}
fi
fi
}
parseBuku () {
echo "$(buku --nc -p | gawk -v max="$max_str_width" -v type="$display_type" '
BEGIN {
RS=""
FS="\n"
}
{
if ($3 == "")
$3 = " # NOTAG"
id = gensub(/([0-9]+)\.(.*)/, "\\1", "g", $1)
url = substr(gensub(/\s+> (.*)/, "\\1", "g", $2),0,max)
tags = gensub(/\s+# (.*)/, "\\1", "g", $3)
title = substr(gensub(/[0-9]+\.\s*(.*)/, "\\1", "g", $1),0,max)
if (type == 1)
print id "\t" url "\t" tags
else
print id "\t" title "\t" tags
if (type == 3)
print " \t" url "\t "
print ""
}
' | column -t -s $'\t')"
}
getId () {
id=$(echo "${2%% *}")
if [ -z "$id" ]; then
prev=""
IFS=$'\n'
for line in $1; do
if [ "$2" = "$line" ]; then
id=$(echo "${prev%% *}")
break
else
prev="$line"
fi
done
fi
echo $id
}
getTitleFromId () {
echo "$(buku --nc -p $1 | gawk '
BEGIN {
RS=""
FS="\n"
}
{
print gensub(/[0-9]+\.\s*(.*)/, "\\1", "g", $1)
}
')"
}
getUrlFromId () {
echo "$(buku --nc -p $1 | gawk '
BEGIN {
RS=""
FS="\n"
}
{
print gensub(/\s+> (.*)/, "\\1", "g", $2)
}
')"
}
getTagsFromId () {
echo "$(buku --nc -p $1 | gawk '
BEGIN {
RS=""
FS="\n"
}
{
print gensub(/\s+# (.*)/, "\\1", "g", $3)
}
')"
}
mode=bookmarks main
#+end_src
* i3exit
:PROPERTIES:
:header-args: :tangle ~/bin/i3exit
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
# with openrc use loginctl
case "$1" in
lock)
~/scripts/lockscreen.sh
;;
logout)
loginctl terminate-session `loginctl session-status | head -n 1 | awk '{print $1}'`
;;
switch_user)
dm-tool switch-to-greeter
;;
suspend)
systemctl suspend && ~/scripts/lockscreen.sh
;;
hibernate)
systemctl hibernate && ~/scripts/lockscreen.sh
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
,*)
echo "== ! i3exit: missing or invalid argument ! =="
echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"
exit 2
esac
exit 0
#+end_src
* readbib
:PROPERTIES:
:header-args: :tangle ~/bin/readbib
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/Cloud/thesis/ressources/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {}
#+end_src
* readnotes
:PROPERTIES:
:header-args: :tangle ~/bin/readnotes
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/Cloud/thesis/ressources/notes/pdfs/ && ls *.pdf | rofi -dmenu -lines 20 | xargs -I {} zathura {}
#+end_src
* askpass
:PROPERTIES:
:header-args: :tangle ~/bin/askpass-rofi
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
Take password prompt from STDIN, print password to STDOUT.
The sed piece just removes the colon from the provided prompt: =rofi -p= already gives us a colon
#+BEGIN_SRC bash
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
#+END_SRC
* Take Screenshot
:PROPERTIES:
:header-args: :tangle ~/bin/screenshot
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
status=$(echo -e "All\nGUI\nSelection\nCropped\nCopy\nShadow\nActive" | rofi -i -dmenu -p "Type")
if [ -z "$status" ]; then
exit;
fi
name=$(echo -e "screenshot-$(date +"%m-%d-%y_%H-%M-%S")" | rofi -i -dmenu -p "Filename")
if [ -z "$name" ]; then
exit;
fi
case "$status" in
"All")
maim ~/Pictures/$name.png ;;
"GUI")
flameshot gui -r > ~/Pictures/$name.png ;;
"Selection")
maim -s ~/Pictures/$name.png ;;
"Cropped")
maim -s ~/Pictures/$name.png && convert -trim ~/Pictures/$name.png ~/Pictures/$name.png;;
"Copy")
maim -s | xclip -selection clipboard -t image/png ;;
"Shadow")
maim -st 9999999 | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage ~/Pictures/$name.png ;;
"Active")
maim -i $(xdotool getactivewindow) ~/Pictures/$name.png ;;
esac
#+end_src
* Remote Desktop Connect
:PROPERTIES:
:header-args: :tangle ~/bin/remote-desktop
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
computer=$(echo -e 'RNICE\nPCMEL1\nPCNASS1\nPCMEG01' | dmenu -p 'Computer:' -l 20);
case $computer in
PCMEL1)
rdesktop -a 16 -P -z -x m -r sound:off -g "80%" -u "ESRF\OPPEL" -p $(pass esrf/PCMEL1/OPPEL | sed -n 1p) pcmel1
;;
PCMEG01)
rdesktop -a 16 -P -z -x m -r sound:off -g "80%" -u "ESRF\DEHAEZE" -p $(pass ssl.esrf.fr/dehaeze | sed -n 1p) pcmeg01
;;
PCNASS1)
rdesktop -a 16 -P -z -x m -r sound:off -g "80%" -u "ESRF\DEHAEZE" -p $(pass ssl.esrf.fr/dehaeze | sed -n 1p) pcnass1
;;
RNICE)
echo "Not yet implemented"
;;
,*)
echo "Not existing"
;;
esac
#+end_src
* Toggle Network
:PROPERTIES:
:header-args: :tangle ~/bin/network-toggle
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
result=$(nmcli device | sed '1d' | dmenu -l 20);
interface=$(echo $result | awk -F ' ' '{print $1}');
status=$(echo $result | awk -F ' ' '{print $3}');
if [ $status == 'disconnected' ]; then
nmcli device connect $interface
else
nmcli device disconnect $interface
fi
#+end_src
* Print on Rnice
:PROPERTIES:
:header-args: :tangle ~/bin/print-rnice
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
nbpage=$(echo -e '1\n2\n4' | dmenu -p 'Number of pages per sheet' -l 20);
sides=$(echo -e 'one-sided\ntwo-sided-long-edge\ntwo-sided-short-edge' | dmenu -p 'Two Sided:' -l 20);
# First copy the file to Rnice
if sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" scp $1 dehaeze@rnice:~/Downloads/; then
# Then print on Rnice
sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" ssh dehaeze@rnice "lpr -o media=A4 -o sides=$sides -o number-up=$nbpage -P ctb110c1u ~/Downloads/$1";
# Finally, delete the file
else
echo "Command Failed"
fi
#+end_src
* Mount TMP14DAYS
:PROPERTIES:
:header-args: :tangle ~/bin/mnt_tmp_14_days
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
sudo -A mkdir ~/tmp_14_days;
sudo -A mount -o rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=160.103.232.103,mountvers=3,mountport=597,mountproto=tcp,local_lock=none,addr=160.103.232.103 rnice:/hz/tmp_14_days ~/tmp_14_days;
#+end_src
* Make GIF
:PROPERTIES:
:header-args: :tangle ~/bin/make-gif
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
#+begin_src bash
palette="/tmp/palette.png"
filters="fps=15,scale=320:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
#+end_src
* Download-Audio
:PROPERTIES:
:header-args: :tangle ~/bin/yt-audio
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best $1" && tmux select-pane -U
else
cd ~/Downloads/;
setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
fi
#+end_src
* Download-Video
:PROPERTIES:
:header-args: :tangle ~/bin/yt-video
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -ic $1" && tmux select-pane -U
else
cd ~/Downloads/;
setsid nohup youtube-dl --add-metadata -ic $1 &> /dev/null &
fi
#+end_src
* Pdf Shrink
:PROPERTIES:
:header-args: :tangle ~/bin/pdf-shrink
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
shrink ()
{
gs \
-q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.3 \
-dPDFSETTINGS=/screen \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dAutoRotatePages=/None \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=$3 \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=$3 \
-dMonoImageDownsampleType=/Subsample \
-dMonoImageResolution=$3 \
-sOutputFile="$2" \
"$1"
}
check_smaller ()
{
# If $1 and $2 are regular files, we can compare file sizes to
# see if we succeeded in shrinking. If not, we copy $1 over $2:
if [ ! -f "$1" -o ! -f "$2" ]; then
return 0;
fi
ISIZE="$(echo $(wc -c "$1") | cut -f1 -d\ )"
OSIZE="$(echo $(wc -c "$2") | cut -f1 -d\ )"
if [ "$ISIZE" -lt "$OSIZE" ]; then
echo "Input smaller than output, doing straight copy" >&2
cp "$1" "$2"
fi
}
usage ()
{
echo "Reduces PDF filesize by lossy recompressing with Ghostscript."
echo "Not guaranteed to succeed, but usually works."
echo " Usage: $1 infile [outfile] [resolution_in_dpi]"
}
IFILE="$1"
# Need an input file:
if [ -z "$IFILE" ]; then
usage "$0"
exit 1
fi
# Output filename defaults to "-" (stdout) unless given:
if [ ! -z "$2" ]; then
OFILE="$2"
else
OFILE="-"
fi
# Output resolution defaults to 72 unless given:
if [ ! -z "$3" ]; then
res="$3"
else
res="90"
fi
shrink "$IFILE" "$OFILE" "$res" || exit $?
check_smaller "$IFILE" "$OFILE"
#+end_src

View File

@ -1,48 +0,0 @@
#+TITLE: Bukurun (Bookmark Manager)
: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>
#+PROPERTY: header-args: :tangle ~/.config/buku_run/config
#+PROPERTY: header-args+: :comments both :mkdirp yes
#+PROPERTY: header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC conf
_rofi () {
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
}
#+END_SRC
Display settings
#+BEGIN_SRC conf
display_type=1
max_str_width=80
#+END_SRC
Keybindings
#+BEGIN_SRC conf
switch_view="Alt+Tab"
new_bookmark="Alt+n"
actions="Alt+a"
edit="Alt+e"
delete="Alt+d"
#+END_SRC
Colors
#+BEGIN_SRC conf
help_color="#2d7ed8"
#+END_SRC

View File

@ -1,69 +0,0 @@
#+TITLE: BSPWM
: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>
#+PROPERTY: header-args:bash :comments both
#+PROPERTY: header-args:bash+ :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
#+PROPERTY: header-args:bash+ :tangle ~/.config/bspwm/bspwmrc
:END:
* List Desktops
#+begin_src bash
bspc monitor -d code web mail misc figs
#+end_src
* Basic Config
#+begin_src bash
bspc config border_width 1
bspc config window_gap 8
bspc config top_padding 27 # top_padding I set equal to polybar's height
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
#+end_src
* Colors
#+begin_src bash
bspc config normal_border_color \#32302f
bspc config focused_border_color \#bdae93
#+end_src
* Rules
Use =xprop= to obtain information about the window.
#+begin_src bash
# If refreshing bspwm, remove all previous rules to prevent doubling up.
bspc rule -r "*"
bspc rule --add qutebrowser desktop='web' follow=on state=tiled
bspc rule --add Emacs desktop='code' follow=on state=tiled
bspc rule --add Zathura state=tiled
bspc rule --add Pavucontrol state=floating
bspc rule --add Blueman-manager state=floating
#+end_src
* Run Polybar and SXHKD
#+begin_src bash
$HOME/.config/polybar/scripts/launch.sh
sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.bspwm &
#+end_src

View File

@ -1,93 +0,0 @@
#+TITLE:Calendar Configuration
: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>
:END:
* Vdirsyncer
:PROPERTIES:
:header-args: :tangle ~/.config/vdirsyncer/config
:header-args+: :comments both :mkdirp yes :noweb no-export
:END:
#+BEGIN_SRC conf
[general]
status_path = "~/.config/vdirsyncer/status/"
[pair google_calendar]
a = "google_calendar_remote"
b = "google_calendar_local"
collections = ["dehaeze.thomas@gmail.com", "8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com"]
conflict_resolution = "a wins"
[storage google_calendar_remote]
type = "google_calendar"
token_file = "~/.config/dotfiles/private/token_file"
client_id = "188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"
client_secret = "<<get-password(passname="calendar/google_client_secret")>>"
[storage google_calendar_local]
type = "filesystem"
path = "~/.calendars/google/"
fileext = ".ics"
[pair google_contacts]
a = "google_contacts_remote"
b = "google_contacts_local"
collections = ["from a", "from b"]
conflict_resolution = "a wins"
[storage google_contacts_local]
type = "filesystem"
path = "~/.contacts/"
fileext = ".vcf"
[storage google_contacts_remote]
type = "google_contacts"
token_file = "~/.config/dotfiles/private/token_file_carddav"
client_id = "188415318767-802h28ig8gromo0f72blrbg6cgcop6m8.apps.googleusercontent.com"
client_secret = "<<get-password(passname="contacts/google_client_secret")>>"
#+END_SRC
* Khal
:PROPERTIES:
:header-arg s: :tangle ~/.config/khal/config
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[calendars]
[[home]]
path = ~/.calendars/google/dehaeze.thomas@gmail.com/
color = "#B8BB26"
[[work]]
path = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
color = "#FB4934"
[highlight_days]
multiple = "#FABD2F"
[default]
highlight_event_days = True
[keybindings]
delete = d
today = .
new = c
#+END_SRC

View File

@ -1,126 +0,0 @@
#+TITLE: Picom (Compositor)
: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>
#+PROPERTY: header-args: :tangle ~/.config/picom/picom.conf
#+PROPERTY: header-args+: :comments both :mkdirp yes
:END:
* Shadow
#+BEGIN_SRC conf
shadow = true;
shadow-radius = 12;
shadow-offset-x = -12;
shadow-offset-y = -12;
shadow-opacity = 0.95;
shadow-exclude = [
"name = 'Notification'",
"window_type = 'dock'",
"window_type = 'dnd'",
"class_g = 'VirtualBox'",
"class_g ?= 'Notify-osd'",
"class_g = 'Tilda'",
"class_g = 'Firefox'",
"class_g = 'Opera'",
"class_g = 'CoverGloobus'",
"class_g = 'Cairo-clock'",
"class_g = 'dzen'",
"class_g = 'stalonetray'",
"_GTK_FRAME_EXTENTS@:c"
];
#+END_SRC
* Opacity
#+BEGIN_SRC conf
# menu-opacity = 0.92;
# inactive-opacity = 0.92;
# active-opacity = 0.92;
# frame-opacity = 0.9;
inactive-opacity-override = false;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
blur-kern = "3x3box";
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
# blur-background-fixed = true;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'",
"class_g = 'CoverGloobus'",
"class_g = 'Opera'",
"_GTK_FRAME_EXTENTS@:c"
];
#opacity-rule = [ "80:class_g = 'XTerm'" ];
#opacity-rule = [ "80:class_g = 'UXTerm'" ];
#opacity-rule = [ "80:class_g = 'i3bar'" ];
#opacity-rule = [ "90:class_g = 'dzen'" ];
opacity-rule = [ "40:class_g = 'Bspwm' && class_i = 'presel_feedback'" ];
#+END_SRC
* Fading
#+BEGIN_SRC conf
fading = false;
fade-delta = 10.0;
fade-in-step = 0.03;
fade-out-step = 0.03;
# no-fading-openclose = true;
# no-fading-destroyed-argb = true;
fade-exclude = [
];
#+END_SRC
* Other
#+BEGIN_SRC conf
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
# use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = false;
dbe = false;
# sw-opti = true;
# unredir-if-possible = true;
# unredir-if-possible-delay = 5000;
# unredir-if-possible-exclude = [ ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
# resize-damage = 1;
#+END_SRC
* Window Type Setting
#+begin_src conf
wintypes:
{
tooltip = {
fade = true;
shadow = true;
opacity = 0.75;
focus = true;
};
fullscreen = {
fade = true;
shadow = false;
opacity = 1;
focus = true;
};
};
#+end_src

View File

@ -1,206 +0,0 @@
#+TITLE: Configuration Files
: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>
:END:
* Font
:PROPERTIES:
:header-args: :tangle ~/.config/fontconfig/fonts.conf
:header-args+: :comments none :mkdirp yes
:END:
#+begin_src conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Linux Libertine</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>SauceCodePro Nerd Font Mono</family></prefer>
</alias>
</fontconfig>
#+end_src
* Input
:PROPERTIES:
:header-args: :tangle ~/.inputrc
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# Single tab for autocompletion
set show-all-if-ambiguous on
# Ignore case for completion
set completion-ignore-case on
#+END_SRC
#+BEGIN_SRC conf
# VI mode (works in bash and zsh)
set editing-mode vi
# Show which mode (normal or insert)
set show-mode-in-prompt on
# Show the mode by changing the cursor
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line
set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line
#+END_SRC
* GnuPG
:PROPERTIES:
:header-args: :tangle ~/.gnupg/gpg-agent.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
default-cache-ttl 60480000
max-cache-ttl 60480000
#+END_SRC
* Redshift
:PROPERTIES:
:header-args: :tangle ~/.config/redshift.conf
:header-args+: :comments none :mkdirp yes
:END:
#+begin_src conf
[redshift]
temp-day=5700
temp-night=3500
transition=1
;brightness-day=0.7
;brightness-night=0.4
location-provider=manual
adjustment-method=randr
[manual]
lat=45.1
lon=5.7
#+end_src
* dmenu
:PROPERTIES:
:header-args: :tangle ~/.dmenurc
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# define the font for dmenu to be used
DMENU_FN="Hack Nerd Font 12"
# background colour for unselected menu-items
DMENU_NB="#222D31"
# textcolour for unselected menu-items
DMENU_NF="#F9FAF9"
# background colour for selected menu-items
DMENU_SB="#16A085"
# textcolour for selected menu-items
DMENU_SF="#F9FAF9"
# command for the terminal application to be used:
TERMINAL_CMD="terminal -e"
# export our variables
DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
#+END_SRC
* Locale
:PROPERTIES:
:header-args: :tangle ~/.config/locale.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
#+END_SRC
* Pass Git Helper
:PROPERTIES:
:header-args: :tangle ~/.config/pass-git-helper/git-pass-mapping.ini
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[github.com*]
target=github.com/tdehaeze
#+END_SRC
* Nitrogen (Wallpaper manager)
:PROPERTIES:
:header-args: :tangle ~/.config/nitrogen/nitrogen.cfg
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[geometry]
posx=560
posy=65
sizex=578
sizey=591
[nitrogen]
view=list
recurse=false
sort=alpha
icon_caps=false
dirs=/home/thomas/.wallpapers;
#+END_SRC

View File

@ -1,75 +0,0 @@
#+TITLE:Calendar Configuration
: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>
:END:
* Khard
:PROPERTIES:
:header-args: :tangle ~/.config/khard/khard.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# example configuration file for khard version >= 0.13.0
# place it under $HOME/.config/khard/khard.conf
[addressbooks]
[[google]]
path = ~/.contacts/default/
[general]
debug = no
default_action = list
editor = vim
merge_editor = vimdiff
[contact table]
# display names by first or last name: first_name / last_name
display = first_name
# group by address book: yes / no
group_by_addressbook = no
# reverse table ordering: yes / no
reverse = no
# append nicknames to name column: yes / no
show_nicknames = no
# show uid table column: yes / no
show_uids = yes
# sort by first or last name: first_name / last_name
sort = last_name
# localize dates: yes / no
localize_dates = yes
# set a comma separated list of preferred phone number types in descending priority
# or nothing for non-filtered alphabetical order
preferred_phone_number_type = pref, cell, home
# set a comma separated list of preferred email address types in descending priority
# or nothing for non-filtered alphabetical order
preferred_email_address_type = pref, work, home
[vcard]
# extend contacts with your own private objects
# these objects are stored with a leading "X-" before the object name in the vcard files
# every object label may only contain letters, digits and the - character
# example:
# private_objects = Jabber, Skype, Twitter
private_objects = Jabber, Skype, Twitter
# preferred vcard version: 3.0 / 4.0
preferred_version = 3.0
# Look into source vcf files to speed up search queries: yes / no
search_in_source_files = no
# skip unparsable vcard files: yes / no
skip_unparsable = no
#+END_SRC

File diff suppressed because it is too large Load Diff

View File

@ -1,67 +0,0 @@
#+TITLE: GTK Configuration
: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>
:END:
* GTK-2.0
:PROPERTIES:
:header-args: :tangle ~/.gtkrc-2.0.mine
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
gtk-theme-name="Arc-Dark"
gtk-icon-theme-name="Arc"
gtk-font-name="Hack Nerd Font Mono 10"
gtk-cursor-theme-name="xcursor-breeze"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
#+END_SRC
* GTK-3.0
:PROPERTIES:
:header-args: :tangle ~/.config/gtk-3.0/settings.ini
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Settings]
gtk-theme-name=Arc-Dark
gtk-icon-theme-name=Arc
gtk-font-name=Hack Nerd Font Mono 10
gtk-cursor-theme-name=xcursor-breeze
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb
#+END_SRC

View File

@ -1,173 +0,0 @@
#+TITLE: I3 Configuration
: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>
#+PROPERTY: header-args:conf :comments none
#+PROPERTY: header-args:conf+ :mkdirp yes
#+PROPERTY: header-args:conf+ :tangle ~/.config/i3/config
:END:
#+begin_src conf
# i3 config file (v4)
#+end_src
* Mod Key
Set mod key (Mod1=<Alt>, Mod4=<Super>)
#+BEGIN_SRC conf
set $mod Mod4
#+end_src
* Border Style
#+begin_src conf
# Use custom colors for black
new_window pixel 1
new_float normal
#+end_src
Hide borders
#+begin_src conf
hide_edge_borders smart
#+end_src
* Font for window titles
#+begin_src conf
font Hack Nerd Font 11
#+end_src
* Colors Variables
#+begin_src conf
set_from_resource $bg color0 #000000
set_from_resource $darkred color1 #000000
set_from_resource $darkgreen color2 #000000
set_from_resource $darkyellow color3 #000000
set_from_resource $darkblue color4 #000000
set_from_resource $darkpurple color5 #000000
set_from_resource $darkaqua color6 #000000
set_from_resource $darkgray color7 #000000
set_from_resource $gray color8 #000000
set_from_resource $red color9 #000000
set_from_resource $green color10 #000000
set_from_resource $yellow color11 #000000
set_from_resource $blue color12 #000000
set_from_resource $purple color13 #000000
set_from_resource $aqua color14 #000000
set_from_resource $fg color15 #000000
#+end_src
* Theme colors
#+begin_src conf
# class border backgr. text indic. child_border
client.focused $darkaqua $darkaqua $fg $bg
client.focused_inactive $bg $bg $fg $bg
client.unfocused $bg $bg $fg $bg
client.urgent $bg $bg $fg $bg
client.background $bg
#+end_src
* Various Config
Layout mode for new containers
#+begin_src conf
workspace_layout default
#+end_src
#+begin_src conf
focus_follows_mouse yes
#+end_src
* Border
#+begin_src conf
default_border pixel 1
#+end_src
* Settings for i3-gaps
#+begin_src conf
# for_window [class=".*"] border pixel 0
#+end_src
#+begin_src conf
gaps inner 10
gaps outer 2
#+end_src
* Workspace names
To display names or symbols instead of plain workspace numbers you can use something like: =set $ws1 1:mail= and =set $ws2 2:=.
#+begin_src conf
set $ws1 1
set $ws2 2
set $ws3 3
set $ws4 4
set $ws5 5
set $ws6 6
set $ws7 7
set $ws8 8
#+end_src
* Use Mouse+$mod to drag floating windows
#+begin_src conf
floating_modifier $mod
#+end_src
* Back and Forth
#+begin_src conf
workspace_auto_back_and_forth yes
#+end_src
* Application Specific
** Open applications on specific workspaces
#+begin_src conf
assign[title="^Fig"] $ws6 # Matlab Figures
for_window [title="^Fig"] layout tabbed
assign[title="^HG_Peer"] $ws6 # Name of window when export figure with matlab
#+end_src
** Open specific applications in floating mode
#+begin_src conf
for_window [title="File Transfer*"] floating enable
for_window [class="GParted"] floating enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Pavucontrol"] floating enable
for_window [class="Arandr"] floating enable
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Xfburn"] floating enable
for_window [title="^Documentation -"] floating enable border normal
for_window [class="Yad"] floating enable
for_window [title="Bluetooth Devices"] floating enable
for_window [title="Simulink Library Browser"] floating enable
for_window [class="Floating"] floating enable, resize set 800 600, move position 1100 460
#+end_src
* Scratchpad
Move the currently focused window to the scratchpad
#+begin_src conf
bindsym $mod+Shift+BackSpace move scratchpad
#+end_src
Show the next scratchpad window or hide the focused scratchpad window.
If there are multiple scratchpad windows, this command cycles through them.
#+begin_src conf
bindsym $mod+BackSpace scratchpad show
#+end_src
* Run Polybar and SXHKD
#+begin_src conf
exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
#+end_src

View File

@ -1,40 +0,0 @@
#+TITLE: SXIV Configuration
: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>
#+PROPERTY: header-args: :tangle ~/.config/sxiv/exec/key-handler
#+PROPERTY: header-args+: :comments both :mkdirp yes
#+PROPERTY: header-args+: :shebang "#!/usr/bin/env bash"
:END:
Press =C-x= to activate to key handler.
#+begin_src conf
while read file
do
case "$1" in
"C-d")
mv "$file" ~/.trash ;;
"C-r")
convert -rotate 90 "$file" "$file" ;;
"C-c")
echo -n "$file" | xsel -ib ;;
"C-w")
nitrogen --save --set-zoom-fill "$file" ;;
esac
done
#+end_src

View File

@ -1,71 +0,0 @@
#+TITLE: Dotfiles - Manjaro Linux
: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>
:END:
The general installation process is described [[file:install.org][here]].
* Desktop Configuration
- *Windows Manager*: [[file:bspwm.org][BSPWM]] and [[file:i3.org][I3]]
- *Hotkey Manager*: [[file:sxhkd.org][SXHKD]]
- *Status Bar*: [[file:polybar.org][Polybar]]
- *Launcher*: [[file:rofi.org][Rofi]]
- *Compositor*: [[file:compositor.org][Picom]]
- *Notification Manager*: [[file:notifications.org][Dunst]]
- *Service Manager*: [[file:systemd.org][Systemd]]
- [[file:xconfig.org][X configuration]]
* Editors
- [[file:vim.org][Vim]]
- [[./doom.org][Doom Emacs]]
* Command Line
- [[file:bash.org][Bash]] and [[file:zsh.org][ZSH]]
- Terminal: [[file:termite.org][Termite]]
- Terminal Multiplexer [[file:tmux.org][TMUX]]
* Multimedia
- [[file:image.org][Image]]
- [[file:music.org][Music]]
- [[file:video.org][Video]]
* Internet Related
- Web Browser: [[file:qutebrowser.org][Qutebrowser]]
- Bookmark Manager: [[file:bookmarks.org][Buku]]
* PDF Reader
- [[file:zathura.org][Zathura]]
* File Managers
- GUI: [[file:pcmanfm.org][Pcmanfm]]
- Terminal based: [[file:ranger.org][Ranger]]
* Organization
- [[file:calendar.org][Calendar]]
- [[file:mail.org][Mail]]
- [[file:contacts.org][Contacts]]
- RSS-Reader: [[file:newsboat.org][Newsboat]]
* Others
- [[file:applications.org][Desktop Applications]]
- [[file:matlab.org][Matlab]]
- Some useful [[file:binaries.org][Binaries]]
- Some useful [[file:scripts.org][Scripts]]
- [[file:git.org][Git]] Configuration
- [[file:gtk.org][GTK]]
- [[file:config.org][Other Config]]

File diff suppressed because it is too large Load Diff

View File

@ -1,149 +0,0 @@
#+TITLE: Matlab Configuration
: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>
#+PROPERTY: header-args:matlab :mkdir yes
#+PROPERTY: header-args:matlab+ :exports code
#+PROPERTY: header-args:matlab+ :eval no-export
#+PROPERTY: header-args:matlab+ :results silent
:END:
* Startup
:PROPERTIES:
:HEADER-ARGS:matlab+: :tangle ~/Documents/MATLAB/startup.m
:END:
** Setup LaTeX as a default interpreter
#+begin_src matlab
set(groot, 'DefaultTextInterpreter', 'LaTeX');
set(groot, 'DefaultAxesTickLabelInterpreter', 'LaTeX');
set(groot, 'DefaultAxesFontName', 'LaTeX');
set(groot, 'DefaultLegendInterpreter', 'LaTeX');
#+end_src
** Default Line Width
#+begin_src matlab
set(groot, 'DefaultLineLineWidth', 1.5);
set(groot, 'DefaultAxesLineWidth', 0.5);
#+end_src
** Default grids on all axis
#+begin_src matlab
set(groot, 'DefaultAxesXGrid','on');
set(groot, 'DefaultAxesYGrid','on');
set(groot, 'DefaultAxesZGrid','on');
#+end_src
** Default Font Size
#+begin_src matlab
set(groot, 'DefaultTextFontUnits', 'points');
set(groot, 'DefaultTextFontSize', 10);
set(groot, 'DefaultAxesFontUnits', 'points');
set(groot, 'DefaultAxesFontSize', 10);
set(groot, 'DefaultUicontrolFontSize', 10);
#+end_src
** Default Fonts
#+begin_src matlab
set(groot, 'DefaultAxesFontName', 'Helvetica');
set(groot, 'DefaultTextFontName', 'Helvetica');
#+end_src
** Make figures into a Box
#+begin_src matlab
set(groot, 'DefaultAxesBox', 'on');
#+end_src
** Default Colors
#+begin_src matlab
set(groot, 'DefaultAxesColor', 'w');
set(groot, 'DefaultAxesXColor', 'k');
set(groot, 'DefaultAxesYColor', 'k');
set(groot, 'DefaultFigureColor', 'w');
#+end_src
** Default Plot Colors
#+begin_src matlab
c1 = [ 0 0.4470 0.7410]; % Blue
c2 = [0.8500 0.3250 0.0980]; % Orange
c3 = [0.9290 0.6940 0.1250]; % Yellow
c4 = [0.4940 0.1840 0.5560]; % Purple
c5 = [0.4660 0.6740 0.1880]; % Green
c6 = [0.3010 0.7450 0.9330]; % Light Blue
c7 = [0.6350 0.0780 0.1840]; % Red
set(groot, 'defaultAxesColorOrder', [c1; c2; c3; c4; c5; c6; c7])
#+end_src
** Figure paper and window style
#+begin_src matlab
set(groot, 'DefaultFigurePaperType', 'A4');
set(groot, 'DefaultFigureWindowStyle', 'normal');
#+end_src
** Set the display format
#+begin_src matlab
format compact;
format long g;
#+end_src
** Home Path
#+begin_src matlab
toolboxes_path = '~/Cloud/thesis/matlab/toolboxes/';
#+end_src
** Add to path
#+begin_src matlab
addpath([toolboxes_path 'Org-Mode-Toolbox/src'])
addpath([toolboxes_path 'Usefull-Functions/src'])
addpath([toolboxes_path 'Stacked-Elements-Toolbox/src'])
addpath([toolboxes_path 'Measure-Analysis-Toolbox/src'])
addpath([toolboxes_path 'Hinf-Toolbox/src'])
addpath([toolboxes_path 'Fit-Model-Toolbox/src'])
addpath([toolboxes_path 'Dspace-Toolbox/src'])
addpath([toolboxes_path 'SpeedGoat-Toolbox/src'])
addpath([toolboxes_path 'Add-Ons/matrix_fitting_toolbox_1'])
addpath([toolboxes_path 'Add-Ons/matlab-schemer'])
addpath([toolboxes_path 'Add-Ons/matlab2tikz/src'])
addpath([toolboxes_path 'Add-Ons/hline_vline'])
addpath([toolboxes_path 'Add-Ons/export_fig'])
addpath([toolboxes_path 'Add-Ons/subaxis'])
addpath([toolboxes_path 'Add-Ons/cbrewer'])
addpath([toolboxes_path 'Add-Ons/tightfig'])
addpath([toolboxes_path 'Add-Ons/fig2svg/src'])
addpath([toolboxes_path 'Add-Ons/CVX'])
#+end_src
#+begin_src matlab
addpath('/home/thomas/.emacs.d/.local/straight/repos/mirror/toolbox')
#+end_src
** Clear
#+begin_src matlab
clear;
#+end_src
* Setup
:PROPERTIES:
:HEADER-ARGS:matlab+: :tangle ~/Documents/MATLAB/setup.m
:END:
** Schemer Import
#+begin_src matlab
schemer_import([home_path '/Cloud/thesis/matlab/toolboxes/Add-Ons/matlab-schemer/schemes/monokai.prf']);
#+end_src

View File

@ -1,199 +0,0 @@
#+TITLE: Music/Sound Configuration
: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>
:END:
* Pavu Control
:PROPERTIES:
:header-args: :tangle ~/.config/pavucontrol.ini
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[window]
width=500
height=400
sinkInputType=1
sourceOutputType=1
sinkType=0
sourceType=1
showVolumeMeters=1
#+END_SRC
* NCMPCPP
https://rybczak.net/ncmpcpp/
Cheatsheet: https://pkgbuild.com/~jelle/ncmpcpp/
** Config
:PROPERTIES:
:header-args:conf: :tangle ~/.config/ncmpcpp/config
:header-args:conf+: :comments both :mkdirp yes
:END:
Configuration directory.
#+begin_src conf
ncmpcpp_directory = ~/.config/ncmpcpp
#+end_src
MPD Configuration.
#+begin_src conf
mpd_host = localhost
mpd_port = 6600
mpd_music_dir = ~/Music
#+end_src
Notification of song change.
#+begin_src conf
execute_on_song_change = dunstify --replace=19845 "Now Playing ♫" "$(mpc current)"
#+end_src
** Bindings
:PROPERTIES:
:header-args:conf: :tangle ~/.config/ncmpcpp/bindings
:header-args:conf+: :comments none :mkdirp yes
:END:
#+begin_src conf
def_key "q"
run_external_command "if [ $TMUX ]; then tmux detach; fi"
def_key "Q"
quit
def_key "g"
move_home
def_key "G"
move_end
def_key "j"
scroll_down
def_key "k"
scroll_up
def_key "ctrl-u"
page_up
def_key "ctrl-d"
page_down
def_key "l"
enter_directory
def_key "h"
jump_to_parent_directory
def_key "."
show_lyrics
def_key "n"
next_found_item
def_key "N"
previous_found_item
def_key "J"
move_sort_order_down
def_key "K"
move_sort_order_up
def_key "d"
delete_playlist_items
def_key "+"
volume_up
def_key "-"
volume_down
#+end_src
* Beets
:PROPERTIES:
:header-args:conf: :tangle ~/.config/beets/config.yaml
:header-args:conf+: :comments both :mkdirp yes
:END:
http://beets.io/
#+begin_src conf
directory: ~/Music
library: ~/Music/musiclibrary.db
art_filename: cover
import:
move: yes
plugins: fromfilename discogs
#+end_src
* Mopidy
:PROPERTIES:
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
:END:
#+begin_src conf
[spotify]
username = dehaeze.thomas@gmail.com
password = <<get-password(passname="spotify.com/dehaeze.thomas@gmail.com")>>
client_id = 9dd02534-f038-46d8-946e-bfe72498204e
client_secret = <<get-password(passname="spotify/client_secret")>>
bitrate = 320
[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = listall,listallinfo
default_playlist_scheme = m3u
[file]
enabled = true
media_dirs = /home/thomas/Music
excluded_file_extensions =
.db
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
[audio]
output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=44100,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/mpd.fifo
#+end_src
* Radio with curseradio
:PROPERTIES:
:header-args:conf: :tangle ~/.config/curseradio/curseradio.cfg
:header-args:conf+: :comments none :mkdirp yes
:END:
#+begin_src conf
[opml]
root = http://opml.radiotime.com/
[playback]
command = /usr/bin/mpv
[interface]
keymap = vi
[keymap.vi]
up = k
down = j
start = 0
end = $
pageup = u
pagedown = d
enter = l
stop = p
exit = q
favourite = f
#+end_src

View File

@ -1,267 +0,0 @@
#+TITLE: Newsboat Configuration
: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>
:END:
https://wiki.archlinux.org/index.php/Newsboat
https://newsboat.org/releases/2.12/docs/newsboat.html
* Config
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/config
:header-args+: :comments both :mkdirp yes
:END:
** Reload configuration
#+BEGIN_SRC conf
# All feeds will be automatically reloaded after a certain time has passed
auto-reload yes
# The number of minutes between automatic reloads.
reload-time 180
# The number of parallel reload threads that shall be started when all feeds are reloaded.
reload-threads 3
# If set to yes, then the first automatic reload will be suppressed if auto-reload is set to yes.
suppress-first-reload yes
#+END_SRC
** Basic configuration
#+BEGIN_SRC conf
confirm-exit no
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
goto-first-unread no
goto-next-feed no
save-path "~/Saved Articles"
download-path "~/Downloads"
# If set to no, then the keymap hints on the bottom of screen will not be displayed.
show-keymap-hint no
feed-sort-order none
player "mpv"
#+END_SRC
** Notifications
#+BEGIN_SRC conf
notify-format "%n unread articles"
notify-program ~/.config/newsboat/scripts/newsboat-notify.sh
notify-always no
#+END_SRC
*** Notification Script
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/scripts/newsboat-notify.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
dunstify -replace=38492 "Newsboat " "$1"
#+end_src
** Bindings
#+BEGIN_SRC conf
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key d pagedown
bind-key u pageup
bind-key l open
bind-key h quit
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
bind-key U show-urls
# bind-key x pb-delete
bind-key t set-tag
bind-key T clear-tag
bind-key r reload # Reload the currently selected feed
bind-key R reload-all # Reload all feeds
#+END_SRC
** Macros - Starts with , key
#+BEGIN_SRC conf
# Default Browser
browser "qutebrowser %u"
# Open in Browser
macro , open-in-browser
# Download Video with Youtube-DL
macro t set browser "~/bin/yt-video %u" ; open-in-browser ; set browser "qutebrowser %u"
# Download Audio with Youtube-DL
macro a set browser "~/bin/yt-audio %u" ; open-in-browser ; set browser "qutebrowser %u"
# Open Video with MPV
macro v set browser "setsid nohup mpv %u &> /dev/null &" ; open-in-browser ; set browser "qutebrowser %u"
# Open With W3M
macro w set browser "w3m %u" ; open-in-browser ; set browser "qutebrowser %u"
# Copy Address to clipboard
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser "qutebrowser %u"
#+END_SRC
** hide articles matching
#+BEGIN_SRC conf
ignore-article "*" "title =~ \"Sponsor\""
ignore-article "*" "title =~ \"Advertisement\""
ignore-mode "display"
#+END_SRC
** Feedlist and Article Format
#+BEGIN_SRC conf
feedlist-format "%4i %n %11u %t"
feedlist-title-format "N %V - Your feeds (%u unread, %t total)%?T? - tag `%T'&?"
articlelist-format "%3i %f %D %?T?|%-17T| ?%t"
articlelist-title-format "%N %V - Articles in feed '%T' (%u unread, %t total) - %U"
itemview-title-format "Article '%T'"
#+END_SRC
** Color Scheme
#+BEGIN_SRC conf
include "~/.config/newsboat/colors"
#+END_SRC
* Colors
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/colors
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
highlight feedlist "^ *[0-9]+ *N " cyan cyan
highlight articlelist "^ *[0-9]+ *N " cyan cyan
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" red default
highlight article "(^Link:.*|^Date:.*)" white default
highlight article "^Podcast Download URL:.*" cyan default
highlight article "^Links:" magenta black underline
highlight article "https?://[^ ]+" green default
highlight article "^(Title):.*$" blue default
highlight article "\\[[0-9][0-9]*\\]" magenta default bold
highlight article "\\[image\\ [0-9]+\\]" green default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
highlight article ":.*\\(link\\)$" cyan default
highlight article ":.*\\(image\\)$" blue default
highlight article ":.*\\(embedded flash\\)$" magenta default
color background default default
color listnormal default default
color listnormal_unread white default
color listfocus color255 cyan bold
color listfocus_unread color255 cyan bold
color info cyan black
color article default default
#+END_SRC
* URLS
:PROPERTIES:
:header-args: :tangle ~/.config/newsboat/urls
:header-args+: :comments both :mkdirp yes
:END:
** NEWSFEEDS
*** Linux
#+begin_src conf
https://itsfoss.com/feed/ "~NEWSFEED: It's Foss" linux
https://lukesmith.xyz/rss.xml "~NEWSFEED: Lukesmith" linux
https://lord.re/index.xml "~NEWSFEED: /home/lord" linux
http://feeds.cyberciti.biz/Nixcraft-LinuxFreebsdSolarisTipsTricks "~NEWSFEED: nixCraft" linux
http://frederic.bezies.free.fr/blog/?feed=rss2 "~NEWSFEED: Le Weblog de Frederic Bezies" linux
https://addy-dclxvi.github.io/index.xml "~NEWSFEED: Addy's Blog" linux
http://feeds.feedburner.com/linoxideblog "~NEWSFEED: LinOxide" linux
#+end_src
*** Emacs
#+begin_src conf
http://www.planet.emacsen.org/atom.xml "~NEWSFEED: Planet Emacs" emacs
http://sachachua.com/blog/feed/ "~NEWSFEED: Sacha Chua" emacs
https://scripter.co/categories/org/index.xml "~NEWSFEED: Scripter" emacs
http://kitchingroup.cheme.cmu.edu/blog/feed "~NEWSFEED: The Kitchin Research Group" emacs
http://irreal.org/blog/?feed=rss2 "~NEWSFEED: Irreal" emacs
https://emacs.cafe/feed.xml "~NEWSFEED: Emacs café" emacs
http://pragmaticemacs.com/feed/ "~NEWSFEED: Pragmatic Emacs" emacs
https://pinecast.com/feed/emacscast "~NEWSFEED: EmacsCast" emacs
http://feeds.feedburner.com/CestLaZ "~NEWSFEED: c'est la Z" emacs
https://joshrollinswrites.com/index.xml "~NEWSFEED: The Art of Not Asking Why" emacs
http://howardism.org/index.xml "~NEWSFEED: Howardism" emacs
#+end_src
*** Other
#+begin_src conf
http://xkcd.com/rss.xml "~NEWSFEED: XKCD" fun
https://undocumentedmatlab.com/feed/ "~NEWSFEED: undocumentedmatlab" matlab
http://feeds.feedburner.com/mathworks/pick?format=xml "~NEWSFEED: Matlab Pick of the Week" matlab
#+end_src
** Radio
#+begin_src conf
http://radiofrance-podcast.net/podcast09/rss_12494.xml "~RADIO: France Inter - Journal 7h" radio
http://radiofrance-podcast.net/podcast09/rss_11736.xml "~RADIO: France Inter - Journal 19h" radio
http://radiofrance-podcast.net/podcast09/rss_18911.xml "~RADIO: France Inter - Journal 19h we" radio
#+end_src
** Youtube
#+begin_src conf
https://www.youtube.com/feeds/videos.xml?channel_id=UCkK9UDm_ZNrq_rIXCz3xCGA "~YOUTUBE: Bryan Lunduke" youtube unix
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~YOUTUBE: Luke Smith" youtube unix
https://www.youtube.com/feeds/videos.xml?channel_id=UCXPHFM88IlFn68OmLwtPmZA "~YOUTUBE: Greg Hurrell" youtube unix
https://www.youtube.com/feeds/videos.xml?channel_id=UCUR1pFG_3XoZn3JNKjulqZg "~YOUTUBE: Thoughtbot" youtube unix
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuIgj0CYCXCvjWywjDbauw "~YOUTUBE: Chat sceptique" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UCMFcMhePnH4onVHt2-ItPZw "~YOUTUBE: Hygiène Mentale" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UCxqAWLTk1CmBvZFPzeZMd9A "~YOUTUBE: Domain of Science" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UC2LZO6swZ9SLUEOks3WnsfA "~YOUTUBE: 2veritasium" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UCaNlbnghtwlsGF-KzAFThqA "~YOUTUBE: ScienceEtonnante" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA "~YOUTUBE: Veritasium" youtube science
https://www.youtube.com/feeds/videos.xml?channel_id=UCEfFUaIkjbI06PhALdcXNVA "~YOUTUBE: EmacsCast" youtube emacs
https://www.youtube.com/feeds/videos.xml?channel_id=UCkRmQ_G_NbdbCQMpALg6UPg "~YOUTUBE: Emacsrocks" youtube emacs
https://www.youtube.com/feeds/videos.xml?channel_id=UCQp2VLAOlvq142YN3JO3y8w "~YOUTUBE: John Kitchin" youtube emacs
https://www.youtube.com/feeds/videos.xml?channel_id=UCq0imsn84ShAe9PBOFnoIrg "~YOUTUBE: Brian Douglas" youtube control
https://www.youtube.com/feeds/videos.xml?channel_id=UCm5mt-A4w61lknZ9lCsZtBw "~YOUTUBE: Steve Brunton" youtube control
https://www.youtube.com/feeds/videos.xml?channel_id=UC7vVhkEfw4nOGp8TyDk7RcQ "~YOUTUBE: BostonDynamics" youtube control
https://www.youtube.com/feeds/videos.xml?channel_id=UCmkP178NasnhR3TWQyyP4Gw "~YOUTUBE: How To Mechatronics" youtube control
https://www.youtube.com/feeds/videos.xml?channel_id=UCSqyMHDUsc1gs6wz4sUy91w "~YOUTUBE: Jipihorn" youtube acoustic
#+end_src

View File

@ -1,266 +0,0 @@
#+TITLE: Dunst (Notification Manager)
: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>
#+PROPERTY: header-args :comments both :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/dunst/dunstrc
:END:
* Global
#+begin_src conf
[global]
#+end_src
** Display
#+begin_src conf
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = keyboard
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "250x50-10+37"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = no
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing windowmanager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 4
# Padding between text and separator.
padding = 16
# Horizontal padding.
horizontal_padding = 16
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 2
# Defines color of the frame around the notification window.
frame_color = "#32302f"
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# default 120
idle_threshold = 120
# Sort messages by urgency.
sort = yes
#+end_src
** Text
#+begin_src conf
font = Hack Nerd Font 10
# The height of a single line. If the height is smaller than the
# font height, it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 4
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 300
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Merge multiple notifications with the same content
stack_duplicates = false
# Hide the count of merged notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
#+end_src
** Icons
#+begin_src conf
# Align icons left/right/off
icon_position = off
# Limit icons size.
max_icon_size=32
# Paths to default icons.
icon_path = /usr/share/icons/Arc/16x16/status/:/usr/share/icons/Arc/16x16/devices/
#+end_src
** History
#+begin_src conf
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
#+end_src
** Misc/Advanced
#+BEGIN_SRC conf
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = qutebrowser
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
#+end_src
* Shortcuts
#+BEGIN_SRC conf
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Close notification.
close = mod1+space
# Close all notifications.
# close_all = mod1+shift+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1". Make sure this key actually exists on your keyboard layout,
# e.g. check output of 'xmodmap -pke'
history = mod1+grave
# Context menu.
context = mod1+shift+period
#+end_src
* Urgency
#+BEGIN_SRC conf
[urgency_low]
background = "#32302f"
foreground = "#ebdbb2"
timeout = 4
[urgency_normal]
background = "#32302f"
foreground = "#ebdbb2"
timeout = 6
[urgency_critical]
background = "#32302f"
foreground = "#cc241d"
timeout = 0
#+END_SRC

View File

@ -1,59 +0,0 @@
#+TITLE: PCMANFM
: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>
#+PROPERTY: header-args:bash :comments both
#+PROPERTY: header-args:bash+ :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
#+PROPERTY: header-args:bash+ :tangle ~/.config/pcmanfm/default/pcmanfm.conf
:END:
* Config
#+BEGIN_SRC conf
[config]
bm_open_method=0
#+END_SRC
* Volume
#+BEGIN_SRC conf
[volume]
mount_on_startup=0
mount_removable=0
autorun=0
#+END_SRC
* UI
#+BEGIN_SRC conf
[ui]
always_show_tabs=0
max_tab_chars=32
win_width=1263
win_height=690
splitter_pos=150
media_in_new_tab=0
desktop_folder_new_win=0
change_tab_on_drop=1
close_on_unmount=1
focus_previous=0
side_pane_mode=places
view_mode=icon
show_hidden=0
sort=mtime;descending;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0
#+END_SRC

View File

@ -1,713 +0,0 @@
#+TITLE: Polybar Configuration
: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>
#+PROPERTY: header-args :comments no
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/polybar/config
:END:
* Colors
#+begin_src conf
[colors]
bg = ${xrdb:background}
red = ${xrdb:color1}
green = ${xrdb:color2}
yellow = ${xrdb:color3}
blue = ${xrdb:color4}
purple = ${xrdb:color5}
aqua = ${xrdb:color6}
gray = ${colors.color7}
darkgray = ${colors.color8}
darkred = ${xrdb:color9}
darkgreen = ${xrdb:color10}
darkyellow = ${xrdb:color11}
darkblue = ${xrdb:color12}
darkpurple = ${xrdb:color13}
darkaqua = ${xrdb:color14}
fg = ${xrdb:foreground}
#+end_src
* VM
#+begin_src conf
[global/wm]
margin-top = 0
margin-bottom = 0
#+end_src
* Top Bar
#+BEGIN_SRC conf
[bar/top]
enable-ipc = true
override-redirect = false
bottom = false
fixed-center = false
width = 100%
height = 27
radius = 0.0
background = ${colors.bg}
foreground = ${colors.fg}
line-size = 2
border-size = 0
padding-left = 2
padding-right = 12
module-margin-left = 1
module-margin-right = 1
font-0 = Hack Nerd Font:style=Medium,Regular:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = Weather Icons:size=10;1
modules-left = i3 bspwm xwindow
modules-center =
modules-right = pulseaudio xbacklight redshift nordvpn lockscreen dunst packages unread_mail cpu battery temperature date
wm-restack = i3
tray-position = right
tray-detached = true
tray-padding = 0
tray-background = ${colors.bg}
#+END_SRC
* Show Windows Title
#+BEGIN_SRC conf
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
#+END_SRC
* I3 - Information about workspaces and active one
#+BEGIN_SRC conf
[module/i3]
type = internal/i3
enable-scroll = false
wrapping-scroll = false
#+END_SRC
#+BEGIN_SRC conf
format = <label-state> <label-mode>
index-sort = true
#+END_SRC
#+BEGIN_SRC conf
label-mode-foreground = ${colors.bg}
label-mode-background = ${colors.fg}
label-mode-padding = 1
# focused = Active workspace on focused monitor
label-focused = %icon% %index%
label-focused-foreground = ${colors.fg}
label-focused-background = ${colors.bg}
label-focused-underline = ${colors.aqua}
label-focused-padding = 1
# unfocused = Inactive workspace on any monitor
label-unfocused = %icon% %index%
label-unfocused-foreground = ${colors.fg}
label-unfocused-background = ${colors.bg}
label-unfocused-underline = ${colors.bg}
label-unfocused-padding = 1
# visible = Active workspace on unfocused monitor
label-visible = %icon% %index%
label-visible-background = ${colors.bg}
label-visible-underline = ${colors.aqua}
label-visible-padding = 1
# urgent = Workspace with urgency hint set
label-urgent = %icon% %index%
label-urgent-background = ${colors.red}
label-urgent-padding = 1
#+END_SRC
* BSPWM
#+begin_src conf
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
enable-click = true
enable-scroll = false
; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label
fuzzy-match = false
ws-icon-0 = code;
ws-icon-1 = web;
ws-icon-2 = mail;
ws-icon-3 = misc;
ws-icon-4 = figs;ﬧ
ws-icon-default =
label-focused = %icon%
label-focused-foreground = ${colors.bg}
label-focused-background = ${colors.aqua}
label-focused-underline= ${colors.aqua}
label-focused-padding = 1
label-occupied = %icon%
label-occupied-underline = ${colors.fg}
label-occupied-padding = 1
label-urgent = %icon%
label-urgent-background = ${colors.red}
label-urgent-padding = 1
label-empty = %icon%
label-empty-foreground = ${colors.fg}
label-empty-padding = 1
#+end_src
* Music using MPD
#+BEGIN_SRC conf
[module/mpd]
type = internal/mpd
format-online = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e "ncmpcpp" &:}<label-song>%{A}
format-online-spacing = 0
format-online-padding = 0
label-offline = mpd is offline
format-offline = <label-offline>
format-offline-foreground = #777
label-song = %artist% - %title%
label-song-maxlen = 30
label-song-ellipsis = true
icon-prev = 寧
icon-stop = 栗
icon-play = 契
icon-pause = 
icon-next = 嶺
icon-random = 咽
icon-repeat = 凌
# Used to display the state of random/repeat/repeatone/single
# Only applies if <icon-[random|repeat|repeatone|single]> is used
toggle-on-foreground = ${colors.fg}
toggle-off-foreground = ${colors.gray}
bar-progress-width = 15
bar-progress-indicator = |
bar-progress-fill = ─
bar-progress-empty = ─
#+END_SRC
* Backlight level
#+BEGIN_SRC conf
[module/xbacklight]
type = internal/xbacklight
format = <ramp>
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-5 = 
ramp-6 = 
ramp-7 = 
ramp-8 = 
ramp-9 = 
ramp-10 = 
ramp-11 = 
#+END_SRC
* CPU Usage
#+BEGIN_SRC conf
[module/cpu]
type = internal/cpu
interval = 2
format-prefix-foreground = ${colors.fg}
format-underline = ${colors.bg}
label = %{A1:$TERMINAL -e "htop" &:} ﬙ %percentage:2%% %{A}
#+END_SRC
* Date
#+BEGIN_SRC conf
[module/date]
type = internal/date
interval = 1
# Open google calendar on left right
date = %{A1:$TERMINAL -e "ikhal" &:} %d-%m%{A}
date-alt = "%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}"
time =  %H:%M
time-alt =  %H:%M:%S
label = %date% %time%
#+END_SRC
* Sound Volume
#+BEGIN_SRC conf
[module/pulseaudio]
type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
# Open pavucontrol on left right
format-volume =%{A1:pavucontrol &:}<label-volume> <bar-volume>%{A}
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = ﱝ muted
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.green}
bar-volume-foreground-1 = ${colors.green}
bar-volume-foreground-2 = ${colors.blue}
bar-volume-foreground-3 = ${colors.blue}
bar-volume-foreground-4 = ${colors.red}
bar-volume-foreground-5 = ${colors.red}
bar-volume-foreground-6 = ${colors.red}
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.fg}
#+END_SRC
* Battery
#+BEGIN_SRC conf
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 95
format-charging = %{A1:xfce4-power-manager-settings &:}<ramp-capacity> <label-charging>%{A}
format-charging-underline = ${colors.blue}
format-discharging = %{A1:xfce4-power-manager-settings &:}<ramp-capacity> <label-discharging>%{A}
format-discharging-underline = ${colors.red}
format-full-prefix = %{A1:xfce4-power-manager-settings &:} %{A}
format-full-prefix-foreground = ${colors.fg}
format-full-underline = ${colors.bg}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${colors.fg}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.fg}
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-3 = 
animation-discharging-4 = 
animation-discharging-foreground = ${color.fg}
animation-discharging-framerate = 750
#+END_SRC
* Temperature
#+begin_src conf
[module/temperature]
type = internal/temperature
interval = 2
thermal-zone = 0
warn-temperature = 70
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
units = false
format = %{A1:$TERMINAL --class="Floating" -e "watch sensors" &:}<ramp> <label>%{A}
format-warn = <ramp> <label-warn>
label = %temperature-c%°C
label-warn = %temperature-c%°C
label-warn-foreground = ${colors.fg}
format-warn-underline = ${colors.red}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-foreground = ${colors.fg}
#+end_src
* Unread Mails
#+BEGIN_SRC conf
[module/unread_mail]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/mail-open.sh
format = <label>
exec = ~/.config/polybar/scripts/mail-status.sh
interval = 1
#+END_SRC
** Unread Mail Scripts
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/mail-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
mail_nb=`du -a ~/.mail/*/Inbox/new/* 2>/dev/null | wc -l`
if [ "$mail_nb" -eq "0" ]; then
echo "";
else
echo "%{F#859900} $mail_nb%{F-}";
fi
#+end_src
** Open Mails
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/mail-open.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
$TERMINAL -e "tmux new-session -A -s neomutt neomutt" &
#+end_src
* Redshift
#+BEGIN_SRC conf
[module/redshift]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/redshift-toggle.sh
format = <label>
exec = ~/.config/polybar/scripts/redshift-status.sh
interval = 2
#+END_SRC
** Redshift Scripts
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/redshift-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if pgrep -x "redshift" >/dev/null; then
echo "望";
else
echo "盛";
fi
#+end_src
** Toggle Redshift
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/redshift-toggle.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if pgrep -x "redshift" >/dev/null; then
killall redshift;
else
nohup redshift > /dev/null 2>&1 &
fi
#+end_src
* NordVPN
#+BEGIN_SRC conf
[module/nordvpn]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/nordvpn-toggle.sh
format = <label>
exec = ~/.config/polybar/scripts/nordvpn-status.sh
interval = 2
#+END_SRC
** Nordvpn Status script
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/nordvpn-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
tmpfile="/tmp/vpnstatus";
if [ -f $tmpfile ] && grep -q "on" $tmpfile; then
echo "%{F#859900}%{F-}";
else
echo "";
fi
#+END_SRC
** Nordvpn Toggle
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/nordvpn-toggle.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
tmpfile="/tmp/vpnstatus";
if [ -f $tmpfile ] && grep -q "on" $tmpfile; then
nordvpn disconnect && dunstify --replace=23198 "VPN" "Disconnected" && echo "off" > $tmpfile;
else
country=`cat ~/bin/nordvpn_countries.txt | sed 's/\s*\t\s*/ /g ; s/\s/\n/g ; s/_/ /g ; /^[a-zA-Z]/!d ; s/\(.*\)/\L\1/' | rofi -i -dmenu | sed 's/\s/_/g'`;
dunstify --replace=23198 "VPN" "Connecting to $country...";
nordvpn connect $country && dunstify --replace=23198 "VPN" "Connected to $country" && echo "on" > $tmpfile;
fi
#+END_SRC
* Packages
#+BEGIN_SRC conf
[module/packages]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/packages-update.sh
format = <label>
exec = ~/.config/polybar/scripts/packages-status.sh
interval = 600
#+END_SRC
** Packages Status script
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/packages-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
package_nb=`yay -Qu 2> /dev/null | wc -l`;
if [ "$package_nb" -eq "0" ]; then
echo "";
else
echo "%{F#859900} $package_nb%{F-}";
fi
#+END_SRC
** Packages Update
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/packages-update.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
$TERMINAL -e "yay" &
#+END_SRC
* Dunst
#+BEGIN_SRC conf
[module/dunst]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/dunst-toggle.sh
format = <label>
exec = ~/.config/polybar/scripts/dunst-status.sh
interval = 2
#+END_SRC
** Dunst Status script
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/dunst-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
tmpfile="/tmp/dunststatus";
if [ -f $tmpfile ]; then
if grep -q "on" $tmpfile; then
echo "";
elif grep -q "off" $tmpfile; then
echo "";
fi
else
echo "";
fi
#+END_SRC
** Dunst Toggle
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/dunst-toggle.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
tmpfile="/tmp/dunststatus";
if [ -f $tmpfile ]; then
if grep -q "on" $tmpfile; then
killall -SIGUSR1 dunst && echo "off" > $tmpfile;
elif grep -q "off" $tmpfile; then
killall -SIGUSR2 dunst && echo "on" > $tmpfile;
dunstify --replace=16549 "Dunst" "Activated";
fi
else
killall -SIGUSR1 dunst && echo "off" > $tmpfile;
fi
#+END_SRC
* Lock Screen
#+BEGIN_SRC conf
[module/lockscreen]
type = custom/script
format-underline = ${colors.bg}
click-left = ~/.config/polybar/scripts/lockscreen-toggle.sh
click-right = ~/scripts/lockscreen.sh
format = <label>
exec = ~/.config/polybar/scripts/lockscreen-status.sh
interval = 2
#+END_SRC
** Lock screen Status script
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/lockscreen-status.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
if pgrep -x "xautolock" >/dev/null
then
echo "";
else
echo "";
fi
#+END_SRC
** Toggle Automatic Lock Screen
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/lockscreen-toggle.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if pgrep -x "xautolock" >/dev/null
then
pkill xautolock;
dunstify --replace=13602 'Lock Screen' 'Desactivated'
else
xautolock -locker "~/scripts/lockscreen.sh" -detectsleep -time 30 -notify 60 -notifier "dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'" &
dunstify --replace=13602 'Lock Screen' 'Activated'
fi
#+end_src
* Network
#+begin_src conf
[module/wired-network]
type = internal/network
interface = enp0s20f0u9u4
label-connected = %local_ip%
label-connected-foreground = ${color.fg}
format-connected-prefix = " "
format-connected = <label-connected>
label-disconnected = ""
label-disconnected-foreground = ${colors.gray}
format-disconnected = <label-disconnected>
[module/wireless-network]
type = internal/network
interface = wlp2s0
label-connected = %essid%
label-connected-foreground = ${color.fg}
format-connected-prefix = " "
format-connected = <label-connected>
label-disconnected = ""
label-disconnected-foreground = ${colors.gray}
format-disconnected = <label-disconnected>
#+end_src
* Screenshot
#+BEGIN_SRC conf
[module/screenshot]
type = custom/text
content = ""
click-left = ~/bin/screenshot
#+END_SRC
* Scripts
** Launch
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/launch.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch Polybar, using default config location ~/.config/polybar/config
polybar top >>/tmp/polybar.log 2>&1 &
# polybar bottom &
echo "Polybar launched..."
#+end_src
** Toggle
:PROPERTIES:
:header-args: :tangle ~/.config/polybar/scripts/toggle.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
# Usage : toggle.sh top
pid=$(pgrep -f "polybar $1")
if [ ! -z "$pid" ]; then
polybar-msg -p $pid cmd toggle >/dev/null 2>&1
fi
#+end_src

View File

@ -1,410 +0,0 @@
#+TITLE: Qutebrowser Configuration
: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>
#+PROPERTY: header-args+ :comments none
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/qutebrowser/config.py
:END:
* Import
#+begin_src python
from qutebrowser.config.configfiles import ConfigAPI
from qutebrowser.config.config import ConfigContainer
import sys, os
#+end_src
* General config
#+begin_src python
c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
c.auto_save.session = False
c.backend = 'webengine'
c.confirm_quit = ['downloads']
#+END_SRC
* Content
#+begin_src python
c.content.autoplay = False
c.content.notifications = False
c.content.geolocation = 'ask'
c.content.javascript.alert = True
c.content.javascript.can_access_clipboard = True
c.content.media_capture = 'ask'
c.content.pdfjs = False
c.content.proxy = 'system'
#+END_SRC
* Editor
#+begin_src python
c.editor.command = ['/usr/bin/termite', '--class="Floating"', '-e', 'nvim {}']
#+end_src
* Downloads
#+begin_src python
c.downloads.location.directory = '$HOME/Downloads/'
c.downloads.location.prompt = True
c.downloads.location.remember = True
c.downloads.location.suggestion = 'path'
c.downloads.position = 'bottom'
c.downloads.remove_finished = 10000
#+END_SRC
* Fonts
#+begin_src python
c.fonts.default_family = ["Hack Nerd Font Mono", "DejaVu Sans Mono", "Monaco"]
c.fonts.prompts = '10pt monospace'
c.fonts.statusbar = '10pt monospace'
c.fonts.tabs = '10pt monospace'
#+END_SRC
* Input
#+begin_src python
c.input.insert_mode.auto_enter = True
c.input.insert_mode.auto_leave = True
c.input.insert_mode.auto_load = False
c.input.insert_mode.plugins = True
#+END_SRC
* New Instance Options
#+begin_src python
c.new_instance_open_target = 'tab'
c.new_instance_open_target_window = 'last-focused'
#+END_SRC
* Spell Check
#+begin_src python
c.spellcheck.languages = ['en-US', 'fr-FR']
#+END_SRC
* Status Bar
#+begin_src python
# Hide the statusbar unless a message is shown.
c.statusbar.hide = False
c.statusbar.position = 'bottom'
# List of widgets displayed in the statusbar.
# Valid values:
# - url: Current page URL.
# - scroll: Percentage of the current page position like `10%`.
# - scroll_raw: Raw percentage of the current page position like `10`.
# - history: Display an arrow when possible to go back/forward in history.
# - tabs: Current active tab, e.g. `2`.
# - keypress: Display pressed keys when composing a vi command.
# - progress: Progress bar for the current page loading.
c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'progress']
#+END_SRC
* Tabs
#+begin_src python
# Open new tabs (middleclick/ctrl+click) in the background.
c.tabs.background = True
# Mouse button with which to close tabs.
c.tabs.close_mouse_button = 'right'
# How to behave when the last tab is closed.
c.tabs.last_close = 'close'
# Switch between tabs using the mouse wheel.
c.tabs.mousewheel_switching = False
# Position of new tabs opened from another tab.
# Valid values:
# - prev: Before the current tab.
# - next: After the current tab.
# - first: At the beginning.
# - last: At the end.
c.tabs.new_position.related = 'next'
# Position of new tabs which aren't opened from another tab.
# Valid values:
# - prev: Before the current tab.
# - next: After the current tab.
# - first: At the beginning.
# - last: At the end.
c.tabs.new_position.unrelated = 'last'
# Position of the tab bar.
c.tabs.position = 'left'
# Which tab to select when the focused tab is removed.
c.tabs.select_on_remove = 'next'
# Width (in pixels or as percentage of the window) of the tab bar if it's vertical.
c.tabs.width = 30
# Wrap when changing tabs.
c.tabs.wrap = False
#+END_SRC
* Urls and Search Engines
#+begin_src python
c.url.searchengines = {
'DEFAULT': 'https://www.duckduckgo.org/?q={}',
'aw': 'https://wiki.archlinux.org/?search={}',
'wi': 'https://en.wikipedia.org/wiki/Special:Search?search={}',
'go': 'https://www.google.com/search?q={}',
'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=',
'gm': 'https://www.google.com/maps/search/{}/',
'yt': 'https://www.youtube.com/results?search_query={}',
'gh': 'https://github.com/search?q={}',
're': 'https://www.reddit.com/search?q={}',
'lb': 'http://188.240.208.184/search.php?req={}',
'la': 'http://188.240.208.184/scimag/index.php?s={}',
'sm': 'https://www.openstreetmap.org/search?query={}',
'am': 'https://www.amazon.fr/s?k={}',
'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
}
#+end_src
#+begin_src python
c.url.start_pages = ['qute://bookmarks']
#+END_SRC
* Normal Bindings
Zooming
#+begin_src python
config.bind('+', 'zoom-in')
config.bind('-', 'zoom-out')
config.bind('=', 'zoom')
#+end_src
Inputs blocks
#+begin_src python
config.bind(';t', 'hint inputs')
config.bind('gi', 'hint inputs --first')
#+end_src
Opening New Window
#+begin_src python
config.bind('<Ctrl-N>', 'open -w')
#+end_src
History
#+begin_src python
config.bind('H', 'back')
config.bind('L', 'forward')
#+end_src
Move tabs around
#+begin_src python
config.bind('d', 'tab-close')
config.bind('<', 'tab-move -')
config.bind('>', 'tab-move +')
config.bind('gO', 'tab-give') # Open current tab in a new window
config.bind('J', 'tab-next')
config.bind('K', 'tab-prev')
#+end_src
Bookmarks and Quickmark
#+begin_src python
config.bind('M', 'bookmark-add')
config.bind('m', 'quickmark-save')
#+end_src
Open New Pages/Tabs
#+begin_src python
config.bind('o', 'set-cmd-text -s :open')
config.bind('O', 'set-cmd-text -s :open -t')
#+end_src
Open new page/tab with clipboard content
#+begin_src python
config.bind('pp', 'open -- {clipboard}')
config.bind('pP', 'open -t -- {clipboard}')
#+end_src
Link Hinting
#+begin_src python
config.bind('f', 'hint')
config.bind('F', 'hint all tab')
#+end_src
Yanking url
#+begin_src python
config.bind('yy', 'yank')
#+END_SRC
Go to specific websites
#+begin_src python
config.bind('gy', 'open -t https://www.youtube.com/feed/subscriptions')
config.bind('gf', 'open -t https://feedly.com/i/my')
config.bind('gr', 'open -t https://www.reddit.com/')
config.bind('gb', 'open qute://bookmarks')
config.bind('gh', 'open qute://history')
config.bind('gs', 'open qute://settings')
#+end_src
* Custom Bindings
Create a Password for the current website
#+begin_src python
config.bind(',P', 'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh')
#+end_src
Use Pass to fill password and username (configuration is done in =~/.config/qutebrowser/password_fill_rc=)
#+begin_src python
config.bind(',p', 'spawn --userscript password_fill')
#+END_SRC
Open Youtube video using =mpv=
#+begin_src python
config.bind(',m', 'spawn --detach mpv --force-window yes {url}')
config.bind(',M', 'hint links spawn --detach mpv --force-window yes {hint-url}')
#+END_SRC
Cast Youtube to Chromecast
#+begin_src python
config.bind(',c', 'spawn --userscript ~/.config/qutebrowser/userscripts/cast.sh {url}')
config.bind(',C', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/cast.sh {hint-url}')
#+END_SRC
Add page to Bookmarks using =buku=
#+begin_src python
config.bind(',b', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-add.sh')
config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh')
#+end_src
Open bookmark using =buku=
#+begin_src python
config.bind(',o', 'spawn ~/bin/bukurun')
#+end_src
Org Capture
#+begin_src python
config.bind(',r', 'spawn --userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
#+end_src
Annotate with Hypothesis
#+begin_src python
config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();")
#+end_src
See Amazon price history using CamelCamelCamel
#+begin_src python
config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
#+end_src
* Userscripts
** Create a new password
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/add-passowrd.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
password=$(rofi -p "Password" -dmenu -password -lines 1)
if [ -z "$url" ] || [ -z "$username" ] || [ -z "$password" ]; then
dunstify "Pass" "Failed to Add Password"
else
echo -e "$password\nlogin: $username\nurl: $QUTE_URL" > /tmp/add-password.txt
pass insert --multiline "$url/$username" < /tmp/add-password.txt;
rm /tmp/add-password.txt
dunstify "Pass" "Password Added"
fi
#+end_src
** Cast Youtube to Chromecast
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/cast.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
youtube-dl -o - $1 | castnow --quiet -
#+end_src
** Password_fill_rc
:PROPERTIES:
:header-args+: :tangle ~/.config/qutebrowser/password_fill_rc
:END:
#+begin_src bash
# Show all password fields in the menu
query_entries() {
# safe queried url for choose_entry
# the subdomains are removed
export queried_url=$(expr match ".$1" '.*\.\(.*\..*\)')
mapfile -t files < <(find -L "$PREFIX" -iname '*.gpg' -printf '%P\n' |sed 's,\.gpg$,,')
}
# Even if there is only one entry, always show a menu
# for user confirmation.
choose_entry() {
MENU_COMMAND=(
rofi -dmenu
-p "qutebrowser> "
-filter "$queried_url"
-mesg $'Pick a password entry for <b>'"${QUTE_URL//&/&amp;}"'</b>'
)
file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
}
#+end_src
** Org-Capture
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/org-capture.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
readonly CAPTURE_SCRIPT=~/scripts/org-protocol-capture-html.sh
if [[ "$QUTE_MODE" = "hints" ]]; then
# if we start with hints, we juste want to capture the URL
$CAPTURE_SCRIPT --template "pu" --url "${QUTE_URL}"
elif [[ -n "$QUTE_SELECTED_TEXT" ]]; then
# if text is selected, we want to capture the text
$CAPTURE_SCRIPT --template "pt" --heading "${QUTE_TITLE}" --url "${QUTE_URL}" "${QUTE_SELECTED_TEXT}"
else
# if no text is selected, we want to capture the url
$CAPTURE_SCRIPT --template "pu" --heading "${QUTE_TITLE}" --url "${QUTE_URL}"
fi
#+end_src
** Add Url to Buku using Rofi
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/buku-rofi.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
title=$(echo "$QUTE_TITLE" | rofi -p "Title" -dmenu -lines 1)
tags=$(buku -t --nc --np | sed -e 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/' -e '/^\s*$/d' | sort | uniq | rofi -p "Tags" -dmenu)
buku --add "$QUTE_URL" --tag "$tags" --title "$title" && dunstify "Buku" "📑 Bookmark Added"
#+end_src
** Add Url to Buku without asking for information
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/buku-add.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
buku --add $QUTE_URL --title "$QUTE_TITLE" && dunstify "Buku" "📑 Bookmark Added"
#+end_src

View File

@ -1,779 +0,0 @@
#+TITLE: Ranger Configuration
: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>
:END:
* Config
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/rc.conf
:header-args+: :comments both :mkdirp yes
:END:
** Options
#+BEGIN_SRC conf
# Which viewmode should be used? Possible values are:
# miller: Use miller columns which show multiple levels of the hierarchy
# multipane: Midnight-commander like multipane view showing all tabs next
# to each other
set viewmode miller
# How many columns are there, and what are their relative widths?
set column_ratios 1,1
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|vrb|pyo|lof|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$
# Show hidden files? You can toggle this by typing 'zh'
set show_hidden false
# Ask for a confirmation when running the "delete" command?
# Valid values are "always", "never", "multiple" (default)
# With "multiple", ranger will ask only if you delete multiple files at once.
set confirm_on_delete multiple
# Which script is used to generate file previews?
# ranger ships with scope.sh, a script that calls external programs (see
# README.md for dependencies) to preview images, archives, etc.
set preview_script /home/thomas/.config/ranger/scope.sh
# Use the external preview script or display simple plain text or image previews?
set use_preview_script true
# Automatically count files in the directory, even before entering them?
set automatically_count_files true
# Open all images in this directory when running certain image viewers
set open_all_images true
# Be aware of version control systems and display information.
set vcs_aware false
# Use one of the supported image preview protocols
set preview_images true
# Set the preview image method
set preview_images_method w3m
set colorscheme default
# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
set preview_files true
set preview_directories true
set collapse_preview true
# Draw the status bar on top of the browser window (default: bottom)
set status_bar_on_top false
# Draw a progress bar in the status bar which displays the average state of all
# currently running tasks which support progress bars?
set draw_progress_bar_in_status_bar true
# Draw borders around columns?
set draw_borders true
# Display the directory name in tabs?
set dirname_in_tabs false
# Enable the mouse support?
set mouse_enabled true
# Display the file size in the main column or status bar?
set display_size_in_main_column true
set display_size_in_status_bar false
# Display files tags in all columns or only in main column?
set display_tags_in_all_columns false
# Set a title for the window?
set update_title false
# Set the title to "ranger" in the tmux program?
set update_tmux_title true
# Shorten the title if it gets long? The number defines how many
# directories are displayed at once, 0 turns off this feature.
set shorten_title 3
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
set tilde_in_titlebar true
# How many directory-changes or console-commands should be kept in history?
set max_history_size 20
set max_console_history_size 50
# Try to keep so much space between the top/bottom border when scrolling:
set scroll_offset 8
# Flush the input after each key hit? (Noticeable when ranger lags)
set flushinput true
# Padding on the right when there's no preview?
# This allows you to click into the space to run the file.
set padding_right true
set autosave_bookmarks false
set autoupdate_cumulative_size false
# Turning this on makes sense for screen readers:
set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural
# Additional sorting options
set sort_reverse false
set sort_case_insensitive true
set sort_directories_first true
set sort_unicode false
# Enable this if key combinations with the Alt Key don't work for you.
# (Especially on xterm)
set xterm_alt_key false
# Whether to include bookmarks in cd command
set cd_bookmarks false
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
# disable this feature.
set preview_max_size 5000000
# Add the highlighted file to the path in the titlebar
set show_selection_in_titlebar true
# The delay that ranger idly waits for user input, in milliseconds, with a
# resolution of 100ms. Lower delay reduces lag between directory updates but
# increases CPU load.
set idle_delay 2000
# When the metadata manager module looks for metadata, should it only look for
# a ".metadata.json" file in the current directory, or do a deep search and
# check all directories above the current one as well?
set metadata_deep_search false
# Clear all existing filters when leaving a directory
set clear_filters_on_dir_change false
# Disable displaying line numbers in main column
set line_numbers false
#+END_SRC
** Command Aliases in the Console
#+BEGIN_SRC conf
alias q quit
alias filter scout -prt
alias find scout -aeit
alias mark scout -mr
alias unmark scout -Mr
alias search scout -rs
alias search_inc scout -rts
alias travel scout -aefiklst
#+END_SRC
** Some Custom Keybindings
*** Extract
#+BEGIN_SRC conf
map ,x shell ~/.config/ranger/scripts/extract.sh %f
#+END_SRC
**** Extract Script
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/extract.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 atool -x $1 && tmux select-pane -U
else
atool -x $1
fi
#+end_src
*** Compress
#+BEGIN_SRC conf
map ,z shell ~/.config/ranger/scripts/compress.sh %f
#+END_SRC
**** Compress Script
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/compress.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 apack ${1%.*}.zip $1 && tmux select-pane -U
else
apack ${1%.*}.zip $1
fi
#+end_src
*** Delete first page of pdf
#+BEGIN_SRC conf
map ,d shell ~/.config/ranger/scripts/pdf-delete-first-page.sh %f
#+END_SRC
**** Delete first page of PDF
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/pdf-delete-first-page.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
The requirement is to have =pdftk= or =stapler= installed.
#+begin_src bash
if [[ -f $1 && $1 == *.pdf ]]; then
# Argument if a file
if type stapler > /dev/null 2>&1; then
stapler del "$1" 1 /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1"
elif type pdftk > /dev/null 2>&1; then
pdftk "$1" cat 2-end output /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1"
else
echo "Neither pdftk nor stapler are installed"
fi
fi
#+end_src
*** Convert PDF to PNG
#+BEGIN_SRC conf
map ,cp shell pdftoppm -png %f > $(echo %f | cut -f 1 -d '.' | sed 's/$/.png/')
#+END_SRC
*** Magit Status
#+BEGIN_SRC conf
map ,gs shell emacsclient -create-frame --alternate-editor="" -n --eval '(magit-status)'
#+END_SRC
*** Upload with 0x0 (previously Tansfer.sh)
#+BEGIN_SRC conf
map ,t shell ~/.config/ranger/scripts/upload.sh %f
#+END_SRC
**** Upload Script
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/scripts/upload.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://0x0.st | xsel -ib;" && tmux select-pane -U
else
curl --progress-bar -F"file=@$1" https://0x0.st | xsel -ib;
fi
#+end_src
*** Open current folder with PCManFM
#+begin_src conf
map ,o shell nohup pcmanfm %d &
#+end_src
*** Open with Emacs
#+begin_src conf
map ,e shell emacsclient -create-frame --alternate-editor="" -n %f
#+end_src
*** Print on Rnice
#+BEGIN_SRC conf
map ,p shell print-rnice %f &
#+END_SRC
** Define keys for the browser
*** Basic
#+BEGIN_SRC conf
map Q quit!
map q eval fm.execute_console("shell tmux detach") if 'TMUX' in os.environ.keys() else fm.execute_console("quit")
#+END_SRC
#+BEGIN_SRC conf
map <C-c> abort
map <esc> change_mode normal
map ~ set viewmode!
#+END_SRC
#+BEGIN_SRC conf
map ? help
#+END_SRC
#+BEGIN_SRC conf
map : console
map ; console
#+END_SRC
#+BEGIN_SRC conf
map ! console shell%space
#+END_SRC
#+BEGIN_SRC conf
map @ console -p6 shell %%s
#+END_SRC
*** Open Shell in current directory
#+BEGIN_SRC conf
map s shell $SHELL
map S shell nohup $TERMINAL &
#+END_SRC
*** Open With
#+BEGIN_SRC conf
map O chain draw_possible_programs; console open_with%space
#+END_SRC
*** Filter
#+BEGIN_SRC conf
map f console filter%space
# Reset filter
map F filter
#+END_SRC
*** Tagging / Marking
#+BEGIN_SRC conf
map <Space> mark_files toggle=True
map v mark_files all=True toggle=True
#+END_SRC
*** VIM-like
#+BEGIN_SRC conf
copymap <UP> k
copymap <DOWN> j
copymap <LEFT> h
copymap <RIGHT> l
copymap <HOME> gg
copymap <END> G
#+END_SRC
*** Jumping around
#+BEGIN_SRC conf
map H history_go -1
map L history_go 1
#+END_SRC
#+BEGIN_SRC conf
map ] move_parent 1
map [ move_parent -1
#+END_SRC
#+BEGIN_SRC conf
map } traverse
#+END_SRC
#+BEGIN_SRC conf
map cd console cd%space
#+END_SRC
*** Go to special folders
#+BEGIN_SRC conf
map gh cd ~
map ga cd ~/Cloud/administratif
map gm cd ~/Cloud/thesis
map gp cd ~/Pictures
map gT cd ~/.local/share/Trash/files
map gd cd ~/Downloads
map gc cd ~/.config/literate-dotfiles
#+END_SRC
*** Get size of folders
#+BEGIN_SRC conf
# Get size of all folders
map du shell -p du --max-depth=1 -h --apparent-size
# Get size of all folders and sort them
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
#+END_SRC
*** Yank path of directory/file
#+BEGIN_SRC conf
# Yank path of current directory/file
map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
# Yank path of directory
map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b
# Yank filename
map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
#+END_SRC
*** Drag and Drop
#+BEGIN_SRC conf
map D shell dragon-drag-and-drop -a -x %p
#+END_SRC
*** Rename files
#+BEGIN_SRC conf
map a rename_append
map C eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
#+END_SRC
*** Paste files
#+BEGIN_SRC conf
map pp paste
map po paste overwrite=True
map pP paste append=True
map pO paste overwrite=True append=True
map pl paste_symlink relative=False
map pL paste_symlink relative=True
map phl paste_hardlink
map pht paste_hardlinked_subtree
#+END_SRC
*** Delete and move files
#+BEGIN_SRC conf
map dD shell -s trash-put %s
map dd cut
map du uncut
#+END_SRC
*** Copy files
#+BEGIN_SRC conf
map yy copy
map yu uncut
#+END_SRC
*** Searching
#+BEGIN_SRC conf
map / console search%space
map n search_next
map N search_next forward=False
#+END_SRC
*** Tabs
#+BEGIN_SRC conf
map <C-n> tab_new ~
map <C-w> tab_close
map <TAB> tab_move 1
map <S-TAB> tab_move -1
map gn tab_new ~
map gt tab_move 1
#+END_SRC
*** Settings
#+BEGIN_SRC conf
map zh set show_hidden!
map zi set preview_images!
map zv set use_preview_script!
#+END_SRC
*** Bookmarks
#+BEGIN_SRC conf
map `<any> enter_bookmark %any
map '<any> enter_bookmark %any
map m<any> set_bookmark %any
map um<any> unset_bookmark %any
map m<bg> draw_bookmarks
copymap m<bg> um<bg> `<bg> '<bg>
#+END_SRC
*** FZF
#+BEGIN_SRC conf
map <C-f> fzf_select
#+END_SRC
** Define keys for the console
*** Basic
#+BEGIN_SRC conf
cmap <tab> eval fm.ui.console.tab()
cmap <s-tab> eval fm.ui.console.tab(-1)
cmap <ESC> eval fm.ui.console.close()
cmap <CR> eval fm.ui.console.execute()
cmap <C-l> redraw_window
copycmap <ESC> <C-c>
copycmap <CR> <C-j>
#+END_SRC
*** Move around
#+BEGIN_SRC conf
cmap <up> eval fm.ui.console.history_move(-1)
cmap <down> eval fm.ui.console.history_move(1)
cmap <left> eval fm.ui.console.move(left=1)
cmap <right> eval fm.ui.console.move(right=1)
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
#+END_SRC
*** Line Editing
#+BEGIN_SRC conf
cmap <backspace> eval fm.ui.console.delete(-1)
cmap <delete> eval fm.ui.console.delete(0)
cmap <C-w> eval fm.ui.console.delete_word()
cmap <C-y> eval fm.ui.console.paste()
copycmap <home> <C-a>
copycmap <end> <C-e>
#+END_SRC
* Rifle
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/rifle.conf
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
# This is the configuration file of "rifle", ranger's file executor/opener.
# Each line consists of conditions and a command. For each line the conditions
# are checked and if they are met, the respective command is run.
#
# Syntax:
# <condition1> , <condition2> , ... = command
#
# The command can contain these environment variables:
# $1-$9 | The n-th selected file
# $@ | All selected files
#
# If you use the special command "ask", rifle will ask you what program to run.
#
# Prefixing a condition with "!" will negate its result.
# These conditions are currently supported:
# match <regexp> | The regexp matches $1
# ext <regexp> | The regexp matches the extension of $1
# mime <regexp> | The regexp matches the mime type of $1
# name <regexp> | The regexp matches the basename of $1
# path <regexp> | The regexp matches the absolute path of $1
# has <program> | The program is installed (i.e. located in $PATH)
# env <variable> | The environment variable "variable" is non-empty
# file | $1 is a file
# directory | $1 is a directory
# number <n> | change the number of this command to n
# terminal | stdin, stderr and stdout are connected to a terminal
# X | $DISPLAY is not empty (i.e. Xorg runs)
#
# There are also pseudo-conditions which have a "side effect":
# flag <flags> | Change how the program is run. See below.
# label <label> | Assign a label or name to the command so it can
# | be started with :open_with <label> in ranger
# | or `rifle -p <label>` in the standalone executable.
# else | Always true.
#
# Flags are single characters which slightly transform the command:
# f | Fork the program, make it run in the background.
# | New command = setsid $command >& /dev/null &
# r | Execute the command with root permissions
# | New command = sudo $command
# t | Run the program in a new terminal. If $TERMCMD is not defined,
# | rifle will attempt to extract it from $TERM.
# | New command = $TERMCMD -e $command
# Note: The "New command" serves only as an illustration, the exact
# implementation may differ.
# Note: When using rifle in ranger, there is an additional flag "c" for
# only running the current file even if you have marked multiple files.
#-------------------------------------------
# Websites
#-------------------------------------------
# Rarely installed browsers get higher priority; It is assumed that if you
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
# other hand are often only installed as fallback browsers.
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has links2, terminal = links2 "$@"
ext x?html?, has links, terminal = links "$@"
ext x?html?, has lynx, terminal = lynx -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
#Spreadsheets for scim
ext sc|csv|sxc|xlsx?|xlt|xlw|gnm|gnumeric, = sc-im -- "$@"
#-------------------------------------------
# Misc
#-------------------------------------------
ext org = emacsclient -c "$1"
# Define the "editor" for text files as first action
mime ^text, label editor = $EDITOR -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
ext nes, has fceux, X = fceux "$1"
ext exe = wine "$1"
name ^[mM]akefile$ = make
#--------------------------------------------
# Code
#-------------------------------------------
ext py = python -- "$1"
ext pl = perl -- "$1"
ext rb = ruby -- "$1"
ext js = node -- "$1"
ext sh = sh -- "$1"
ext php = php -- "$1"
#--------------------------------------------
# Video/Audio with a GUI
#-------------------------------------------
mime ^video, has mpv, X, flag f = mpv -- "$@"
mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
mime ^video, has mpv, X, flag f = mpv --loop -- "$@"
#--------------------------------------------
# Audio without X
#-------------------------------------------
mime ^audio|ogg$, terminal, has mpv = mpv --no-audio-display -- "$@"
mime ^audio|ogg$ = tag "$@"
mime ^audio|ogg$, terminal, has mpv = mpv -- "$@"
#--------------------------------------------
# Video without X:
#-------------------------------------------
mime ^video, terminal, !X, has mpv = mpv -- "$@"
mime ^video, terminal, !X, has mplayer2 = mplayer2 -- "$@"
mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
#-------------------------------------------
# Documents
#-------------------------------------------
ext pdf, has zathura, X, flag f = zathura -- "$@"
ext pdf, has llpp, X, flag f = llpp "$@"
ext pdf, has mupdf, X, flag f = mupdf "$@"
ext pdf, has mupdf, X, flag f = mupdf -I "$@"
ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
ext pdf, has apvlv, X, flag f = apvlv -- "$@"
ext pdf, has xpdf, X, flag f = xpdf -- "$@"
ext pdf, has evince, X, flag f = evince -- "$@"
ext pdf, has atril, X, flag f = atril -- "$@"
ext pdf, has okular, X, flag f = okular -- "$@"
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
ext pdf, has qpdfview, X, flag f = qpdfview "$@"
ext epub, has zathura, X, flag f = zathura -- "$@"
ext epub, has mupdf, X, flag f = mupdf "$@"
ext docx?, has wps, X, flag f = wps "$@"
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f = wpp "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
ext djvu, has zathura,X, flag f = zathura -- "$@"
ext djvu, has evince, X, flag f = evince -- "$@"
ext djvu, has atril, X, flag f = atril -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image/gif, has mpv, X, flag f = mpv --loop -- "$@"
mime ^image/gif, has viewnior, X, flag f = viewnior -- "$@"
mime ^image/gif, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext xcf, X, flag f = gimp -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh --scale-down --auto-zoom --image-bg black -- "$@"
mime ^image, has feh, X, flag f = feh --scale-down --auto-zoom -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@"
mime ^image, has eog, X, flag f = eog -- "$@"
mime ^image, has eom, X, flag f = eom -- "$@"
mime ^image, has gimp, X, flag f = gimp -- "$@"
mime ^image, has pinta, X, flag f = pinta -- "$@"
mime ^image, has mypaint, X, flag f = mypaint -- "$@"
mime ^image, has kolourpaint, X, flag f = kolourpaint -- "$@"
#-------------------------------------------
# Archives
#-------------------------------------------
# This requires atool
ext jar = java -jar "$@"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als = als -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als = als -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@"
# Fallback:
ext tar|gz, has tar = tar vvtf "$@" | "$PAGER"
ext tar|gz, has tar = tar vvxf "$@"
#-------------------------------------------
# Misc
#-------------------------------------------
label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1"
label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1"
label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
# Define the editor for non-text files + pager as last action
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext blend, has blender, X, flag f = blender -- "$@"
has dragon-drag-and-drop, X, flag f = dragon-drag-and-drop -a -x "$@"
#+END_SRC
* Ranger Commands
:PROPERTIES:
:header-args: :tangle ~/.config/ranger/commands.py
:header-args+: :comments both :mkdirp yes
:END:
** Import
#+begin_src python
from ranger.api.commands import *
import os
#+end_src
** fzf_select
#+begin_src python
class fzf_select(Command):
"""
:fzf_select
Find a file using fzf.
With a prefix argument select only directories.
See: https://github.com/junegunn/fzf
"""
def execute(self):
import subprocess
import os.path
if self.quantifier:
# match only directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
else:
# match files and directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
fzf = self.fm.execute_command(command, universal_newlines=True, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.rstrip('\n'))
if os.path.isdir(fzf_file):
self.fm.cd(fzf_file)
else:
self.fm.select_file(fzf_file)
#+end_src

View File

@ -1,262 +0,0 @@
#+TITLE: Rofi Configuration
: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>
:END:
* Rofi
:PROPERTIES:
:header-args: :tangle ~/.config/rofi/config.rasi
:header-args+: :comments no :mkdirp yes
:END:
#+BEGIN_SRC conf
configuration {
modi: "window,run,ssh";
width: 50;
lines: 15;
columns: 1;
font: "Hack Nerd Font 12";
fixed-num-lines: true;
show-icons: false;
terminal: "rofi-sensible-terminal";
sort: false;
case-sensitive: false;
cycle: true;
sidebar-mode: false;
auto-select: false;
combi-modi: "window,run";
matching: "normal";
line-margin: 2;
line-padding: 1;
separator-style: "dash";
hide-scrollbar: true;
fullscreen: false;
dpi: -1;
show-match: true;
theme: "gruvbox-dark-soft";
kb-move-front: "Control+a";
kb-move-end: "Control+e";
kb-move-word-back: "Alt+b,Control+Left";
kb-move-word-forward: "Alt+f,Control+Right";
kb-move-char-back: "Left,Control+b";
kb-move-char-forward: "Right,Control+f";
kb-remove-char-forward: "Delete,Control+d";
kb-remove-char-back: "BackSpace,Shift+BackSpace";
kb-remove-to-eol: "Control+k";
kb-remove-to-sol: "Control+u";
kb-accept-entry: "Control+j,Return,KP_Enter";
kb-accept-custom: "Control+Return";
kb-accept-alt: "Shift+Return";
kb-delete-entry: "Shift+Delete";
kb-row-up: "Up,Control+p";
kb-row-down: "Down,Control+n";
kb-row-tab: "Tab";
kb-row-first: "Home,KP_Home";
kb-row-last: "End,KP_End";
kb-row-select: "Control+space";
kb-cancel: "Escape,Control+g";
}
#+END_SRC
* Theme
:PROPERTIES:
:header-args: :tangle ~/.config/rofimenu/rofimenu.rasi
:header-args+: :comments none :mkdirp yes
:END:
#+BEGIN_SRC conf
configuration {
me-select-entry: "MouseSecondary";
me-accept-entry: "MousePrimary";
scroll-method: 1;
show-icons: true;
sidebar-mode: true;
kb-custom-1: "";
kb-custom-2: "";
kb-custom-3: "";
kb-custom-4: "";
kb-custom-5: "";
kb-custom-6: "";
kb-custom-7: "";
kb-custom-8: "";
kb-custom-9: "";
kb-custom-10: "";
kb-select-1: "Alt+1";
kb-select-2: "Alt+2";
kb-select-3: "Alt+3";
kb-select-4: "Alt+4";
kb-select-5: "Alt+5";
kb-select-6: "Alt+6";
kb-select-7: "Alt+7";
kb-select-8: "Alt+8";
kb-select-9: "Alt+9";
kb-select-10: "Alt+0";
}
* {
//// COLORS ////
//// uncomment to match bspwm edition theme
background: #292f34FF;
background-color: #292f3400;
foreground: #F6F9FFFF;
selected: #1ABB9BFF;
selected-foreground: @foreground;
//// uncomment to match Adapta Nokto theme
// background: #222D32E8;
// background-color: #00000000;
// foreground: #CFD8DCFF;
// selected: #00BCD4FF;
// selected-foreground: #FFFFFFFF;
//// common - active and urgent
active-background: #3A464BFF;
urgent-background: #800000FF;
urgent-foreground: @foreground;
selected-urgent-background: @urgent-foreground;
selected-urgent-foreground: @urgent-background;
//// TEXT ////
font: "xos4 Terminus 18px";
// font: "Knack Nerd Font 16px";
text-color: @foreground;
//// PADDING ETC ////
margin: 0px;
border: 0px;
padding: 0px;
spacing: 0px;
elementpadding: 2px 0px;
elementmargin: 0px 2px;
listmargin: 0px 2px 0px 0px;
//// SIZE ////
windowwidth: 40ch;
buttonwidth: 18ch;
lines: 12;
fixed-height: false;
//// POSITION ////
location: northwest;
anchor: northwest;
x-offset: 0px;
y-offset: 24px;
//// LAYOUT ////
scrollbar: true;
//// uncomment to get submenu-like style
menustyle: [ sb-mainbox ];
buttonpadding: 2px 1ch;
button-bg: @background;
dynamic: true;
//// uncomment to get tabs-like style
// menustyle: [ tb-mainbox ];
// buttonpadding: 14px 1ch;
// dynamic: false;
}
//////////////////////////////////////////
window {
width: @windowwidth;
children: @menustyle;
}
//submenu-style
sb-mainbox {
orientation: horizontal;
children: [ sidebar, vertibox ];
}
//tabs-style
tb-mainbox {
orientation: vertical;
children: [ inputbar, horibox ];
background-color: @background;
}
//desktop-submenu
dt-mainbox {
orientation: vertical;
children: [ boxdummy, sb-mainbox ];
}
horibox {
orientation: horizontal;
children: [ listview, sidebar ];
}
sidebar {
orientation: vertical;
}
button {
horizontal-align: 0;
padding: @buttonpadding;
width: @buttonwidth;
background-color: @button-bg;
expand: false;
}
vertibox {
orientation: vertical;
children: [ inputbar, listview ];
background-color: @background;
}
prompt {
enabled: false;
}
listview {
margin: @listmargin;
}
scrollbar {
handle-width: 0.5ch;
handle-color: @selected;
}
boxdummy {
enabled: false;
orientation: vertical;
expand: false;
children: [ textboxdummy ];
}
textboxdummy {
str: " ";
}
element, inputbar, textboxdummy {
padding: @elementpadding;
margin: @elementmargin;
width: @elementwidth;
}
element.normal.active,
element.alternate.active {
background-color: @active-background;
text-color: @selected-foreground;
}
element.selected,
button.selected {
background-color: @selected;
text-color: @selected-foreground;
}
element.normal.urgent,
element.alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#+END_SRC

View File

@ -1,331 +0,0 @@
#+TITLE: Scripts
: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>
:END:
* Wallpapers
:PROPERTIES:
:header-args: :tangle ~/scripts/wallpapers.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
while true; do
nitrogen --set-zoom-fill --random ".wallpapers"
sleep 10m
done
#+end_src
* LockScreen
:PROPERTIES:
:header-args: :tangle ~/scripts/lockscreen.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
First, turn off dunst
#+begin_src bash
killall -SIGUSR1 dunst && echo "off" > /tmp/dunststatus;
#+end_src
Turn off the music if it is playing.
#+begin_src bash
MPC_STATE=$(mpc | sed -n '2p' | cut -d "[" -f2 | cut -d "]" -f1)
if [[ $MPC_STATE == "playing" ]]; then
mpc pause
fi
#+end_src
Then take a screenshot and process it.
#+begin_src bash
temp_file="/tmp/screen.png"
rm -f $temp_file
maim $temp_file
convert $temp_file -scale 10% -scale 1000% $temp_file
#+end_src
Finally, lock the screen using =i3lock=.
#+begin_src bash
i3lock --no-unlock-indicator --ignore-empty-password --nofork --image=$temp_file && killall -SIGUSR2 dunst && echo "on" > /tmp/dunststatus
#+end_src
#+begin_src bash :tangle no
revert() {
xset dpms 0 0 0
}
trap revert HUP INT TERM
# turn off screen after 5 seconds
xset +dpms dpms 5 5 5
# Parameters
temp_file="/tmp/screen.png"
icon="$HOME/Pictures/Evil_Rick_Sprite.png"
width=1920
height=1080
blur_factor=6
lock_blur_factor=0
# Take the screen shot, blur the image and add the icon
ffmpeg -f x11grab -video_size "${width}x${height}" -y -i $DISPLAY -i $icon -filter_complex "boxblur=$blur_factor:$blur_factor,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2,boxblur=$lock_blur_factor:$lock_blur_factor" -vframes 1 $temp_file
# Alternative
# maim -d 1 $temp_file
# convert -blur 0x8 $temp_file $temp_file
# convert -composite $temp_file $icon -gravity South -geometry -20x1200 $temp_file
# Lock the screen with the image
i3lock --no-unlock-indicator --ignore-empty-password --show-failed-attempts --nofork --image=$temp_file
# Remove the screenshot
rm $temp_file
# Don't turn off screen when back from lock
revert
#+end_src
* Lock / Exit / Suspend / ...
:PROPERTIES:
:header-args: :tangle ~/scripts/quit.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
option=$(echo -e "Lock\nExit\nLogout\nSuspend\nHibernate\nReboot\nShutdown" | rofi -i -dmenu)
case "$option" in
"Lock")
i3exit lock ;;
"Exit")
i3exit switch_user ;;
"Logout")
i3exit logout ;;
"Suspend")
i3exit suspend ;;
"Hibernate")
i3exit hibernate ;;
"Reboot")
i3exit reboot ;;
"Shutdown")
i3exit shutdown ;;
esac
#+end_src
* NAS - Mount
:PROPERTIES:
:header-args: :tangle ~/scripts/nas.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
if [ $1 == "mount" ]; then
if mount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS' 'Successfully mounted'
else
dunstify --replace=58249 'NAS' 'Error while mounted'
fi
elif [ $1 == "umount" ]; then
if umount /home/thomas/mnt/NAS/; then
dunstify --replace=58249 'NAS' 'Successfully unmounted'
else
dunstify --replace=58249 'NAS' 'Error while unmounted'
fi
fi
#+end_src
* Icons Unicode
:PROPERTIES:
:header-args: :tangle ~/scripts/icons.sh
: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
* Org-Protocol-Capture-HTML
:PROPERTIES:
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
Defaults
#+begin_src bash
heading="link"
template="pu"
url="https://google.com/"
#+end_src
Functions
#+begin_src bash
function debug {
if [[ -n $debug ]]
then
function debug {
echo "DEBUG: $@" >&2
}
debug "$@"
else
function debug {
true
}
fi
}
function die {
echo "$@" >&2
exit 1
}
function urlencode {
python -c "
from __future__ import print_function
try:
from urllib import quote # Python 2
except ImportError:
from urllib.parse import quote # Python 3
import sys
print(quote(sys.stdin.read()[:-1], safe=''))"
}
#+end_src
Documentation
#+begin_src bash
function usage {
cat <<EOF
$0 [OPTIONS] [HTML]
html | $0 [OPTIONS]
Send HTML to Emacs through org-protocol, passing it through Pandoc to
convert HTML to Org-mode. HTML may be passed as an argument or
through STDIN. If only URL is given, it will be downloaded and its
contents used.
Options:
-h, --heading HEADING Heading
-t, --template TEMPLATE org-capture template key (default: pu)
-u, --url URL URL
--debug Print debug info
--help I need somebody!
EOF
}
#+end_src
Arguments
#+begin_src bash
args=$(getopt -n "$0" -o dh:rt:u: -l debug,help,heading:,template:,url: -- "$@") \
|| die "Unable to parse args. Is getopt installed?"
eval set -- "$args"
while true
do
case "$1" in
-d|--debug)
debug=true
debug "Debugging on"
;;
--help)
usage
exit
;;
-h|--heading)
shift
heading="$1"
;;
-t|--template)
shift
template="$1"
;;
-u|--url)
shift
url="$1"
;;
--)
# Remaining args
shift
rest=("$@")
break
;;
esac
shift
done
debug "ARGS: $args"
debug "Remaining args: ${rest[@]}"
#+end_src
Get HTML
#+begin_src bash
if [[ -n $@ ]]
then
debug "Text from args"
body="$@"
fi
#+end_src
URL-encode
#+begin_src bash
heading=$(urlencode <<<"$heading") || die "Unable to urlencode heading."
url=$(urlencode <<<"$url") || die "Unable to urlencode URL."
body=$(urlencode <<<"$body") || die "Unable to urlencode text."
#+end_src
Send to Emacs
#+begin_src bash
emacsclient "org-protocol://capture?template=$template&url=$url&title=$heading&body=$body"
#+end_src
* Restart Mopidy
:PROPERTIES:
:header-args: :tangle ~/scripts/mopidy-restart.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
pids=( $(pgrep -f mopidy) )
for pid in "${pids[@]}"; do
if [[ $pid != $$ ]]; then
kill "$pid"
fi
done
echo "Killed mopidy."
echo "Restarting mopidy..."
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
echo "Done"
#+end_src

View File

@ -1,424 +0,0 @@
#+TITLE: Simple X Hotkey Daemon
: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>
#+PROPERTY: header-args :comments no
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/sxhkd/sxhkdrc
:END:
* Basic
#+begin_src conf
super + ctrl + x
xkill
#+end_src
#+begin_src conf
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
# Update Polybar
super + r
$HOME/.config/polybar/scripts/launch.sh
#+end_src
* Set shut down, restart and locking features
#+begin_src conf
XF86PowerOff
$HOME/scripts/quit.sh
super + 0
$HOME/scripts/quit.sh
#+end_src
* Start Applications
#+begin_src conf
# Start program launcher
super + d
rofi -show run
# Launch categorized menu
super + z
rofi -show drun
# Start Sound Manager
super + shift + s
pavucontrol
# Start Bluetooth Manager
super + shift + b
blueman-manager
# Windows Switch
super + shift + w
rofi -show window
# Bookmarks
# super + shift + f
# $HOME/bin/bukurun
# Passwords
super + shift + p
rofi-pass
#+end_src
#+begin_src conf
# Start Terminal
super + Return
$TERMINAL
# Tmux Terminal
super + shift + Return
$TERMINAL -e 'tmux'
# Start Command line Calendar
super + shift + c
$TERMINAL -e "khal interactive"
# File Manager
super + o
$TERMINAL -e "tmux new-session -A -s ranger ranger"
# Browser
super + i
qutebrowser
#+end_src
* Multimedia keys
** Sound
#+begin_src conf
XF86AudioMute
amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
amixer -D pulse sset Master 2%-
#+end_src
** Backlight
#+begin_src conf
XF86MonBrightnessUp
xbacklight -inc 10
XF86MonBrightnessDown
xbacklight -dec 10
#+end_src
** Change Tracks
#+begin_src conf
super + period
mpc toggle
super + {greater,less}
mpc {next,prev}
#+end_src
#+begin_src conf
XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
#+end_src
** Print Screen
#+begin_src conf
Print
~/bin/screenshot
XF86Display
rofi -show window
#+end_src
** Other
#+begin_src conf
XF86Search
rofi -show run
#+end_src
* Command Mode
#+begin_src conf
# Command line Calendar Client (khal)
super + space ; c
$TERMINAL -e "khal interactive"
# GUI Calendar (Google Calendar)
super + space ; shift + c
$BROWSER https://calendar.google.com/
# pcmanfm: GUI file manager
super + space ; o
pcmanfm;
# Mails with neomutt
super + space ; m
$TERMINAL -e "tmux new-session -A -s neomutt neomutt"
super + space ; shift + m
$TERMINAL -e "neomutt -R"
# Weechat
super + space ; w
$TERMINAL -e "tmux new-session -A -s weechat weechat"
# News with newsboat
super + space ; n
$TERMINAL -e "tmux new-session -A -s newsboat newsboat"
# Music with ncmpcpp
super + space ; p
$TERMINAL -e "tmux new-session -A -s ncmpcpp ncmpcpp"
# Print Screen
super + space ; shift + p
$HOME/bin/mopidy-restart
# Default Browser
super + space ; i
$BROWSER;
# Alternative Browser
super + space ; shift + i
brave;
# Emacs
super + space ; e
emacs;
# Emacs Client
super + space ; shift + e
emacsclient -create-frame --alternate-editor=""
#+end_src
* Change Keyboard Layout
#+begin_src conf
super + ctrl + d
setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
setxkbmap -layout us -option caps:escape
#+end_src
* BSPWM related
:PROPERTIES:
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.bspwm
:END:
** BSPWM hotkeys
#+begin_src conf
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }q
bspc node -{c,k}
#+end_src
** Monocle Layout
#+begin_src conf
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# focus the next/previous node in the current desktop
super + c
bspc node -f next.local
#+end_src
** Set the window State
#+begin_src conf
# Set the window state to tiled
super + t
bspc node -t tiled
# Toggle Fullscreen State
super + f
if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi
# Toggle Floating State
super + s
if [ -z "$(bspc query -N -n focused.floating)" ]; then \
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
#+end_src
** Sticky Window
#+begin_src conf
# set the node flags
super + ctrl + y
bspc node -g sticky
#+end_src
** Focus and Swap
#+begin_src conf
# Focus/swap the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the last Node
super + Tab
bspc node -f last
#+end_src
#+begin_src conf
# Focus the next/previous desktop in the current monitor
super + {p,n}
bspc desktop -f {prev,next}.local
# focus the last Desktop
super + b
bspc desktop -f last
# focus or send to the given desktop
super + {_,ctrl + }{1-9}
bspc {desktop -f,node -d} '^{1-9}'
# Send and Focus to the given desktop
super + shift + {1-9}
bspc node -d '^{1-9}' --follow
#+end_src
** Preselect
#+begin_src conf
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
# super + ctrl + {1-9}
# bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
#+end_src
** Resize
#+begin_src conf
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
#+end_src
#+begin_src conf
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
#+end_src
* I3 related
:PROPERTIES:
:header-args:conf+: :tangle ~/.config/sxhkd/sxhkdrc.i3
:END:
** Quit/Restart hotkeys
#+begin_src conf
# quit/restart bspwm
super + alt + {q,r}
i3-msg {quit,restart}
# close and kill
super + {_,shift + }q
i3-msg {kill,kill}
#+end_src
** Monocle Layout
#+begin_src conf
# alternate between the tiled and monocle layout
super + f
i3-msg layout toggle tabbed split
# Change focus between tiling / floating windows
super + c
i3-msg focus mode_toggle
#+end_src
** Set the window State
#+begin_src conf
# set the window state
super + {t,s, shift + f}
i3-msg {fullscreen disable,floating toggle,fullscreen toggle}
#+end_src
** Sticky Window
#+begin_src conf
super + ctrl + y
i3-msg sticky toggle
#+end_src
** focus/swap
#+begin_src conf
# Focus/swap the node in the given direction
super + {_,shift + }{h,Left}
i3-msg {focus,move} left
super + {_,shift + }{j,Down}
i3-msg {focus,move} down
super + {_,shift + }{k,Up}
i3-msg {focus,move} up
super + {_,shift + }{l,Right}
i3-msg {focus,move} right
#+end_src
#+begin_src conf
# Focus the next/previous desktop in the current monitor
super + {p,n}
i3-msg workspace {prev,next}
# focus the last Desktop
super + b
i3-msg workspace back_and_forth
# focus or send to the given desktop
super + {1-9}
i3-msg workspace '{1-9}'
super + ctrl + {1-9}
i3-msg move container to workspace '{1-9}'
super + shift + {1-9}
WP={1-9} && i3-msg move container to workspace $WP && i3-msg workspace $WP
#+end_src
** Preselect
Preselect the direction
#+begin_src conf
super + ctrl + {h,l,Left,Right}
i3-msg split h
super + ctrl + {j,k,Up,Down}
i3-msg split v
#+end_src
** Resize
Expand/Shrink a window
#+begin_src conf
super + alt + h
i3-msg resize shrink width 10 px or 10 ppt
super + alt + j
i3-msg resize grow height 10 px or 10 ppt
super + alt + k
i3-msg resize shrink height 10 px or 10 ppt
super + alt + l
i3-msg resize grow width 10 px or 10 ppt
#+end_src

View File

@ -1,385 +0,0 @@
#+TITLE: Systemd services and timers
: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>
:END:
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
* Pass Git
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/passgit.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Passwords every day
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/scripts/pass_git_sync.sh
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/passgit.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Passwords every day
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
[Timer]
OnCalendar=*-*-* 16:00:00
Persistent=true
Unit=passgit.service
[Install]
WantedBy=default.target
#+END_SRC
** Script
:PROPERTIES:
:header-args: :tangle ~/scripts/pass_git_sync.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
pass git pull --rebase && pass git push
#+end_src
* Buku Git
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/bukugit.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Bookmarks every day
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/scripts/buku_git_push.sh
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/bukugit.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync All Mails every x hours
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
[Timer]
OnCalendar=*-*-* 16:00:00
Persistent=true
Unit=bukugit.service
[Install]
WantedBy=default.target
#+END_SRC
** Script
:PROPERTIES:
:header-args: :tangle ~/scripts/buku_git_push.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/.local/share/buku/
if [[ ! -z $(git status -s bookmarks.db) ]]
then
git add bookmarks.db
git commit -m "Changed bookmarks - $(date +%F)"
git push
exit
fi
#+end_src
* Check mail
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/checkmail.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Check new mails
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/scripts/checkmail.sh -q
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/checkmail.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Check Mail every x minutes
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
Requires=checkmail.service
[Timer]
Persistent=false
OnBootSec=2min
OnUnitActiveSec=5min
AccuracySec=2min
Unit=checkmail.service
[Install]
WantedBy=default.target
#+END_SRC
** Script
:PROPERTIES:
:header-args: :tangle ~/scripts/checkmail.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
while [ -n "$1" ]; do # while loop starts
case "$1" in
-a) opt_all='--all' ;; # Check All inboxes
-v) opt_verbose='--verbose' ;; # Verbose
-q) opt_quiet='--quiet' ;; # Quiet
*) echo "Option $1 not recognized" ;; # In case you typed a different option
esac
shift
done
# =============================================================
# Count number of mails
gmail_old="$(ls ~/.mail/gmail/Inbox/new | wc -l)"
esrf_old="$(ls ~/.mail/esrf/Inbox/new | wc -l)"
ulg_old="$(ls ~/.mail/ulg/Inbox/new | wc -l)"
uliege_old="$(ls ~/.mail/uliege/Inbox/new | wc -l)"
# =============================================================
# =============================================================
# Retreive mails
mbsync $opt_all $opt_verbose gmail-Home esrf-Home ulg-Home uliege-Home
# =============================================================
# =============================================================
# Count number of mails
gmail_new="$(ls ~/.mail/gmail/Inbox/new | wc -l)"
esrf_new="$(ls ~/.mail/esrf/Inbox/new | wc -l)"
ulg_new="$(ls ~/.mail/ulg/Inbox/new | wc -l)"
uliege_new="$(ls ~/.mail/uliege/Inbox/new | wc -l)"
# =============================================================
# =============================================================
# Total Number of new mails since last checking
new="$(($gmail_new+$esrf_new+$ulg_new+$uliege_new))"
old="$(($gmail_old+$esrf_old+$ulg_old+$uliege_old))"
# =============================================================
# =============================================================
# Notification
if [ "$new" -gt 0 ]; then
dunstify --replace=98465 'New mail' " $esrf_new  $gmail_new  $ulg_new  $uliege_new"
fi
# =============================================================
# =============================================================
# Indexation and Tags
# mu update
mu index --maildir=~/.mail $opt_verbose $opt_quiet
# Update on Emacs
# if [ "$(($new-$old))" -gt 0 ]; then
# emacsclient --eval '(mu4e-update-index)';
# fi
# =============================================================
#+end_src
* Sync mail
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/syncmail.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync all mails
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/scripts/checkmail.sh -a -q
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/syncmail.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync All Mails every x hours
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
Requires=syncmail.service
[Timer]
Persistent=false
OnBootSec=30min
OnUnitActiveSec=300min
AccuracySec=10min
Unit=syncmail.service
[Install]
WantedBy=default.target
#+END_SRC
* Vdirsyncer
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/vdirsyncer.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Synchronize calendars and contacts
Documentation=https://vdirsyncer.readthedocs.org/
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/vdirsyncer --verbosity "ERROR" sync
Type=oneshot
#+end_src
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/vdirsyncer.timer
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Synchronize vdirs
[Timer]
OnBootSec=5m
OnUnitActiveSec=15m
AccuracySec=5m
[Install]
WantedBy=timers.target
#+end_src
* SSH Agent
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/ssh-agent.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target
#+end_src
* Powertop
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/powertop.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Powertop tunings
[Service]
ExecStart=/usr/bin/powertop --auto-tune
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
#+end_src
* Mopidy
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/mopidy.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Mopidy music server
After=avahi-daemon.service
After=dbus.service
After=network.target
After=nss-lookup.target
After=pulseaudio.service
After=remote-fs.target
After=sound.target
[Service]
ExecStart=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
[Install]
WantedBy=multi-user.target
#+end_src

View File

@ -1,135 +0,0 @@
#+TITLE: Termite Configuration
: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>
#+PROPERTY: header-args+ :comments both
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/termite/config
:END:
* Options
#+BEGIN_SRC conf
[options]
#allow_bold = true
#audible_bell = false
#bold_is_bright = true
clickable_url = true
#dynamic_title = true
font = Hack Nerd Font Mono 13px
#fullscreen = true
#icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
#scrollbar = off
highlight = #2f2f2f
#+END_SRC
* Hints
#+BEGIN_SRC conf
[hints]
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
#+END_SRC
* Colors
#+BEGIN_SRC conf
[colors]
# Base16 Gruvbox dark, soft
# Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
# fg2
foreground = #d5c4a1
# fg1
foreground_bold = #ebdbb2
cursor = #ebdbb2
# bg0_s
cursor_foreground = #32302f
background = #32302f
# 16 color space
# bg0_s
color0 = #32302f
# bg3
color8 = #665c54
# fb2
color7 = #d5c4a1
# fg0
color15 = #fbf1c7
# Red
color1 = #fb4934
color9 = #fb4934
# Green
color2 = #b8bb26
color10 = #b8bb26
# Yellow
color3 = #fabd2f
color11 = #fabd2f
# Blue
color4 = #83a598
color12 = #83a598
# Purple
color5 = #d3869b
color13 = #d3869b
# Teal
color6 = #8ec07c
color14 = #8ec07c
# Extra colors
# orange
color16 = #fe8019
# orange
color17 = #d65d0e
# bg1
color18 = #3c3836
# bg2
color19 = #504945
# fg3
color20 = #bdae93
# fg
color21 = #ebdbb2
#+END_SRC

Some files were not shown because too many files have changed in this diff Show More