Compare commits

..

No commits in common. "a5c696d860d00db535dca079677f356ef851d239" and "aae57a4654bdeadc66756861ba11af7d8012e3ac" have entirely different histories.

5 changed files with 502 additions and 207 deletions

View File

@ -316,7 +316,6 @@ PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
PATH=$GOPATH:$GOPATH/bin:$PATH
PATH=~/.config/emacs/bin:$PATH
PATH=~/.local/bin:$PATH
PATH=~/.local/bin/nvim/bin:$PATH
PATH=~/.npm-global/bin:$PATH
PATH=~/miniconda3/bin:$PATH
export PATH

View File

@ -522,8 +522,14 @@ bind generic,index,pager \Ce next-line
bind generic,index,pager \Cy previous-line
#+end_src
*** Index (list of mails)
#+begin_src conf
*** Index and Pager
#+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,pager K previous-entry
@ -531,9 +537,17 @@ bind index,pager J next-entry
bind index l 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"
bind pager h exit
bind pager q exit
macro index c "<change-folder>?<toggle-mailboxes>" "change folder"
@ -548,36 +562,6 @@ bind index,pager @ compose-to-sender
macro index \Cr \
"<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" \
"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
#+begin_src conf
@ -617,12 +601,22 @@ Open mail with Vim
macro index,pager V "<view-attachments><search>plain<enter><view-mailcap><exit>"
#+end_src
#+begin_src conf
bind index U toggle-new
#+end_src
Labels
#+BEGIN_SRC conf
bind index,pager y edit-label
bind index,pager Y modify-labels
#+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
#+begin_src conf
bind index L limit
@ -701,6 +695,8 @@ Write html emails using markdown
bind browser l select-entry
macro browser h "<top-page><select-entry>"
bind browser t tag-entry
bind browser q exit
#+end_src

View File

@ -360,6 +360,9 @@ config.bind(';R', 'Org_Capture_hint')
Screenshot of webpage to png
#+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'
config.bind(',S', 'Save_PNG')
#+end_src
@ -686,6 +689,17 @@ if [ -n "filename" ]; then
fi
#+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
#+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)

632
vim.org

File diff suppressed because it is too large Load Diff

View File

@ -169,7 +169,7 @@ nm-applet &
Manually start =mopidy= as it seems to not start automatically:
#+begin_src bash
# 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
Finally, run SXHKD for the key bindings: