diff --git a/awesome/init.fnl b/awesome/init.fnl index 1270fae..4031608 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -138,7 +138,7 @@ (fn [s] ;; Each screen has its own tag table. - (awful.tag [ "1" "2" "3" "4" "5" "6" "7" "8" "9" ] s (. awful.layout.layouts 1)) + (awful.tag [ "  " "  " "  " "  " ] s (. awful.layout.layouts 1)) ;; Create a promptbox for each screen (set s.mypromptbox (awful.widget.prompt)) @@ -383,6 +383,7 @@ (awful.button [modkey] 3 (fn [c] (: c :activate {:context "mouse_click" :action "mouse_resize"}))) ]))) + ;; Set keys (root.keys keybindings.globalkeys) diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index afa8503..3400603 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -120,47 +120,153 @@ "pactl set-source-mute @DEFAULT_SOURCE@ toggle")) {:description "Mute microphone" :group "audio"}) + ;; Because I don't know much fennel yet I'm doing each one individually + ;; View tags only. + (awful.key [ modkey ] "1" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 1)] + (when tag + (: tag :view_only)))) + {:description "view tag #1" :group "tag"}) + (awful.key [ modkey ] "2" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 2)] + (when tag + (: tag :view_only)))) + {:description "view tag #2" :group "tag"}) + (awful.key [ modkey ] "3" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 3)] + (when tag + (: tag :view_only)))) + {:description "view tag #3" :group "tag"}) + (awful.key [ modkey ] "4" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 4)] + (when tag + (: tag :view_only)))) + {:description "view tag #4" :group "tag"}) + (awful.key [] "XF86Tools" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 1)] + (when tag + (: tag :view_only)))) + {:description "view tag #1" :group "tag"}) + (awful.key [] "XF86Launch5" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 2)] + (when tag + (: tag :view_only)))) + {:description "view tag #2" :group "tag"}) + (awful.key [] "XF86Launch6" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 3)] + (when tag + (: tag :view_only)))) + {:description "view tag #3" :group "tag"}) + (awful.key [] "XF86Launch7" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 4)] + (when tag + (: tag :view_only)))) + {:description "view tag #4" :group "tag"}) + ;; Move client to tag + (awful.key [ modkey shift ] "1" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 1)] + (when tag + (: client.focus :move_to_tag tag))))) + {:description "move focused client to tag #1" :group "tag"}) + (awful.key [ modkey shift ] "2" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 2)] + (when tag + (: client.focus :move_to_tag tag))))) + {:description "move focused client to tag #2" :group "tag"}) + (awful.key [ modkey shift ] "3" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 3)] + (when tag + (: client.focus :move_to_tag tag))))) + {:description "move focused client to tag #3" :group "tag"}) + (awful.key [ modkey shift ] "4" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 4)] + (when tag + (: client.focus :move_to_tag tag))))) + {:description "move focused client to tag #4" :group "tag"}) + ;; Toggle tag display. Not working yet, can't pinpoint the problem. + (awful.key [ modkey ctrl ] "1" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 1)] + (when tag + (awful.tag.viewtoggle)))) + {:description "toggle tag #1" :group "tag"}) + (awful.key [ modkey ctrl ] "2" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 2)] + (when tag + (awful.tag.viewtoggle)))) + {:description "toggle tag #2" :group "tag"}) + (awful.key [ modkey ctrl ] "3" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 3)] + (when tag + (awful.tag.viewtoggle)))) + {:description "toggle tag #3" :group "tag"}) + (awful.key [ modkey ctrl ] "4" + (fn [] + (let [screen (awful.screen.focused) + tag (. screen.tags 4)] + (when tag + (awful.tag.viewtoggle)))) + {:description "toggle tag #4" :group "tag"}) + ;; Toggle tag on focused client. + (awful.key [ modkey ctrl shift ] "1" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 1)] + (when tag + (: client.focus :toggle_tag tag))))) + {:description "toggle focused client on tag #1" :group "tag"}) + (awful.key [ modkey ctrl shift ] "2" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 2)] + (when tag + (: client.focus :toggle_tag tag))))) + {:description "toggle focused client on tag #2" :group "tag"}) + (awful.key [ modkey ctrl shift ] "3" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 3)] + (when tag + (: client.focus :toggle_tag tag))))) + {:description "toggle focused client on tag #3" :group "tag"}) + (awful.key [ modkey ctrl shift ] "4" + (fn [] + (when client.focus + (let [tag (. client.focus.screen.tags 4)] + (when tag + (: client.focus :toggle_tag tag))))) + {:description "toggle focused client on tag #4" :group "tag"}) ) - ;; ;; Bind all key numbers to tags. - ;; ;; Be careful: we use keycodes to make it work on any keyboard layout. - ;; ;; This should map on the top row of your keyboard, usually 1 to 9. - ;; (for [i 1 9] - ;; (global globalkeys - ;; (gears.table.join - ;; globalkeys - ;; ;; View tag only. - ;; (awful.key [ modkey ] (.. "#" (+ i 9)) - ;; (fn [] - ;; (let [screen (awful.screen.focused) - ;; tag (. screen.tags i)] - ;; (when tag - ;; (: tag :view_only)))) - ;; {:description (.. "view tag #" i) :group "tag"}) - ;; ;; Toggle tag display - ;; (awful.key [ modkey ctrl ] (.. "#" (+ i 9)) - ;; (fn [] - ;; (let [screen (awful.screen.focused) - ;; tag (. screen.tags i)] - ;; (when tag - ;; (awful.tag.viewtoggle)))) - ;; {:description (.. "toggle tag #" i) :group "tag"}) - ;; ;; Move client to tag - ;; (awful.key [ modkey shift ] (.. "#" (+ i 9)) - ;; (fn [] - ;; (when client.focus - ;; (let [tag (. client.focus.screen.tags i)] - ;; (when tag - ;; (: client.focus :move_to_tag tag))))) - ;; {:description (.. "move focused client to tag #" i) :group "tag"}) - ;; ;; Toggle tag on focused client. - ;; (awful.key [ modkey ctrl shift ] (.. "#" (+ i 9)) - ;; (fn [] - ;; (when client.focus - ;; (let [tag (. client.focus.screen.tags i)] - ;; (when tag - ;; (: client.focus :toggle_tag tag))))) - ;; {:description (.. "toggle focused client on tag #" i) :group "tag"})))) :clientkeys (gears.table.join (awful.key [ modkey ] "f" (fn [c] (set c.fullscreen (not c.fullscreen)) (: c :raise)) diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index fabd1e2..50c969c 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -8,3 +8,4 @@ config_version: 2 settings: content.notifications: https://linuxmc.hopto.org: true + https://www.reddit.com: false diff --git a/qutebrowser/config.py b/qutebrowser/config.py index ce35a7d..b4d2d8e 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1007,7 +1007,7 @@ c.content.dns_prefetch = True ## qutebrowser asks websites to not track your identity. If set to null, ## the DNT header is not sent at all. ## Type: Bool -# c.content.headers.do_not_track = True +c.content.headers.do_not_track = True ## When to send the Referer header. The Referer header tells websites ## from which website you were coming from when visiting them. No restart @@ -2075,7 +2075,11 @@ c.tabs.title.alignment = 'center' ## the search engine name to the search term, e.g. `:open google ## qutebrowser`. ## Type: Dict -c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', 'yt': 'https://yewtu.be/search?q={}', 'mel': 'https://melpa.org/#/?q={}', 'y': 'https://www.youtube.com/results?search_query={}'} +c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', + 'yt': 'https://yewtu.be/search?q={}', + 'mel': 'https://melpa.org/#/?q={}', + 'y': 'https://www.youtube.com/results?search_query={}', + 'aw': 'https://wiki.archlinux.org/index.php?search={}'} ## Page(s) to open at the start. ## Type: List of FuzzyUrl, or FuzzyUrl @@ -2204,7 +2208,7 @@ config.bind('J', 'tab-prev') # config.bind('b', 'set-cmd-text -s :quickmark-load') # config.bind('cd', 'download-clear') # config.bind('co', 'tab-only') -# config.bind('d', 'tab-close') +config.bind('d', 'close') # config.bind('f', 'hint') # config.bind('g$', 'tab-focus -1') # config.bind('g0', 'tab-focus 1') @@ -2301,6 +2305,7 @@ config.bind('J', 'tab-prev') # config.bind('}}', 'navigate next -t') config.bind('v', 'hint links spawn --detach mpv --force-window yes {hint-url}') config.bind('gv', 'spawn --detach mpv --force-window yes {url}') +config.bind('gV', 'hint links spawn alacritty -e youtube-dl -o ~/Videos/%(title)s-%(id)s.%(ext)s {hint-url}') ## Bindings for caret mode # config.bind('$', 'move-to-end-of-line', mode='caret') diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index cf7dc45..6f3d9a0 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -4,3 +4,5 @@ ama https://smile.amazon.com/ azu https://portal.azure.com/#@tfcconnection.org/dashboard/private/e5f3455d-3737-47d8-852b-1847a3b4801b ac https://azure-costs.com/app/teams/personal/dashboards?active=e47b9bb7-1701-400e-9cbd-195c9cfda2c2&cycle=monthly remind https://www.remind.com/classes/4223h9/messages/stream/d7938995-96c4-495d-95f5-97cdaf48e15a +awe https://awesomewm.org/apidoc/index.html +y https://www.youtube.com/