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

View File

@ -32,7 +32,6 @@
"window_type = 'dock'",
"window_type = 'dnd'",
"class_g = 'VirtualBox'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Tilda'",
"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 $darkblack #1d2021
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
** Theme colors

File diff suppressed because it is too large Load Diff

View File

@ -700,6 +700,20 @@ Labels
macro attach W <save-entry><kill-line>~/Downloads/<enter>y "Save entry"
#+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
#+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"
@ -720,30 +734,22 @@ Attach multiple files using ranger
fi
#+end_src
*** TODO Compose
#+BEGIN_SRC conf
bind compose p postpone-message
bind compose R rename-attachment
bind compose a attach-file
#+END_SRC
**** TODO Send HTML mails using Markdown
https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162
https://github.com/Roguelazer/muttdown
Write html emails using markdown
#+BEGIN_SRC conf
# macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n"
#+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
#+begin_src conf
bind browser l select-entry
macro browser h "<top-page><select-entry>"
bind browser t tag-entry
bind browser q exit
#+end_src
@ -794,6 +800,9 @@ Use =urlview= to extract urls from the mail.
#+end_src
*** 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
macro index,pager S "<pipe-message>$HOME/scripts/mutt-save-org-link.py\n"
#+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=.
*** 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
#+begin_src conf

View File

@ -88,7 +88,7 @@
border-size = 0
padding-left = 2
padding-right = 16
padding-right = 12
module-margin-left = 1
module-margin-right = 1
@ -207,7 +207,7 @@
#+BEGIN_SRC conf
[module/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-padding = 0
@ -269,7 +269,7 @@
format-underline = ${colors.background}
label = %{A1:termite -e "htop" &:} ﬙ %percentage:2%% %{A}
label = %{A1:$TERMINAL -e "htop" &:} ﬙ %percentage:2%% %{A}
#+END_SRC
* Date
@ -279,8 +279,8 @@
interval = 1
# Open google calendar on left right
date = %{A1:termite -e "ikhal" &:} %d-%m%{A}
date-alt = "%{A1:termite -e \"ikhal\" &:} %d-%m-%Y%{A}"
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
@ -375,7 +375,7 @@
;; Temperature off one cpu core
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-warn = <ramp> <label-warn>
format-warn-underline = ${colors.red}
@ -428,7 +428,7 @@
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
termite -e "tmux -L neomutt attach" &
$TERMINAL -e "tmux -L neomutt attach" &
#+end_src
* Redshift

View File

@ -293,7 +293,7 @@ map ,z shell apack %f.zip %f
#+BEGIN_SRC conf
map s shell $SHELL
# 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
#+END_SRC

View File

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