Change closing last tab behavior

This commit is contained in:
Thomas Dehaeze 2022-02-06 21:49:13 +01:00
parent d27cb83bb3
commit 10eeb3efc8

View File

@ -130,7 +130,7 @@ c.tabs.background = True
c.tabs.close_mouse_button = 'right' c.tabs.close_mouse_button = 'right'
# How to behave when the last tab is closed. # 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. # Switch between tabs using the mouse wheel.
c.tabs.mousewheel_switching = False c.tabs.mousewheel_switching = False
@ -172,8 +172,8 @@ c.url.searchengines = {
'go': 'https://www.google.com/search?q={}', 'go': 'https://www.google.com/search?q={}',
'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=', 'gc': 'https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q={}&btnG=',
'gm': 'https://www.google.com/maps/search/{}/', 'gm': 'https://www.google.com/maps/search/{}/',
'yt': 'https://www.youtube.com/results?search_query={}',
'gh': 'https://github.com/search?q={}', 'gh': 'https://github.com/search?q={}',
'yt': 'https://www.youtube.com/results?search_query={}',
're': 'https://www.reddit.com/search?q={}', 're': 'https://www.reddit.com/search?q={}',
'lb': 'http://gen.lib.rus.ec/search.php?req={}', 'lb': 'http://gen.lib.rus.ec/search.php?req={}',
'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}', '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('gr', 'open -t https://www.reddit.com/')
config.bind('gh', 'open -t https://homer.tdehaeze.xyz/') 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('gb', 'open -t qute://bookmarks')
config.bind('gH', 'open -t qute://history') config.bind('gH', 'open -t qute://history')
config.bind('gs', 'open -t qute://settings') config.bind('gs', 'open -t qute://settings')
#+end_src #+end_src
Quit.
#+begin_src python
config.bind('D', 'close')
#+end_src
* Custom Bindings * Custom Bindings
Create a Password for the current website Create a Password for the current website
#+begin_src python #+begin_src python
@ -668,7 +675,7 @@ filename=$(rofi -p "filename" -dmenu -lines 1)
if [ -n "filename" ]; then if [ -n "filename" ]; then
cd ~/Pictures/ && \ cd ~/Pictures/ && \
firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL" && \ firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL" && \
dunstify "Screenshot" "Taken successfully" notify-send "Screenshot" "Taken successfully"
fi fi
#+end_src #+end_src