Compare commits

..

5 Commits

3 changed files with 34 additions and 15 deletions

View File

@ -204,8 +204,8 @@ Finish up
consult-eglot
all-the-icons-completion
helpful
;; vterm
eat
vterm
;; eat
;; Enhancements
olivetti
doom-modeline
@ -539,7 +539,7 @@ Ligatures... are they that useful?
(setq-default line-spacing 5)
(setq indent-line-function #'indent-relative)
(set-default 'truncate-lines t)
(set-default 'truncate-lines nil)
;; (add-hook 'before-save-hook 'whitespace-cleanup)
#+end_src
** Text Editor
@ -895,8 +895,10 @@ Fill region is great, except when you don't need it...
(kbd "SPC br") 'joe/revert-buffer-no-confirm
(kbd "SPC gg") 'magit-status
(kbd "SPC gc") 'magit-clone
(kbd "SPC ss") 'eat
(kbd "SPC sv") 'eat-other-window
;; (kbd "SPC ss") 'eat
;; (kbd "SPC sv") 'eat-other-window
(kbd "SPC ss") 'joe/vterm-here
(kbd "SPC sv") 'vterm-other-window
(kbd "SPC Ba") 'joe/bookmark-set-and-save
(kbd "SPC Bd") 'bookmark-delete
(kbd "SPC mr") 'joe/compile-run
@ -1825,6 +1827,10 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
(dired-up-directory)
(dirvish-dwim)))
(setq dired-omit-files "\\`[.]?#\\|\\`[.][.]?\\|\\.meta$")
(add-hook 'dired-mode-hook #'dired-omit-mode)
(when (boundp 'evil-mode)
(evil-define-key 'normal joe/evil-space-mode-map (kbd "-") #'joe/dirvish-up-dwim))
(global-set-key (kbd "C-x d") #'dirvish-dwim)
@ -1995,7 +2001,7 @@ be kept here commented out in case we want to try it again.
(global-set-key (kbd "C-h C") #'helpful-command)
#+end_src
** Terminals/Shells
*** COMMENT vterm
*** vterm
#+begin_src emacs-lisp
(require 'vterm)
(setq vterm-shell "/bin/fish")
@ -2018,8 +2024,8 @@ be kept here commented out in case we want to try it again.
(with-current-buffer vterm-buf
(setq popper-popup-status 'raised))))
(global-set-key (kbd "C-c t") #'vterm)
(global-set-key (kbd "C-c T") #'joe/vterm-here)
;; (global-set-key (kbd "C-c t") #'vterm)
;; (global-set-key (kbd "C-c T") #'joe/vterm-here)
;; (setq explicit-shell-file-name "~/Development/fell/fell")
(add-hook 'shell-mode (lambda () (setq-local global-hl-line-mode nil)))
(setq shell-kill-buffer-on-exit t)
@ -2027,8 +2033,8 @@ be kept here commented out in case we want to try it again.
(defun joe/vterm-mode-hook ()
(define-key vterm-mode-map (kbd "C-c C-x") #'vterm-send-C-x)
(when (boundp 'evil-mode)
(evil-define-key 'insert vterm-mode-map (kbd "C-f") #'vterm-send-C-f)
(evil-define-key 'insert vterm-mode-map (kbd "C-w") #'vterm-send-C-w)
(evil-define-key 'insert vterm-mode-map (kbd "C-f") (lambda () (interactive) (vterm-send-key (kbd "C-f"))))
(evil-define-key 'insert vterm-mode-map (kbd "C-w") (lambda () (interactive) (vterm-send-key (kbd "C-w"))))
(evil-define-key 'insert vterm-mode-map (kbd "<delete>") #'vterm-send-delete))
(setq-local global-hl-line-mode nil)
(setq buffer-face-mode-face '(:family "Fira Code Nerd Font"))
@ -2044,8 +2050,9 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i
;; (add-hook 'emacs-startup-hook (lambda () (require 'vterm)))
#+end_src
This bit of code is to achieve a vterm scratchpad. In order to know I'm closing
the right frame, I'm going to use the frame's name to close and remove the hook
This bit of code is to achieve a vterm scratchpad for my window manager. In
order to know I'm closing the right frame, I'm going to use the frame's name to
close and remove the hook
#+begin_src emacs-lisp
(defun vterm--set-title (title)
@ -2080,7 +2087,7 @@ the right frame, I'm going to use the frame's name to close and remove the hook
(add-hook 'delete-frame-functions #'joe/kill-vterm-scratch)
(add-hook 'kill-buffer-hook #'joe/kill-frame))))
#+end_src
*** eat
*** COMMENT eat
#+begin_src emacs-lisp
(defun joe/eat-mode-hook ()
(setq-local global-hl-line-mode nil)

View File

@ -11,8 +11,6 @@ overload_tap_timeout = 250
esc = capslock
capslock = overload(control, esc)
rightalt = layer(rightalt)
rightcontrol = overload(hyper, rightcontrol)
leftcontrol = overload(hyper, leftcontrol)
[hyper:C-M-S-A]

View File

@ -74,6 +74,9 @@ def toggle_language(qtile):
qtile.spawn("setxkbmap -layout us -variant altgr-intl")
current_language[0] = "en"
def get_current_window_info(qtile):
logger.warning(qtile.current_window.info())
keys = [
# A list of available commands that can be bound to keys can be found
@ -121,6 +124,7 @@ keys = [
Key([mod, "shift"], "comma", lazy.prev_screen(), desc="Move focus to left screen"),
Key([mod, "shift"], "period", lazy.next_screen(), desc="Move focus to left screen"),
Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod, "control"], "w", lazy.function(get_current_window_info), desc="Get window info"),
Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"),
# TODO: Figure out another binding for this
@ -350,6 +354,8 @@ floating_layout = layout.Floating(
Match(wm_class="makebranch"), # gitk
Match(wm_class="maketag"), # gitk
Match(wm_class="ssh-askpass"), # ssh-askpass
Match(title="SimpleScreenRecorder"), # ssh-askpass
# Godot
Match(title="Alert!"),
Match(title="Please Confirm..."),
Match(title="Create New Node"),
@ -359,6 +365,14 @@ floating_layout = layout.Floating(
Match(title="Save Scene As..."),
Match(title="branchdialog"), # gitk
Match(title="pinentry"), # GPG key password entry
# Unity3D
Match(title="UnityEditor.AddComponent.AddComponentWindow"),
Match(title="UnityEditor.IconSelector"),
Match(title="UnityEditor.PopupWindow"),
Match(title="UnityEditor.PopupWindowWithoutFocus"),
Match(wm_class="Unity", title="Select Material"),
Match(wm_class="Unity", title="Color"),
# Match(wm_class="Unity", title="Select Material"),
]
)
auto_fullscreen = True