Change i3exit script to be compatible with bspwm.
Add camelcamelcamel binding to qutebrowser
This commit is contained in:
parent
81cbe1bcfb
commit
e0bb101455
@ -464,29 +464,27 @@ mode=bookmarks main
|
||||
|
||||
#+begin_src bash
|
||||
# with openrc use loginctl
|
||||
[[ $(cat /proc/1/comm) == "systemd" ]] && logind=systemctl || logind=loginctl
|
||||
|
||||
case "$1" in
|
||||
lock)
|
||||
~/scripts/lockscreen.sh
|
||||
;;
|
||||
logout)
|
||||
i3-msg exit
|
||||
loginctl terminate-session `loginctl session-status | head -n 1 | awk '{print $1}'`
|
||||
;;
|
||||
switch_user)
|
||||
dm-tool switch-to-greeter
|
||||
;;
|
||||
suspend)
|
||||
$logind suspend && ~/scripts/lockscreen.sh
|
||||
systemctl suspend && ~/scripts/lockscreen.sh
|
||||
;;
|
||||
hibernate)
|
||||
$logind hibernate && ~/scripts/lockscreen.sh
|
||||
systemctl hibernate && ~/scripts/lockscreen.sh
|
||||
;;
|
||||
reboot)
|
||||
$logind reboot
|
||||
systemctl reboot
|
||||
;;
|
||||
shutdown)
|
||||
$logind poweroff
|
||||
systemctl poweroff
|
||||
;;
|
||||
,*)
|
||||
echo "== ! i3exit: missing or invalid argument ! =="
|
||||
|
@ -937,11 +937,15 @@ c.url.start_pages = ['https://start.duckduckgo.com']
|
||||
#+end_src
|
||||
|
||||
*** Annotate with Hypothesis
|
||||
|
||||
#+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)})();")
|
||||
#+end_src
|
||||
|
||||
*** See price in CamelCamelCamel
|
||||
#+begin_src conf
|
||||
config.bind(',P', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
|
||||
#+end_src
|
||||
|
||||
* Userscripts
|
||||
** Cast Youtube to Chromecast
|
||||
:PROPERTIES:
|
||||
|
Loading…
Reference in New Issue
Block a user