Compare commits

..

5 Commits

5 changed files with 207 additions and 502 deletions

View File

@ -316,6 +316,7 @@ 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

View File

@ -522,14 +522,8 @@ 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 and Pager *** Index (list of mails)
#+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
@ -537,17 +531,9 @@ 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"
@ -562,6 +548,36 @@ 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
@ -601,22 +617,12 @@ 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
@ -695,8 +701,6 @@ 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

View File

@ -360,9 +360,6 @@ 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
@ -689,17 +686,6 @@ 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)

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: Manually start =mopidy= as it seems to not start automatically:
#+begin_src bash #+begin_src bash
# Mopidy # Mopidy
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null 2>&1 & /usr/local/bin/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: