Use $TERMINAL variable. Clean index.org file

This commit is contained in:
Thomas Dehaeze 2020-01-12 17:15:09 +01:00
parent 0cebecf78c
commit 8a80e9731d
8 changed files with 502 additions and 810 deletions

View File

@ -62,7 +62,7 @@
[Desktop Entry] [Desktop Entry]
Name=Neomutt Name=Neomutt
GenericName=Email client GenericName=Email client
Exec=/usr/bin/termite -e neomutt %u Exec=$TERMINAL -e neomutt %u
Type=Application Type=Application
Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg
Categories=Network;Email; Categories=Network;Email;
@ -98,7 +98,7 @@
Encoding=UTF-8 Encoding=UTF-8
MultipleArgs=false MultipleArgs=false
Terminal=false Terminal=false
Exec=termite --class=WeeChat -e 'weechat' Exec=$TERMINAL --class=WeeChat -e 'weechat'
StartupWMClass=WeeChat StartupWMClass=WeeChat
Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg
Type=Application Type=Application

View File

@ -32,7 +32,6 @@
"window_type = 'dock'", "window_type = 'dock'",
"window_type = 'dnd'", "window_type = 'dnd'",
"class_g = 'VirtualBox'", "class_g = 'VirtualBox'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'", "class_g ?= 'Notify-osd'",
"class_g = 'Tilda'", "class_g = 'Tilda'",
"class_g = 'Firefox'", "class_g = 'Firefox'",

View File

@ -90,25 +90,6 @@ Colors are gathered based on the documentation https://i3wm.org/docs/userguide.h
set $black #282828 set $black #282828
set $darkblack #1d2021 set $darkblack #1d2021
set $transparent #00000000 set $transparent #00000000
# set_from_resource $term_background background
# set_from_resource $term_foreground foreground
# set_from_resource $term_color0 color0
# set_from_resource $term_color1 color1
# set_from_resource $term_color2 color2
# set_from_resource $term_color3 color3
# set_from_resource $term_color4 color4
# set_from_resource $term_color5 color5
# set_from_resource $term_color6 color6
# set_from_resource $term_color7 color7
# set_from_resource $term_color8 color8
# set_from_resource $term_color9 color9
# set_from_resource $term_color10 color10
# set_from_resource $term_color11 color11
# set_from_resource $term_color12 color12
# set_from_resource $term_color13 color13
# set_from_resource $term_color14 color14
# set_from_resource $term_color15 color15
#+end_src #+end_src
** Theme colors ** Theme colors

File diff suppressed because it is too large Load Diff

View File

@ -18,10 +18,10 @@
:END: :END:
* Synchronize Mailboxes - Mbsync * Synchronize Mailboxes - Mbsync
:PROPERTIES: :PROPERTIES:
:header-args:conf: :tangle ~/.mbsyncrc :header-args:conf: :tangle ~/.mbsyncrc
:header-args:conf+: :comments both :mkdirp yes :header-args:conf+: :comments both :mkdirp yes
:END: :END:
http://isync.sourceforge.net/ http://isync.sourceforge.net/
** Global Defaults ** Global Defaults
@ -275,10 +275,10 @@ http://www.djcbsoftware.nl/code/mu/
http://www.djcbsoftware.nl/code/mu/cheatsheet.html http://www.djcbsoftware.nl/code/mu/cheatsheet.html
* Mail Client - NeoMutt * Mail Client - NeoMutt
:PROPERTIES: :PROPERTIES:
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc :header-args:conf: :tangle ~/.config/neomutt/neomuttrc
:header-args:conf+: :comments both :mkdirp yes :header-args:conf+: :comments both :mkdirp yes
:END: :END:
https://neomutt.org/ https://neomutt.org/
Documentation: Documentation:
@ -700,6 +700,20 @@ Labels
macro attach W <save-entry><kill-line>~/Downloads/<enter>y "Save entry" macro attach W <save-entry><kill-line>~/Downloads/<enter>y "Save entry"
#+end_src #+end_src
*** Compose
#+BEGIN_SRC conf
bind compose p postpone-message
bind compose R rename-attachment
bind compose a attach-file
#+END_SRC
Open another instance of neomutt in readonly mode while composing
#+BEGIN_SRC conf
macro compose M "<shell-escape>$TERMINAL -e \"neomutt -R\"<enter>"
#+END_SRC
Attach multiple files using ranger Attach multiple files using ranger
#+begin_src conf #+begin_src conf
macro compose A "<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>" "Attach with Ranger" macro compose A "<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>" "Attach with Ranger"
@ -720,30 +734,22 @@ Attach multiple files using ranger
fi fi
#+end_src #+end_src
*** TODO Compose **** TODO Send HTML mails using Markdown
#+BEGIN_SRC conf https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162
bind compose p postpone-message https://github.com/Roguelazer/muttdown
bind compose R rename-attachment
bind compose a attach-file
#+END_SRC
Write html emails using markdown Write html emails using markdown
#+BEGIN_SRC conf #+BEGIN_SRC conf
# macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n" # macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n"
#+END_SRC #+END_SRC
Open another instance of neomutt in readonly mode while composing
#+BEGIN_SRC conf
macro compose M "<shell-escape>termite -e \"neomutt -R\"<enter>"
#+END_SRC
*** Browser *** Browser
#+begin_src conf #+begin_src conf
bind browser l select-entry bind browser l select-entry
macro browser h "<top-page><select-entry>" macro browser h "<top-page><select-entry>"
bind browser t tag-entry
bind browser q exit bind browser q exit
#+end_src #+end_src
@ -794,6 +800,9 @@ Use =urlview= to extract urls from the mail.
#+end_src #+end_src
*** Link to Orgmode *** Link to Orgmode
https://www.donarmstrong.com/posts/org_mode_mutt_capture/
https://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/
#+begin_src conf #+begin_src conf
macro index,pager S "<pipe-message>$HOME/scripts/mutt-save-org-link.py\n" macro index,pager S "<pipe-message>$HOME/scripts/mutt-save-org-link.py\n"
#+end_src #+end_src
@ -1280,7 +1289,10 @@ Program to open is defined in the =mailcap= file.
A script =openfile.sh= is used to open files with the default application using =xdg-open=. A script =openfile.sh= is used to open files with the default application using =xdg-open=.
*** Attach multiple files at once *** Attach multiple files at once
First, tag the files you want to send using =t=, then =;= to apply the action on all tagged files and finally =<enter>= to add them all. First, tag the files you want to send using =t=, then =;= to apply the action on
all tagged files and finally =<enter>= to add them all.
Of ranger can be used with the =A= keybinding.
*** Forgotten Attachment *** Forgotten Attachment
#+begin_src conf #+begin_src conf

View File

@ -88,7 +88,7 @@
border-size = 0 border-size = 0
padding-left = 2 padding-left = 2
padding-right = 16 padding-right = 12
module-margin-left = 1 module-margin-left = 1
module-margin-right = 1 module-margin-right = 1
@ -207,7 +207,7 @@
#+BEGIN_SRC conf #+BEGIN_SRC conf
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
format-online = <icon-prev> <toggle> <icon-next> %{A1:termite -e "ncmpcpp" &:}<label-song>%{A} format-online = <icon-prev> <toggle> <icon-next> %{A1:$TERMINAL -e "ncmpcpp" &:}<label-song>%{A}
format-online-spacing = 0 format-online-spacing = 0
format-online-padding = 0 format-online-padding = 0
@ -269,7 +269,7 @@
format-underline = ${colors.background} format-underline = ${colors.background}
label = %{A1:termite -e "htop" &:} ﬙ %percentage:2%% %{A} label = %{A1:$TERMINAL -e "htop" &:} ﬙ %percentage:2%% %{A}
#+END_SRC #+END_SRC
* Date * Date
@ -279,8 +279,8 @@
interval = 1 interval = 1
# Open google calendar on left right # Open google calendar on left right
date = %{A1:termite -e "ikhal" &:} %d-%m%{A} date = %{A1:$TERMINAL -e "ikhal" &:} %d-%m%{A}
date-alt = "%{A1:termite -e \"ikhal\" &:} %d-%m-%Y%{A}" date-alt = "%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}"
time =  %H:%M time =  %H:%M
time-alt =  %H:%M:%S time-alt =  %H:%M:%S
@ -375,7 +375,7 @@
;; Temperature off one cpu core ;; Temperature off one cpu core
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
format = %{A1:termite -e "watch sensors" &:}<ramp> <label>%{A} format = %{A1:$TERMINAL -e "watch sensors" &:}<ramp> <label>%{A}
format-underline = ${colors.background} format-underline = ${colors.background}
format-warn = <ramp> <label-warn> format-warn = <ramp> <label-warn>
format-warn-underline = ${colors.red} format-warn-underline = ${colors.red}
@ -428,7 +428,7 @@
:header-args+: :shebang "#!/usr/bin/env bash" :header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
#+begin_src bash #+begin_src bash
termite -e "tmux -L neomutt attach" & $TERMINAL -e "tmux -L neomutt attach" &
#+end_src #+end_src
* Redshift * Redshift

View File

@ -293,7 +293,7 @@ map ,z shell apack %f.zip %f
#+BEGIN_SRC conf #+BEGIN_SRC conf
map s shell $SHELL map s shell $SHELL
# Open External Shell in current directory # Open External Shell in current directory
map S shell nohup termite & map S shell nohup $TERMINAL &
map r chain draw_possible_programs; console open_with%%space map r chain draw_possible_programs; console open_with%%space
#+END_SRC #+END_SRC

View File

@ -37,6 +37,14 @@
$HOME/.config/polybar/scripts/launch.sh $HOME/.config/polybar/scripts/launch.sh
#+end_src #+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 * Start Applications
#+begin_src conf #+begin_src conf
# Start program launcher # Start program launcher
@ -71,15 +79,15 @@
#+begin_src conf #+begin_src conf
# Start Terminal # Start Terminal
super + Return super + Return
termite $TERMINAL
# Tmux Terminal # Tmux Terminal
super + shift + Return super + shift + Return
termite -e 'tmux' $TERMINAL -e 'tmux'
# Start Command line Calendar # Start Command line Calendar
super + shift + c super + shift + c
termite -e "khal interactive" $TERMINAL -e "khal interactive"
# File Manager # File Manager
super + o super + o
@ -140,19 +148,11 @@ XF86Display
rofi -show run rofi -show run
#+end_src #+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
* Command Mode * Command Mode
#+begin_src conf #+begin_src conf
# Command line Calendar Client (khal) # Command line Calendar Client (khal)
super + space ; c super + space ; c
termite -e "khal interactive" $TERMINAL -e "khal interactive"
# GUI Calendar (Google Calendar) # GUI Calendar (Google Calendar)
super + space ; shift + c super + space ; shift + c
@ -168,22 +168,22 @@ XF86Display
# Mails with neomutt # Mails with neomutt
super + space ; m super + space ; m
termite -e "tmux -L neomutt attach" $TERMINAL -e "tmux -L neomutt attach"
super + space ; shift + m super + space ; shift + m
termite -e "neomutt -R" $TERMINAL -e "neomutt -R"
# Weechat # Weechat
super + space ; w super + space ; w
termite -e "tmux -L weechat attach" $TERMINAL -e "tmux -L weechat attach"
# News with newsboat # News with newsboat
super + space ; n super + space ; n
termite -e "tmux -L newsboat attach" $TERMINAL -e "tmux -L newsboat attach"
# Music with ncmpcpp # Music with ncmpcpp
super + space ; p super + space ; p
termite -e "tmux -L ncmpcpp attach" $TERMINAL -e "tmux -L ncmpcpp attach"
# Print Screen # Print Screen
super + space ; shift + p super + space ; shift + p