Compare commits
No commits in common. "a5c696d860d00db535dca079677f356ef851d239" and "aae57a4654bdeadc66756861ba11af7d8012e3ac" have entirely different histories.
a5c696d860
...
aae57a4654
1
bash.org
1
bash.org
@ -316,7 +316,6 @@ PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
|
|||||||
PATH=$GOPATH:$GOPATH/bin:$PATH
|
PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||||
PATH=~/.config/emacs/bin:$PATH
|
PATH=~/.config/emacs/bin:$PATH
|
||||||
PATH=~/.local/bin:$PATH
|
PATH=~/.local/bin:$PATH
|
||||||
PATH=~/.local/bin/nvim/bin:$PATH
|
|
||||||
PATH=~/.npm-global/bin:$PATH
|
PATH=~/.npm-global/bin:$PATH
|
||||||
PATH=~/miniconda3/bin:$PATH
|
PATH=~/miniconda3/bin:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
|
60
mail.org
60
mail.org
@ -522,8 +522,14 @@ bind generic,index,pager \Ce next-line
|
|||||||
bind generic,index,pager \Cy previous-line
|
bind generic,index,pager \Cy previous-line
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Index (list of mails)
|
*** Index and Pager
|
||||||
#+begin_src conf
|
#+BEGIN_SRC conf
|
||||||
|
bind pager k previous-line
|
||||||
|
bind pager j next-line
|
||||||
|
|
||||||
|
# Display mode information
|
||||||
|
bind pager i display-toggle-weed
|
||||||
|
|
||||||
bind index <space> collapse-thread
|
bind index <space> collapse-thread
|
||||||
|
|
||||||
bind index,pager K previous-entry
|
bind index,pager K previous-entry
|
||||||
@ -531,9 +537,17 @@ bind index,pager J next-entry
|
|||||||
|
|
||||||
bind index l display-message
|
bind index l display-message
|
||||||
bind index <Return> display-message
|
bind index <Return> display-message
|
||||||
|
bind pager l view-attachments
|
||||||
|
|
||||||
|
bind pager gg top
|
||||||
|
bind pager 0 top
|
||||||
|
|
||||||
|
bind pager G bottom
|
||||||
|
bind pager $ bottom
|
||||||
|
|
||||||
macro index h "<change-folder>?" "Go back to the list of mailboxes"
|
macro index h "<change-folder>?" "Go back to the list of mailboxes"
|
||||||
bind pager h exit
|
bind pager h exit
|
||||||
|
bind pager q exit
|
||||||
|
|
||||||
macro index c "<change-folder>?<toggle-mailboxes>" "change folder"
|
macro index c "<change-folder>?<toggle-mailboxes>" "change folder"
|
||||||
|
|
||||||
@ -548,36 +562,6 @@ bind index,pager @ compose-to-sender
|
|||||||
macro index \Cr \
|
macro index \Cr \
|
||||||
"<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" \
|
"<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" \
|
||||||
"mark all new as read"
|
"mark all new as read"
|
||||||
#+end_src
|
|
||||||
|
|
||||||
#+begin_src conf
|
|
||||||
bind index U toggle-new
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
Copy and move mails
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
|
||||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
*** Pager (One mail opened)
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
bind pager k previous-line
|
|
||||||
bind pager j next-line
|
|
||||||
bind pager l view-attachments
|
|
||||||
|
|
||||||
# Display mode information
|
|
||||||
bind pager i display-toggle-weed
|
|
||||||
|
|
||||||
bind pager gg top
|
|
||||||
bind pager 0 top
|
|
||||||
|
|
||||||
bind pager G bottom
|
|
||||||
bind pager $ bottom
|
|
||||||
|
|
||||||
bind pager q exit
|
|
||||||
|
|
||||||
macro pager L "<pipe-message> urlscan<Enter>" "call urls
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
@ -617,12 +601,22 @@ Open mail with Vim
|
|||||||
macro index,pager V "<view-attachments><search>plain<enter><view-mailcap><exit>"
|
macro index,pager V "<view-attachments><search>plain<enter><view-mailcap><exit>"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src conf
|
||||||
|
bind index U toggle-new
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Labels
|
Labels
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager y edit-label
|
bind index,pager y edit-label
|
||||||
bind index,pager Y modify-labels
|
bind index,pager Y modify-labels
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Copy and move mails
|
||||||
|
#+BEGIN_SRC conf
|
||||||
|
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||||
|
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** Limit
|
*** Limit
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
bind index L limit
|
bind index L limit
|
||||||
@ -701,6 +695,8 @@ Write html emails using markdown
|
|||||||
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
|
||||||
|
|
||||||
|
@ -360,6 +360,9 @@ config.bind(';R', 'Org_Capture_hint')
|
|||||||
|
|
||||||
Screenshot of webpage to png
|
Screenshot of webpage to png
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
|
c.aliases['Save_PDF'] = 'spawn --userscript html-to-pdf.sh'
|
||||||
|
config.bind(',s', 'Save_PDF')
|
||||||
|
|
||||||
c.aliases['Save_PNG'] = 'spawn --userscript html-to-png.sh'
|
c.aliases['Save_PNG'] = 'spawn --userscript html-to-png.sh'
|
||||||
config.bind(',S', 'Save_PNG')
|
config.bind(',S', 'Save_PNG')
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -686,6 +689,17 @@ if [ -n "filename" ]; then
|
|||||||
fi
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Save to PDF
|
||||||
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-pdf.sh
|
||||||
|
filename=$(rofi -p "filename" -dmenu -lines 1)
|
||||||
|
|
||||||
|
if [ -n "$filename" ]; then
|
||||||
|
cd ~/Pictures/ && \
|
||||||
|
percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \
|
||||||
|
notify-send "Percollate" "Successfully saved to pdf"
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Get OTP number
|
** Get OTP number
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/get-otp.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/get-otp.sh
|
||||||
passname=$(ls ~/.password-store/totp-* | xargs -n 1 basename | sed -e 's/\..*$//' | rofi -p "TOPT" -dmenu)
|
passname=$(ls ~/.password-store/totp-* | xargs -n 1 basename | sed -e 's/\..*$//' | rofi -p "TOPT" -dmenu)
|
||||||
|
@ -169,7 +169,7 @@ nm-applet &
|
|||||||
Manually start =mopidy= as it seems to not start automatically:
|
Manually start =mopidy= as it seems to not start automatically:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
# Mopidy
|
# Mopidy
|
||||||
/usr/local/bin/mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
|
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 &
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Finally, run SXHKD for the key bindings:
|
Finally, run SXHKD for the key bindings:
|
||||||
|
Loading…
Reference in New Issue
Block a user