From 10eeb3efc83b46745de4e287ba770ee48f96d1be Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 6 Feb 2022 21:49:13 +0100 Subject: [PATCH] Change closing last tab behavior --- qutebrowser.org | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/qutebrowser.org b/qutebrowser.org index b196b98..e3e95f0 100644 --- a/qutebrowser.org +++ b/qutebrowser.org @@ -130,7 +130,7 @@ c.tabs.background = True c.tabs.close_mouse_button = 'right' # How to behave when the last tab is closed. -c.tabs.last_close = 'close' +c.tabs.last_close = 'ignore' # Switch between tabs using the mouse wheel. c.tabs.mousewheel_switching = False @@ -172,8 +172,8 @@ c.url.searchengines = { 'go': 'https://www.google.com/search?q={}', 'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=', 'gm': 'https://www.google.com/maps/search/{}/', - 'yt': 'https://www.youtube.com/results?search_query={}', 'gh': 'https://github.com/search?q={}', + 'yt': 'https://www.youtube.com/results?search_query={}', 're': 'https://www.reddit.com/search?q={}', 'lb': 'http://gen.lib.rus.ec/search.php?req={}', 'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}', @@ -262,12 +262,19 @@ config.bind('gf', 'open -t https://rss.tdehaeze.xyz/') config.bind('gr', 'open -t https://www.reddit.com/') config.bind('gh', 'open -t https://homer.tdehaeze.xyz/') +config.bind('ge', 'open -t http://intranet.esrf.fr/') +config.bind('gc', 'open -t https://calendar.esrf.fr/') config.bind('gb', 'open -t qute://bookmarks') config.bind('gH', 'open -t qute://history') config.bind('gs', 'open -t qute://settings') #+end_src +Quit. +#+begin_src python +config.bind('D', 'close') +#+end_src + * Custom Bindings Create a Password for the current website #+begin_src python @@ -668,7 +675,7 @@ filename=$(rofi -p "filename" -dmenu -lines 1) if [ -n "filename" ]; then cd ~/Pictures/ && \ firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL" && \ - dunstify "Screenshot" "Taken successfully" + notify-send "Screenshot" "Taken successfully" fi #+end_src