mirror of https://github.com/deuill/dotfiles.git
Update configuration for Doom, Sway
This commit is contained in:
parent
20240c603c
commit
dba97fd935
|
@ -1,6 +1,6 @@
|
|||
window:
|
||||
decorations: none
|
||||
gtk_theme_variant: dark
|
||||
decorations_theme_variant: dark
|
||||
padding:
|
||||
x: 10
|
||||
y: 10
|
||||
|
|
|
@ -26,10 +26,11 @@
|
|||
doom-theme 'doom-monokai-pro
|
||||
|
||||
;; Font definitions.
|
||||
doom-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
doom-big-font (font-spec :family "Iosevka" :size 28 :weight 'light)
|
||||
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 22 :weight 'light)
|
||||
doom-unicode-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
doom-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
doom-big-font (font-spec :family "Iosevka" :size 28 :weight 'light)
|
||||
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 22 :weight 'light)
|
||||
doom-serif-font (font-spec :family "IBM Plex Serif" :size 22 :weight 'light)
|
||||
doom-unicode-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
|
||||
;; Column used as limit for various modes.
|
||||
fill-column 100
|
||||
|
@ -109,6 +110,9 @@
|
|||
(defun shr-add-font (start end type) (+custom/shr-add-font start end type))
|
||||
(set-popup-rule! "^\\*eww\\*" :side 'right :select t :quit 'nil :slot 0 :width (+ fill-column 4)))
|
||||
|
||||
(after! info
|
||||
(set-popup-rule! "^\\*info\\*" :side 'right :select t :quit 'current :slot 0 :width (+ fill-column 4)))
|
||||
|
||||
(after! (json-mode evil)
|
||||
(evil-define-key 'normal json-mode-map (kbd "<tab>") 'evil-toggle-fold))
|
||||
|
||||
|
@ -119,10 +123,6 @@
|
|||
(load-library "kubernetes-evil")
|
||||
(set-popup-rule! "^\\*kubernetes" :ignore t))
|
||||
|
||||
(after! kubel
|
||||
(load-library "kubel-evil")
|
||||
(set-popup-rule! "^\\*kubel" :side 'right :select t :quit 'current :slot 0 :width 0.5))
|
||||
|
||||
(after! lsp-mode
|
||||
(setq lsp-auto-guess-root t
|
||||
lsp-enable-file-watchers nil
|
||||
|
@ -213,7 +213,7 @@
|
|||
(set-popup-rule! "^\\*vterm\\*" :vslot -5 :size 0.35 :select t :modeline nil :quit nil :ttl nil))
|
||||
|
||||
(after! (:or man woman)
|
||||
(set-popup-rule! "^\\*\\(?:Wo\\)?Man " :side 'right :select t :quit 'current :slot 0 :width 0.5))
|
||||
(set-popup-rule! "^\\*\\(?:Wo\\)?Man " :side 'right :select t :quit 'current :slot 0 :width (+ fill-column 4)))
|
||||
|
||||
(after! writeroom-mode
|
||||
(setq writeroom-width 100
|
||||
|
@ -260,6 +260,9 @@
|
|||
(add-hook! 'go-mode-lsp-hook
|
||||
(flycheck-add-next-checker 'lsp 'golangci-lint))
|
||||
|
||||
(add-hook! Info-mode
|
||||
(writeroom-mode t))
|
||||
|
||||
(add-hook! json-mode
|
||||
(hs-minor-mode))
|
||||
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
<edit mode="assign" name="hinting">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit name="lcdfilter" mode="assign">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
<edit name="rgba" mode="assign">
|
||||
<const>none</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
|
|
|
@ -30,7 +30,7 @@ c.tabs.new_position.related = "next"
|
|||
c.url.default_page = 'https://duckduckgo.com'
|
||||
c.input.insert_mode.auto_leave = False
|
||||
c.input.insert_mode.auto_load = True
|
||||
c.zoom.default = "100%"
|
||||
c.zoom.default = "130%"
|
||||
|
||||
# Searches.
|
||||
c.url.searchengines['DEFAULT'] = 'https://duckduckgo.com/?q={}'
|
||||
|
@ -67,8 +67,8 @@ c.window.title_format = "{current_title}"
|
|||
|
||||
# Fonts.
|
||||
c.fonts.default_family = ["Iosevka"]
|
||||
c.fonts.default_size = "14pt"
|
||||
c.fonts.prompts = "14pt Iosevka"
|
||||
c.fonts.default_size = "20pt"
|
||||
c.fonts.prompts = "20pt Iosevka"
|
||||
c.fonts.web.family.standard = "IBM Plex Sans"
|
||||
c.fonts.web.family.sans_serif = c.fonts.web.family.standard
|
||||
c.fonts.web.family.serif = "IBM Plex Serif"
|
||||
|
|
|
@ -27,14 +27,11 @@ set {
|
|||
$terminal alacritty
|
||||
$launcher rofi -terminal $terminal -run-command 'bash -ic "{cmd}"'
|
||||
$locker swaylock -f
|
||||
$player playerctl
|
||||
$notify dunstctl
|
||||
$mixer pulsemixer --max-volume 100
|
||||
}
|
||||
|
||||
# Display output configuration.
|
||||
output * {
|
||||
scale 1
|
||||
subpixel none
|
||||
}
|
||||
|
||||
|
@ -70,10 +67,10 @@ exec swayidle -w \
|
|||
timeout 420 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '$locker' \
|
||||
lock '$player pause' \
|
||||
lock '$notify set-paused true' \
|
||||
unlock '$player pause' \
|
||||
unlock '$notify set-paused false'
|
||||
lock 'playerctl pause' \
|
||||
lock 'dunstctl set-paused true' \
|
||||
unlock 'playerctl pause' \
|
||||
unlock 'dunstctl set-paused false'
|
||||
|
||||
# Inhibit idle tracking for specific applications.
|
||||
for_window {
|
||||
|
@ -96,7 +93,8 @@ bindsym --to-code {
|
|||
$mod+Return exec $terminal
|
||||
$mod+d exec $launcher -show drun -show-icons
|
||||
$mod+Shift+d exec $launcher -show run
|
||||
$mod+c exec $launcher -show filebrowser -show-icons
|
||||
$mod+o exec $launcher -show filebrowser -show-icons
|
||||
$mod+c exec $launcher -show calc -calc-command "echo -n '{result}' | wl-copy"
|
||||
|
||||
# Change focus
|
||||
$mod+h focus left
|
||||
|
@ -181,33 +179,35 @@ bindsym --to-code {
|
|||
$mod+Shift+Delete exec $locker
|
||||
|
||||
# Notification handling.
|
||||
$mod+x exec $notify close
|
||||
$mod+Shift+x exec $notify close-all
|
||||
$mod+grave exec $notify history-pop
|
||||
$mod+Shift+grave exec $notify context
|
||||
$mod+x exec dunstctl close
|
||||
$mod+Shift+x exec dunstctl close-all
|
||||
$mod+grave exec dunstctl history-pop
|
||||
$mod+Shift+grave exec dunstctl context
|
||||
|
||||
--no-repeat {
|
||||
--no-repeat --locked {
|
||||
# Volume keys.
|
||||
XF86AudioRaiseVolume exec $mixer --change-volume +5
|
||||
XF86AudioLowerVolume exec $mixer --change-volume -5
|
||||
XF86AudioMute exec $mixer --toggle-mute
|
||||
|
||||
# Media keys.
|
||||
$mod+Ctrl+Up exec $player stop
|
||||
$mod+Ctrl+Down exec $player play-pause
|
||||
$mod+Ctrl+Left exec $player previous
|
||||
$mod+Ctrl+Right exec $player next
|
||||
$mod+Ctrl+Up exec playerctl stop
|
||||
$mod+Ctrl+Down exec playerctl play-pause
|
||||
$mod+Ctrl+Left exec playerctl previous
|
||||
$mod+Ctrl+Right exec playerctl next
|
||||
|
||||
XF86AudioStop exec $player stop
|
||||
XF86AudioPlay exec $player play-pause
|
||||
XF86AudioPrev exec $player previous
|
||||
XF86AudioNext exec $player next
|
||||
XF86AudioRewind exec $player position 10-
|
||||
XF86AudioForward exec $player position 10+
|
||||
XF86AudioStop exec playerctl stop
|
||||
XF86AudioPlay exec playerctl play-pause
|
||||
XF86AudioPrev exec playerctl previous
|
||||
XF86AudioNext exec playerctl next
|
||||
XF86AudioRewind exec playerctl position 10-
|
||||
XF86AudioForward exec playerctl position 10+
|
||||
|
||||
XF86MonBrightnessDown exec brightnessctl set 10%-
|
||||
XF86MonBrightnessUp exec brightnessctl set +10%
|
||||
}
|
||||
|
||||
--no-repeat {
|
||||
$mod+p exec grim - | wl-copy --type image/png && notify-send "Screenshot Copied"
|
||||
$mod+Shift+p exec grim -g $(slurp -d) - | wl-copy --type image/png && notify-send "Screenshot Copied"
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/home/deuill/.config/systemd/user/udiskie.service
|
Loading…
Reference in New Issue