Making workspaces work for spaces...
This commit is contained in:
		
							parent
							
								
									08c840c47f
								
							
						
					
					
						commit
						90d027a5dd
					
				
					 5 changed files with 159 additions and 45 deletions
				
			
		| 
						 | 
					@ -138,7 +138,7 @@
 | 
				
			||||||
 (fn [s]
 | 
					 (fn [s]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   ;; Each screen has its own tag table.
 | 
					   ;; 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
 | 
					   ;; Create a promptbox for each screen
 | 
				
			||||||
   (set s.mypromptbox (awful.widget.prompt))
 | 
					   (set s.mypromptbox (awful.widget.prompt))
 | 
				
			||||||
| 
						 | 
					@ -383,6 +383,7 @@
 | 
				
			||||||
                                                                     (awful.button [modkey] 3 (fn [c] (: c :activate {:context "mouse_click" :action "mouse_resize"})))
 | 
					                                                                     (awful.button [modkey] 3 (fn [c] (: c :activate {:context "mouse_click" :action "mouse_resize"})))
 | 
				
			||||||
                                                                     ])))
 | 
					                                                                     ])))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Set keys
 | 
					;; Set keys
 | 
				
			||||||
(root.keys keybindings.globalkeys)
 | 
					(root.keys keybindings.globalkeys)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -120,47 +120,153 @@
 | 
				
			||||||
                                                                  "pactl set-source-mute @DEFAULT_SOURCE@ toggle"))
 | 
					                                                                  "pactl set-source-mute @DEFAULT_SOURCE@ toggle"))
 | 
				
			||||||
                                {:description "Mute microphone" :group "audio"})
 | 
					                                {: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
 | 
					        :clientkeys (gears.table.join
 | 
				
			||||||
                     (awful.key [ modkey ] "f" (fn [c] (set c.fullscreen (not c.fullscreen)) (: c :raise))
 | 
					                     (awful.key [ modkey ] "f" (fn [c] (set c.fullscreen (not c.fullscreen)) (: c :raise))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,5 +6,5 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config_version: 2
 | 
					config_version: 2
 | 
				
			||||||
settings:
 | 
					settings:
 | 
				
			||||||
  colors.webpage.darkmode.enabled:
 | 
					  content.notifications:
 | 
				
			||||||
    global: true
 | 
					    https://www.reddit.com: false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1007,7 +1007,7 @@ c.content.dns_prefetch = True
 | 
				
			||||||
## qutebrowser asks websites to not track your identity. If set to null,
 | 
					## qutebrowser asks websites to not track your identity. If set to null,
 | 
				
			||||||
## the DNT header is not sent at all.
 | 
					## the DNT header is not sent at all.
 | 
				
			||||||
## Type: Bool
 | 
					## 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
 | 
					## When to send the Referer header. The Referer header tells websites
 | 
				
			||||||
## from which website you were coming from when visiting them. No restart
 | 
					## 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
 | 
					## the search engine name to the search term, e.g. `:open google
 | 
				
			||||||
## qutebrowser`.
 | 
					## qutebrowser`.
 | 
				
			||||||
## Type: Dict
 | 
					## 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.
 | 
					## Page(s) to open at the start.
 | 
				
			||||||
## Type: List of FuzzyUrl, or FuzzyUrl
 | 
					## 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('b', 'set-cmd-text -s :quickmark-load')
 | 
				
			||||||
# config.bind('cd', 'download-clear')
 | 
					# config.bind('cd', 'download-clear')
 | 
				
			||||||
# config.bind('co', 'tab-only')
 | 
					# config.bind('co', 'tab-only')
 | 
				
			||||||
# config.bind('d', 'tab-close')
 | 
					config.bind('d', 'close')
 | 
				
			||||||
# config.bind('f', 'hint')
 | 
					# config.bind('f', 'hint')
 | 
				
			||||||
# config.bind('g$', 'tab-focus -1')
 | 
					# config.bind('g$', 'tab-focus -1')
 | 
				
			||||||
# config.bind('g0', '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('}}', 'navigate next -t')
 | 
				
			||||||
config.bind('v', 'hint links spawn --detach mpv --force-window yes {hint-url}')
 | 
					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', '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
 | 
					## Bindings for caret mode
 | 
				
			||||||
# config.bind('$', 'move-to-end-of-line', mode='caret')
 | 
					# config.bind('$', 'move-to-end-of-line', mode='caret')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,3 +3,5 @@ sp https://tfcconnection.sharepoint.com/sites/TeensForChrist/Shared%20Documents/
 | 
				
			||||||
ama https://smile.amazon.com/
 | 
					ama https://smile.amazon.com/
 | 
				
			||||||
azu https://portal.azure.com/#@tfcconnection.org/dashboard/private/e5f3455d-3737-47d8-852b-1847a3b4801b
 | 
					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
 | 
					ac https://azure-costs.com/app/teams/personal/dashboards?active=e47b9bb7-1701-400e-9cbd-195c9cfda2c2&cycle=monthly
 | 
				
			||||||
 | 
					awe https://awesomewm.org/apidoc/index.html
 | 
				
			||||||
 | 
					y https://www.youtube.com/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue