Change i3exit script to be compatible with bspwm.

Add camelcamelcamel binding to qutebrowser
This commit is contained in:
Thomas Dehaeze 2019-12-29 15:11:49 +01:00
parent 81cbe1bcfb
commit e0bb101455
4 changed files with 47 additions and 45 deletions

View File

@ -1,10 +1,10 @@
#+TITLE:Desktop file for the applications #+TITLE:Desktop file for the applications
* Neomutt * Neomutt
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/neomutt.desktop :header-args: :tangle ~/.local/share/applications/neomutt.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Name=Neomutt Name=Neomutt
@ -18,10 +18,10 @@
#+end_src #+end_src
* Zathura * Zathura
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/zathura.desktop :header-args: :tangle ~/.local/share/applications/zathura.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Version=1.0 Version=1.0
@ -36,10 +36,10 @@
#+end_src #+end_src
* Weechat * Weechat
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/weechat.desktop :header-args: :tangle ~/.local/share/applications/weechat.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Encoding=UTF-8 Encoding=UTF-8
@ -56,10 +56,10 @@
#+end_src #+end_src
* Matlab * Matlab
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/matlab.desktop :header-args: :tangle ~/.local/share/applications/matlab.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Version=1.0 Version=1.0
@ -75,10 +75,10 @@
#+end_src #+end_src
* Neovim * Neovim
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/nvim.desktop :header-args: :tangle ~/.local/share/applications/nvim.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Name=Neovim Name=Neovim
@ -95,10 +95,10 @@
#+end_src #+end_src
* TODO Transmission * TODO Transmission
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/transmission.desktop :header-args: :tangle ~/.local/share/applications/transmission.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
@ -107,10 +107,10 @@
Exec=/usr/bin/env transadd %U Exec=/usr/bin/env transadd %U
#+end_src #+end_src
* Images * Images
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/img.desktop :header-args: :tangle ~/.local/share/applications/img.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
@ -119,10 +119,10 @@
#+end_src #+end_src
* TODO RSS * TODO RSS
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/share/applications/rss.desktop :header-args: :tangle ~/.local/share/applications/rss.desktop
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application

View File

@ -464,29 +464,27 @@ mode=bookmarks main
#+begin_src bash #+begin_src bash
# with openrc use loginctl # with openrc use loginctl
[[ $(cat /proc/1/comm) == "systemd" ]] && logind=systemctl || logind=loginctl
case "$1" in case "$1" in
lock) lock)
~/scripts/lockscreen.sh ~/scripts/lockscreen.sh
;; ;;
logout) logout)
i3-msg exit loginctl terminate-session `loginctl session-status | head -n 1 | awk '{print $1}'`
;; ;;
switch_user) switch_user)
dm-tool switch-to-greeter dm-tool switch-to-greeter
;; ;;
suspend) suspend)
$logind suspend && ~/scripts/lockscreen.sh systemctl suspend && ~/scripts/lockscreen.sh
;; ;;
hibernate) hibernate)
$logind hibernate && ~/scripts/lockscreen.sh systemctl hibernate && ~/scripts/lockscreen.sh
;; ;;
reboot) reboot)
$logind reboot systemctl reboot
;; ;;
shutdown) shutdown)
$logind poweroff systemctl poweroff
;; ;;
,*) ,*)
echo "== ! i3exit: missing or invalid argument ! ==" echo "== ! i3exit: missing or invalid argument ! =="

View File

@ -937,11 +937,15 @@ c.url.start_pages = ['https://start.duckduckgo.com']
#+end_src #+end_src
*** Annotate with Hypothesis *** Annotate with Hypothesis
#+begin_src conf #+begin_src conf
config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();") config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();")
#+end_src #+end_src
*** See price in CamelCamelCamel
#+begin_src conf
config.bind(',P', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
#+end_src
* Userscripts * Userscripts
** Cast Youtube to Chromecast ** Cast Youtube to Chromecast
:PROPERTIES: :PROPERTIES:

View File

@ -1,11 +1,11 @@
#+TITLE: Scripts #+TITLE: Scripts
* Wallpapers * Wallpapers
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/scripts/wallpapers.sh :header-args: :tangle ~/scripts/wallpapers.sh
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash" :header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
#+begin_src bash #+begin_src bash
while true; do while true; do
nitrogen --set-zoom-fill --random ".wallpapers" nitrogen --set-zoom-fill --random ".wallpapers"