mirror of https://github.com/deuill/dotfiles.git
Add mouse keys for Sway, fix Doom issues
This commit is contained in:
parent
333981341a
commit
e605313e77
|
@ -82,9 +82,10 @@
|
|||
;;; Package-specific configuration.
|
||||
;;;
|
||||
|
||||
(set-popup-rule! "^\\*doom:scratch" :side 'right :select t :quit 'other :slot 0 :width (+ fill-column 4))
|
||||
|
||||
(setq-default shell-file-name "/usr/bin/fish"
|
||||
doom-scratch-initial-major-mode 'text-mode)
|
||||
(set-popup-rule! "^\\*doom:scratch" :side 'right :select t :quit 'other :slot 0 :width (+ fill-column 4))
|
||||
|
||||
(after! dash-docs
|
||||
(setq dash-docs-docsets-path "~/.local/share/docsets"
|
||||
|
@ -96,9 +97,6 @@
|
|||
(defun deft () (interactive)(+custom/deft-popup))
|
||||
(set-popup-rule! "^\\*Deft\\*" :side 'right :select t :quit 'other :slot 0 :width (+ fill-column 4)))
|
||||
|
||||
(after! docker-tramp
|
||||
(setq docker-tramp-use-names t))
|
||||
|
||||
(after! evil
|
||||
;; Transpose lines with J/K when in visual mode.
|
||||
(define-key evil-visual-state-map "J" (concat ":m '>+1" (kbd "RET") "gv=gv"))
|
||||
|
@ -106,7 +104,7 @@
|
|||
|
||||
(after! eshell
|
||||
(setq eshell-banner-message "")
|
||||
(set-popup-rule! "^\\*eshell\\*" :vslot -5 :select t :modeline nil :quit nil :ttl nil))
|
||||
(set-popup-rule! "^\\*eshell\\*" :vslot -5 :select t :modeline nil :quit nil :ttl nil :height 0.25))
|
||||
|
||||
(after! eww
|
||||
(setq shr-use-fonts t
|
||||
|
@ -218,7 +216,7 @@
|
|||
(define-key transient-sticky-map (kbd "<escape>") 'transient-quit-seq))
|
||||
|
||||
(after! vterm
|
||||
(set-popup-rule! "^\\*vterm\\*" :vslot -5 :select t :modeline nil :quit nil :ttl nil))
|
||||
(set-popup-rule! "^\\*vterm\\*" :vslot -5 :select t :modeline nil :quit nil :ttl nil :height 0.25))
|
||||
|
||||
(after! (:or man woman)
|
||||
(set-popup-rule! "^\\*\\(?:Wo\\)?Man " :side 'right :select t :quit 'current :slot 0 :width (+ fill-column 4)))
|
||||
|
@ -383,6 +381,7 @@
|
|||
|
||||
(:prefix "f"
|
||||
"c" nil
|
||||
:desc "Copy this file" "C" #'+custom/copy-this-file
|
||||
:desc "Find file as root" "e" #'doom/sudo-find-file
|
||||
:desc "Open current file as root" "E" #'doom/sudo-this-file
|
||||
"l" nil
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
(defun +sql/set-product ()
|
||||
"Set dialect-specific highlighting for buffer"
|
||||
(interactive)
|
||||
(cond ((featurep! :completion ivy)
|
||||
(cond ((modulep! :completion ivy)
|
||||
(ivy-read "SQL products: "
|
||||
(+sql--get-product-names +sql--startable-product-list)
|
||||
:require-match t
|
||||
|
|
|
@ -9,11 +9,9 @@
|
|||
spell
|
||||
|
||||
:ui
|
||||
deft
|
||||
doom
|
||||
hl-todo
|
||||
hydra
|
||||
ligatures
|
||||
modeline
|
||||
nav-flash
|
||||
ophints
|
||||
|
|
|
@ -20,6 +20,7 @@ set {
|
|||
set {
|
||||
$resize "Resize Window"
|
||||
$session "Session: Ⓢ Suspend, Ⓛ Logout, Ⓡ Reboot, Ⓟ Power off"
|
||||
$mousekeys "Mouse Keys: Ⓖ Grid, Ⓗ Hint, Ⓝ Normal"
|
||||
}
|
||||
|
||||
# Application aliases.
|
||||
|
@ -220,6 +221,7 @@ bindsym --to-code {
|
|||
|
||||
# Modes.
|
||||
$mod+r mode $resize
|
||||
$mod+g mode $mousekeys
|
||||
$mod+Shift+q mode $session
|
||||
}
|
||||
|
||||
|
@ -290,6 +292,16 @@ mode $session bindsym --to-code {
|
|||
Escape mode "default"
|
||||
}
|
||||
|
||||
mode $mousekeys bindsym --to-code {
|
||||
h exec warpd --hint, mode "default"
|
||||
g exec warpd --grid, mode "default"
|
||||
n exec warpd --normal, mode "default"
|
||||
|
||||
# Back to normal mode: Enter or Escape
|
||||
Return mode "default"
|
||||
Escape mode "default"
|
||||
}
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue