mirror of https://github.com/deuill/dotfiles.git
Fix Dunst actions, other small fixes
This commit is contained in:
parent
8a45ebfaa4
commit
95dc3e6f92
|
@ -1,6 +1,6 @@
|
|||
window:
|
||||
decorations: none
|
||||
decorations_theme_variant: dark
|
||||
decorations_theme_variant: Dark
|
||||
padding:
|
||||
x: 20
|
||||
y: 20
|
||||
|
|
|
@ -47,7 +47,7 @@ graph_symbol_net = "default"
|
|||
graph_symbol_proc = "default"
|
||||
|
||||
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
|
||||
shown_boxes = "mem net proc cpu"
|
||||
shown_boxes = "cpu mem net proc"
|
||||
|
||||
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||
update_ms = 2000
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
;; 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-serif-font (font-spec :family "IBM Plex Serif" :size 22 :weight 'light)
|
||||
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 24 :weight 'light)
|
||||
doom-serif-font (font-spec :family "IBM Plex Serif" :size 24 :weight 'light)
|
||||
doom-unicode-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
|
||||
;; Column used as limit for various modes.
|
||||
|
@ -104,11 +104,11 @@
|
|||
|
||||
(after! eshell
|
||||
(setq eshell-banner-message "")
|
||||
(set-popup-rule! "^\\*eshell\\*" :vslot -5 :select t :modeline nil :quit nil :ttl nil :height 0.25))
|
||||
(set-popup-rule! "^\\*\\(?:doom:\\)eshell" :vslot -5 :select t :modeline nil :quit nil :ttl nil :height 0.25))
|
||||
|
||||
(after! eww
|
||||
(setq shr-use-fonts t
|
||||
shr-discard-aria-hidden t
|
||||
shr-discard-aria-hidden nil
|
||||
shr-max-width fill-column
|
||||
shr-hr-line ?━
|
||||
shr-bullet "• "
|
||||
|
@ -150,8 +150,8 @@
|
|||
lsp-clients-lua-language-server-main-location "/usr/lib/lua-language-server/bin/main.lua"))
|
||||
|
||||
(after! magit
|
||||
(setq magit-diff-refine-hunk t
|
||||
magit-display-buffer-function #'magit-display-buffer-traditional))
|
||||
(setq magit-diff-refine-hunk t
|
||||
magit-display-buffer-function #'magit-display-buffer-traditional))
|
||||
|
||||
(after! (magit evil)
|
||||
(evil-define-key* 'normal magit-status-mode-map (kbd "<escape>") #'magit-mode-bury-buffer))
|
||||
|
@ -216,7 +216,10 @@
|
|||
(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 :height 0.25))
|
||||
(set-popup-rule! "^\\*\\(?:doom:\\)vterm" :vslot -5 :select t :modeline nil :quit nil :ttl nil :height 0.25))
|
||||
|
||||
(after! vundo
|
||||
(setq vundo-glyph-alist vundo-ascii-symbols))
|
||||
|
||||
(after! (:or man woman)
|
||||
(set-popup-rule! "^\\*\\(?:Wo\\)?Man " :side 'right :select t :quit 'current :slot 0 :width (+ fill-column 4)))
|
||||
|
@ -282,6 +285,7 @@
|
|||
(run-hooks (intern (format "%s-lsp-hook" major-mode))))
|
||||
|
||||
(add-hook! markdown-mode
|
||||
(setq markdown-fontify-code-blocks-natively t)
|
||||
(auto-fill-mode t))
|
||||
|
||||
(add-hook! pdf-view-mode
|
||||
|
|
|
@ -43,7 +43,7 @@ to the `killed-buffer-list' when killing the buffer."
|
|||
|
||||
;;;###autoload
|
||||
(defun +custom/safe-revert-buffer ()
|
||||
"Prompt before reverting the file."
|
||||
"Prompt before reverting buffer."
|
||||
(interactive)
|
||||
(revert-buffer nil nil))
|
||||
|
||||
|
@ -84,3 +84,17 @@ to the `killed-buffer-list' when killing the buffer."
|
|||
(pop-to-buffer deft-buffer)
|
||||
(if (not (eq major-mode 'deft-mode))
|
||||
(deft-mode)))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode rich-view-mode fundamental-mode "rich-view-mode"
|
||||
"Major mode for viewing rich text (e.g. RTF, DOC) files."
|
||||
(delete-region (point-min) (point-max))
|
||||
(rename-buffer (concat "*" (buffer-file-name) "*"))
|
||||
(call-process "pandoc" nil t t "--to" "html" (buffer-file-name))
|
||||
(shr-render-region (point-min) (point-max))
|
||||
(set-buffer-modified-p nil)
|
||||
(read-only-mode))
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.rtf\\'" . rich-view-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.docx\\'" . rich-view-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.odt\\'" . rich-view-mode))
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
:checkers
|
||||
(syntax +childframe)
|
||||
(spell +hunspell)
|
||||
(spell +flyspell +hunspell)
|
||||
|
||||
:ui
|
||||
doom
|
||||
|
@ -36,7 +36,7 @@
|
|||
(dired +ranger +icons)
|
||||
electric
|
||||
ibuffer
|
||||
(undo +tree)
|
||||
undo
|
||||
vc
|
||||
|
||||
:term
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
;; Core package overrides.
|
||||
(package! eshell-did-you-mean :disable t)
|
||||
(package! transient :pin "c2bdf7e12c530eb85476d3aef317eb2941ab9440")
|
||||
(package! with-editor :pin "391e76a256aeec6b9e4cbd733088f30c677d965b")
|
||||
|
||||
;; Add-ons.
|
||||
(package! shr-tag-pre-highlight :pin "931c447bc0d6c134ddc9657c664eeee33afbc54d")
|
||||
|
|
|
@ -7,11 +7,11 @@ width = (400, 600) # The minimum and maximum width of any notification.
|
|||
origin = bottom-right # The screen location from which notifications appear.
|
||||
offset = 20x20 # The horizontal and vertical edge offset for notifications.
|
||||
|
||||
progress_bar = true # Turn on the progess bar.
|
||||
progress_bar_height = 20 # Set the progress bar height.
|
||||
progress_bar_frame_width = 1 # Set the frame width of the progress bar.
|
||||
progress_bar_min_width = 600 # Set the minimum width for the progress bar.
|
||||
progress_bar_max_width = 600 # Set the maximum width for the progress bar.
|
||||
progress_bar = yes # Turn on the progess bar.
|
||||
progress_bar_height = 20 # Set the progress bar height.
|
||||
progress_bar_frame_width = 1 # Set the frame width of the progress bar.
|
||||
progress_bar_min_width = 600 # Set the minimum width for the progress bar.
|
||||
progress_bar_max_width = 600 # Set the maximum width for the progress bar.
|
||||
|
||||
notification_limit = 5 # Show a maximum of 5 notifications on-screen at the same time.
|
||||
indicate_hidden = yes # Show how many messages are currently hidden (because of geometry).
|
||||
|
@ -60,15 +60,14 @@ max_icon_size = 64 # Scale larger icons down to this size, set to 0 to disable
|
|||
sticky_history = yes # Whether notifications from history should be sticky.
|
||||
history_length = 20 # Maximum amount of notifications kept in history.
|
||||
|
||||
# Misc/Advanced settings.
|
||||
dmenu = /usr/bin/wofi --dmenu -p dunst: # Path to dmenu-compatible launcher.
|
||||
browser = /usr/bin/qutebrowser --target tab # Browser for opening URLs in context menu.
|
||||
|
||||
# Interaction settings.
|
||||
mouse_left_click = close_current
|
||||
mouse_middle_click = do_action, close_current
|
||||
mouse_right_click = close_all
|
||||
|
||||
# Misc/Advanced settings.
|
||||
dmenu = /usr/bin/rofi -dmenu # Path to dmenu-compatible launcher.
|
||||
|
||||
# Notification-specific settings.
|
||||
[urgency_low]
|
||||
highlight = "#d8d8d8"
|
||||
|
|
|
@ -6,10 +6,6 @@ EMACS_SOCKET_NAME=main
|
|||
XDG_CURRENT_DESKTOP=sway
|
||||
MOZ_ENABLE_WAYLAND=1
|
||||
|
||||
# HiDPI adjustments.
|
||||
QT_SCALE_FACTOR=1.1
|
||||
QT_FONT_DPI=140
|
||||
|
||||
# Application themeing.
|
||||
GTK_THEME=Materia:dark
|
||||
QT_QPA_PLATFORMTHEME=gnome
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
excludesfile = ~/.config/git/ignore
|
||||
[push]
|
||||
default = current
|
||||
[pull]
|
||||
rebase = false
|
||||
[color]
|
||||
ui = 1
|
||||
[help]
|
||||
|
|
|
@ -23,6 +23,6 @@ replaygain_limit "yes"
|
|||
volume_normalization "no"
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
type "pipewire"
|
||||
name "MPD"
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ c.content.blocking.adblock.lists = [
|
|||
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt",
|
||||
"https://easylist.to/easylist/easylist.txt",
|
||||
"https://easylist.to/easylist/easyprivacy.txt",
|
||||
"https://curben.gitlab.io/malware-filter/urlhaus-filter-online.txt",
|
||||
"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext",
|
||||
]
|
||||
c.confirm_quit = ["multiple-tabs", "downloads"]
|
||||
|
@ -27,31 +26,36 @@ c.tabs.show = "multiple"
|
|||
c.tabs.tabs_are_windows = False
|
||||
c.tabs.background = True
|
||||
c.tabs.new_position.related = "next"
|
||||
c.url.default_page = 'https://duckduckgo.com'
|
||||
c.url.default_page = "https://duckduckgo.com"
|
||||
c.input.insert_mode.auto_leave = False
|
||||
c.input.insert_mode.auto_load = True
|
||||
c.zoom.default = "130%"
|
||||
|
||||
# Searches.
|
||||
c.url.searchengines['DEFAULT'] = 'https://duckduckgo.com/?q={}'
|
||||
c.url.searchengines['!aw'] = 'https://wiki.archlinux.org/?search={}'
|
||||
c.url.searchengines['!ap'] = 'https://www.archlinux.org/packages/?sort=&q={}'
|
||||
c.url.searchengines['!g'] = 'http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q={}'
|
||||
c.url.searchengines['!yt'] = 'https://www.youtube.com/results?search_query={}'
|
||||
c.url.searchengines['!w'] = 'https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special%%3ASearch&search={}'
|
||||
c.url.searchengines['!gh'] = 'https://github.com/search?q={}&type=Code'
|
||||
c.url.searchengines["DEFAULT"] = "https://duckduckgo.com/?q={}"
|
||||
c.url.searchengines["!aw"] = "https://wiki.archlinux.org/?search={}"
|
||||
c.url.searchengines["!ap"] = "https://www.archlinux.org/packages/?sort=&q={}"
|
||||
c.url.searchengines["!g"] = "http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q={}"
|
||||
c.url.searchengines["!yt"] = "https://www.youtube.com/results?search_query={}"
|
||||
c.url.searchengines["!w"] = "https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special%%3ASearch&search={}"
|
||||
c.url.searchengines["!gh"] = "https://github.com/search?q={}&type=Code"
|
||||
|
||||
# Key bindings.
|
||||
config.bind('gH', 'tab-move -', mode='normal')
|
||||
config.bind('gL', 'tab-move +', mode='normal')
|
||||
config.bind('tj', 'back -t', mode='normal')
|
||||
config.bind('wj', 'back -w', mode='normal')
|
||||
config.bind('tk', 'forward -t', mode='normal')
|
||||
config.bind('wk', 'forward -w', mode='normal')
|
||||
config.bind('H', 'tab-prev', mode='normal')
|
||||
config.bind('J', 'back', mode='normal')
|
||||
config.bind('K', 'forward', mode='normal')
|
||||
config.bind('L', 'tab-next', mode='normal')
|
||||
config.bind("gH", "tab-move -", mode="normal")
|
||||
config.bind("gL", "tab-move +", mode="normal")
|
||||
config.bind("tj", "back -t", mode="normal")
|
||||
config.bind("wj", "back -w", mode="normal")
|
||||
config.bind("tk", "forward -t", mode="normal")
|
||||
config.bind("wk", "forward -w", mode="normal")
|
||||
config.bind("H", "tab-prev", mode="normal")
|
||||
config.bind("J", "back", mode="normal")
|
||||
config.bind("K", "forward", mode="normal")
|
||||
config.bind("L", "tab-next", mode="normal")
|
||||
|
||||
config.bind("zl", "spawn --userscript qute-pass")
|
||||
config.bind("zul", "spawn --userscript qute-pass --username-only")
|
||||
config.bind("zpl", "spawn --userscript qute-pass --password-only")
|
||||
config.bind("zol", "spawn --userscript qute-pass --otp-only")
|
||||
|
||||
# UI controls.
|
||||
c.completion.height = "30%"
|
||||
|
@ -148,12 +152,12 @@ c.colors.contextmenu.disabled.fg = base04
|
|||
c.colors.contextmenu.menu.bg = base00
|
||||
|
||||
# Foreground color of the context menu. If set to null, the Qt default is used.
|
||||
c.colors.contextmenu.menu.fg = base05
|
||||
c.colors.contextmenu.menu.fg = base05
|
||||
|
||||
# Background color of the context menu’s selected item. If set to null, the Qt default is used.
|
||||
c.colors.contextmenu.selected.bg = base02
|
||||
|
||||
#Foreground color of the context menu’s selected item. If set to null, the Qt default is used.
|
||||
# Foreground color of the context menu’s selected item. If set to null, the Qt default is used.
|
||||
c.colors.contextmenu.selected.fg = base05
|
||||
|
||||
# Background color for the download bar.
|
||||
|
|
|
@ -177,7 +177,7 @@ bindsym --to-code {
|
|||
$mod+x exec dunstctl close
|
||||
$mod+Shift+x exec dunstctl close-all
|
||||
$mod+grave exec dunstctl history-pop
|
||||
$mod+Shift+grave exec dunstctl context
|
||||
$mod+Shift+grave exec dunstctl action
|
||||
|
||||
--no-repeat --locked {
|
||||
# Volume keys.
|
||||
|
@ -186,17 +186,17 @@ bindsym --to-code {
|
|||
XF86AudioMute exec $mixer --toggle-mute
|
||||
|
||||
# Media keys.
|
||||
$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
|
||||
$mod+Ctrl+Up exec mpc stop
|
||||
$mod+Ctrl+Down exec mpc toggle
|
||||
$mod+Ctrl+Left exec mpc prev
|
||||
$mod+Ctrl+Right exec mpc next
|
||||
|
||||
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+
|
||||
XF86AudioStop exec mpc stop
|
||||
XF86AudioPlay exec mpc toggle
|
||||
XF86AudioPrev exec mpc prev
|
||||
XF86AudioNext exec mpc next
|
||||
XF86AudioRewind exec mpc seek 10-
|
||||
XF86AudioForward exec mpc seek 10+
|
||||
|
||||
XF86MonBrightnessDown exec brightnessctl set 10%-
|
||||
XF86MonBrightnessUp exec brightnessctl set +10%
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"height": 32,
|
||||
"modules-left": ["sway/window", "custom/mpris", "sway/mode"],
|
||||
"modules-left": ["sway/window", "mpd", "sway/mode"],
|
||||
"modules-center": ["sway/workspaces"],
|
||||
"modules-right": ["pulseaudio", "network", "battery", "cpu", "memory", "temperature", "sway/language", "clock", "tray"],
|
||||
"battery": {
|
||||
|
@ -18,7 +18,7 @@
|
|||
"format-alt": "<span color='#585858' size='smaller'>date</span> {:%A, %d %B %H:%M %Z}",
|
||||
"tooltip-format": " <big>{:%d %B %Y}</big>\n{calendar}",
|
||||
"today-format": "<span color='#ab4642'>{}</span>",
|
||||
"timezones": ["", "America/New_York", "America/Los_Angeles"],
|
||||
"timezones": ["Europe/London", "America/New_York", "America/Los_Angeles"],
|
||||
"smooth-scrolling-threshold": 20
|
||||
},
|
||||
"cpu": {
|
||||
|
@ -33,7 +33,7 @@
|
|||
"format-icons": {
|
||||
"playing": "<span color='#585858' size='smaller'>play</span>",
|
||||
"paused": "<span color='#585858' size='smaller'>paus</span>",
|
||||
"stopped": "<span color='#585858' size='smaller'>stop</span>",
|
||||
"stopped": "<span color='#585858' size='smaller'>stop</span>"
|
||||
},
|
||||
"max-length": 60,
|
||||
"exec": "playerctl --follow metadata --format '{\"text\": \"{{markup_escape(artist)}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(artist)}} - {{markup_escape(album)}} - {{markup_escape(title)}} ({{playerName}})\", \"alt\": \"{{lc(status)}}\", \"class\": \"{{lc(status)}}\"}'",
|
||||
|
@ -44,32 +44,22 @@
|
|||
"on-scroll-down": "playerctl next"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {artist} - {title}<small>{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}</small>",
|
||||
"format": "{artist} - {title} {stateIcon}",
|
||||
"format-stopped": "",
|
||||
"format-disconnected": "",
|
||||
"interval": 5,
|
||||
"max-length": 60,
|
||||
"artist-len": 40,
|
||||
"title-len": 40,
|
||||
"random-icons": {
|
||||
"off": "",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": " ¹"
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
"paused": "<span color='#585858' size='smaller'>paus</span>",
|
||||
"playing": "<span color='#585858' size='smaller'>play</span>"
|
||||
},
|
||||
"tooltip-format": "{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)",
|
||||
"tooltip-format-disconnected": "MPD (Disconnected)",
|
||||
"smooth-scrolling-threshold": 20,
|
||||
"on-click": "mpc toggle",
|
||||
"on-click-right": "cantata",
|
||||
"on-click-right": "sensible-terminal -e ncmpcpp",
|
||||
"on-scroll-up": "mpc prev",
|
||||
"on-scroll-down": "mpc next"
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ Type=Application
|
|||
Name=Emacs
|
||||
GenericName=File Viewer
|
||||
Comment=View files with Emacs
|
||||
Exec=emacsclient --socket-name=main --alternate-editor=emacs --create-frame %F
|
||||
Exec=emacsclient --socket-name=server --alternate-editor=emacs %F
|
||||
Terminal=false
|
||||
StartupWMClass=Emacs
|
||||
NoDisplay=true
|
||||
|
|
Loading…
Reference in New Issue