remove random stuff from mango config
This commit is contained in:
parent
ab0ab29c09
commit
1e2bbb3dbf
3 changed files with 57 additions and 82 deletions
|
|
@ -1,40 +1,55 @@
|
||||||
(add-to-list 'default-frame-alist '(font . "Iosevka-14"))
|
(add-to-list 'default-frame-alist '(font . "Iosevka-14"))
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(add-to-list 'package-archives '("melpa-snapshots" . "https://snapshots.melpa.org/packages/") t)
|
(add-to-list 'package-archives
|
||||||
|
'("melpa-snapshots"
|
||||||
|
.
|
||||||
|
"https://snapshots.melpa.org/packages/")
|
||||||
|
t)
|
||||||
;; load current selected tinty theme
|
;; load current selected tinty theme
|
||||||
(use-package base16-theme :ensure t)
|
(use-package base16-theme :ensure t)
|
||||||
(load-theme (intern ( string-trim(shell-command-to-string "tinty current -d /home/lucy/.local/share/tinted-theming/tinty/")))t)
|
(load-theme
|
||||||
|
(intern
|
||||||
|
(string-trim
|
||||||
|
(shell-command-to-string
|
||||||
|
"tinty current -d /home/lucy/.local/share/tinted-theming/tinty/")))
|
||||||
|
t)
|
||||||
|
|
||||||
|
|
||||||
;; add packages
|
;; add packages
|
||||||
|
(use-package
|
||||||
|
elisp-autofmt
|
||||||
|
:ensure t
|
||||||
|
:commands (elisp-autofmt-buffer elisp-autofmt-mode)
|
||||||
|
:hook (emacs-lisp-mode . elisp-autofmt-mode)
|
||||||
|
:config)
|
||||||
(use-package portage-modes :ensure t)
|
(use-package portage-modes :ensure t)
|
||||||
(use-package corfu
|
(use-package
|
||||||
:ensure t
|
corfu
|
||||||
:init
|
:ensure t
|
||||||
(setq corfu-auto t
|
:init
|
||||||
corfu-auto-prefix 1
|
(setq
|
||||||
corfu-auto-delay 0.2)
|
corfu-auto t
|
||||||
(global-corfu-mode))
|
corfu-auto-prefix 1
|
||||||
|
corfu-auto-delay 0.2)
|
||||||
|
(global-corfu-mode))
|
||||||
|
|
||||||
(setq tab-always-indent 'complete)
|
(setq tab-always-indent 'complete)
|
||||||
(use-package cape
|
(use-package
|
||||||
:ensure t
|
cape
|
||||||
:bind ("C-c p" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
|
:ensure t
|
||||||
:init
|
:bind ("C-c p" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
|
||||||
(add-hook 'completion-at-point-functions #'cape-file)
|
:init (add-hook 'completion-at-point-functions #'cape-file))
|
||||||
)
|
|
||||||
(setq corfu-auto-prefix 2)
|
(setq corfu-auto-prefix 2)
|
||||||
(use-package qml-mode :ensure t)
|
(use-package qml-mode :ensure t)
|
||||||
(use-package lua-mode :ensure t)
|
(use-package lua-mode :ensure t)
|
||||||
(use-package elcord :ensure t
|
(use-package elcord :ensure t :init (elcord-mode))
|
||||||
:init (elcord-mode))
|
|
||||||
|
|
||||||
(add-to-list 'display-buffer-alist
|
(add-to-list
|
||||||
'("\\*compilation\\*"
|
'display-buffer-alist
|
||||||
(display-buffer-reuse-window display-buffer-below-selected)
|
'("\\*compilation\\*" (display-buffer-reuse-window
|
||||||
(window-height . 0.3)))
|
display-buffer-below-selected)
|
||||||
|
(window-height . 0.3)))
|
||||||
|
|
||||||
|
|
||||||
;; remove useless shit and set default opts
|
;; remove useless shit and set default opts
|
||||||
|
|
@ -50,21 +65,13 @@
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;; lsp shit
|
;; lsp shit
|
||||||
(add-hook 'nix-mode-hook #'eglot-ensure)
|
(add-hook 'nix-mode-hook #'eglot-ensure)
|
||||||
(add-hook 'c-mode-hook #'eglot-ensure)
|
(add-hook 'c-mode-hook #'eglot-ensure)
|
||||||
(add-hook 'qml-mode-hook #'eglot-ensure)
|
(add-hook 'qml-mode-hook #'eglot-ensure)
|
||||||
(with-eval-after-load 'eglot
|
(with-eval-after-load 'eglot
|
||||||
(add-to-list 'eglot-server-programs
|
(add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))
|
||||||
'(nix-mode . ("nixd")))
|
(add-to-list 'eglot-server-programs '(qml-mode . ("qmlls"))))
|
||||||
(add-to-list 'eglot-server-programs
|
|
||||||
'(qml-mode . ("qmlls"))))
|
|
||||||
|
|
||||||
;; keybindings
|
;; keybindings
|
||||||
(keymap-global-set "C-c f" 'eglot-format)
|
(keymap-global-set "C-c f" 'eglot-format)
|
||||||
|
|
|
||||||
|
|
@ -8,33 +8,15 @@ cursor_size=24
|
||||||
exec-once = qs
|
exec-once = qs
|
||||||
|
|
||||||
# monitor config
|
# monitor config
|
||||||
monitorrule=make:BNQ,model:BenQ EX2710Q,serial:K6R04023019,x:1920,y:0,width:2560,height:1440,refresh:165
|
monitorrule=make:BNQ,model:BenQ EX2710Q,serial:K6R04023019,x:1920,y:0,width:2560,height:1440,refresh:165,hdr:1
|
||||||
monitorrule=serial:9KFDW6C533DB,x:0,y:0
|
monitorrule=serial:9KFDW6C533DB,x:0,y:0
|
||||||
|
|
||||||
|
|
||||||
# env shit
|
# env shit
|
||||||
env=GTK_THEME,adw-gtk3-dark
|
env=GTK_THEME,adw-gtk3-dark
|
||||||
blur=0
|
env=WLR_RENDERER,vulkan
|
||||||
blur_layer=0
|
hdr_depth = 2
|
||||||
blur_optimized=1
|
|
||||||
blur_params_num_passes = 2
|
|
||||||
blur_params_radius = 5
|
|
||||||
blur_params_noise = 0.02
|
|
||||||
blur_params_brightness = 0.9
|
|
||||||
blur_params_contrast = 0.9
|
|
||||||
blur_params_saturation = 1.2
|
|
||||||
|
|
||||||
shadows = 0
|
|
||||||
layer_shadows = 0
|
|
||||||
shadow_only_floating = 1
|
|
||||||
shadows_size = 10
|
|
||||||
shadows_blur = 15
|
|
||||||
shadows_position_x = 0
|
|
||||||
shadows_position_y = 0
|
|
||||||
shadowscolor= 0x000000ff
|
|
||||||
|
|
||||||
border_radius=0
|
|
||||||
no_radius_when_single=0
|
|
||||||
focused_opacity=1.0
|
focused_opacity=1.0
|
||||||
unfocused_opacity=1.0
|
unfocused_opacity=1.0
|
||||||
|
|
||||||
|
|
@ -44,23 +26,23 @@ animations=1
|
||||||
layer_animations=1
|
layer_animations=1
|
||||||
animation_type_open=slide
|
animation_type_open=slide
|
||||||
animation_type_close=slide
|
animation_type_close=slide
|
||||||
animation_fade_in=1
|
animation_fade_in=0
|
||||||
animation_fade_out=1
|
animation_fade_out=0
|
||||||
tag_animation_direction=1
|
tag_animation_direction=1
|
||||||
zoom_initial_ratio=0.4
|
zoom_initial_ratio=0.4
|
||||||
zoom_end_ratio=0.8
|
zoom_end_ratio=0.8
|
||||||
fadein_begin_opacity=0.5
|
fadein_begin_opacity=0
|
||||||
fadeout_begin_opacity=0.8
|
fadeout_begin_opacity=0
|
||||||
animation_duration_move=500
|
animation_duration_move=500
|
||||||
animation_duration_open=400
|
animation_duration_open=400
|
||||||
animation_duration_tag=350
|
animation_duration_tag=350
|
||||||
animation_duration_close=800
|
animation_duration_close=800
|
||||||
animation_duration_focus=0
|
animation_duration_focus=0
|
||||||
animation_curve_open=0.46,1.0,0.29,1
|
animation_curve_open=0.23,1.0,0.32,1.05
|
||||||
animation_curve_move=0.46,1.0,0.29,1
|
animation_curve_move=0.23,1.0,0.32,1
|
||||||
animation_curve_tag=0.46,1.0,0.29,1
|
animation_curve_tag=0.23,1.0,0.32,1.03
|
||||||
animation_curve_close=0.08,0.92,0,1
|
animation_curve_close=0.23,1.0,0.32,1
|
||||||
animation_curve_focus=0.46,1.0,0.29,1
|
animation_curve_focus=0.23,1.0,0.32,1
|
||||||
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
||||||
animation_curve_opafadein=0.46,1.0,0.29,1
|
animation_curve_opafadein=0.46,1.0,0.29,1
|
||||||
|
|
||||||
|
|
@ -105,8 +87,8 @@ swipe_min_threshold=1
|
||||||
# mouse
|
# mouse
|
||||||
# need relogin to make it apply
|
# need relogin to make it apply
|
||||||
mouse_natural_scrolling=0
|
mouse_natural_scrolling=0
|
||||||
mouse_accel_profile = 0
|
mouse_accel_profile = 1
|
||||||
mouse_accel_speed = -0.2
|
mouse_accel_speed = -0.4
|
||||||
# Appearance
|
# Appearance
|
||||||
gappih=5
|
gappih=5
|
||||||
gappiv=5
|
gappiv=5
|
||||||
|
|
@ -143,7 +125,7 @@ bind=SUPER,Return,spawn,foot
|
||||||
bind=SUPER+SHIFT,q,quit
|
bind=SUPER+SHIFT,q,quit
|
||||||
bind=SUPER,q,killclient,
|
bind=SUPER,q,killclient,
|
||||||
# screenshot binds
|
# screenshot binds
|
||||||
bind = SUPER+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot freeze-region
|
bind = SUPER+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot region
|
||||||
bind=ALT+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot output
|
bind=ALT+SHIFT,S,spawn_shell,$HOME/.config/mango/scripts/screenshot output
|
||||||
bind=ALT+CTRL,S,spawn_shell,$HOME/.config/mango/scripts/screenshot window
|
bind=ALT+CTRL,S,spawn_shell,$HOME/.config/mango/scripts/screenshot window
|
||||||
|
|
||||||
|
|
@ -188,5 +170,5 @@ bind=SUPER,period,focusmon,right
|
||||||
|
|
||||||
# btn_left and btn_right can't bind none mod key
|
# btn_left and btn_right can't bind none mod key
|
||||||
mousebind=SUPER,btn_left,moveresize,curmove
|
mousebind=SUPER,btn_left,moveresize,curmove
|
||||||
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
mousebind=SUPER,btn_right,moveresize,curresize
|
||||||
mousebind=ALT,btn_left,moveresize,curresize
|
mousebind=ALT,btn_left,moveresize,curresize
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p "$HOME/Pictures/Screenshots"
|
|
||||||
filepath="$HOME/Pictures/Screenshots/$(date +%Y%m%d%H%M%S).png"
|
|
||||||
|
|
||||||
case "${1:-fullscreen}" in
|
case "${1:-fullscreen}" in
|
||||||
region)
|
region)
|
||||||
|
|
@ -11,18 +9,6 @@ case "${1:-fullscreen}" in
|
||||||
g=$(mmsg get focusing-client | jq -r '"\(.x),\(.y) \(.width)x\(.height)"')
|
g=$(mmsg get focusing-client | jq -r '"\(.x),\(.y) \(.width)x\(.height)"')
|
||||||
[ -z "$g" ] && exit 1
|
[ -z "$g" ] && exit 1
|
||||||
grim -g "$g" - | wl-copy ;;
|
grim -g "$g" - | wl-copy ;;
|
||||||
freeze)
|
|
||||||
p=$(mktemp -u).fifo; mkfifo "$p"
|
|
||||||
wayfreeze --after-freeze-timeout 100 --after-freeze-cmd "echo > $p" & wp=$!
|
|
||||||
read -r < "$p"; grim - | wl-copy
|
|
||||||
kill "$wp" 2>/dev/null; rm -f "$p" ;;
|
|
||||||
freeze-region)
|
|
||||||
p=$(mktemp -u).fifo; mkfifo "$p"
|
|
||||||
wayfreeze --after-freeze-timeout 100 --after-freeze-cmd "echo > $p" & wp=$!
|
|
||||||
read -r < "$p"; g=$(slurp -d)
|
|
||||||
if [ -z "$g" ]; then kill "$wp" 2>/dev/null; rm -f "$p"; exit 1; fi
|
|
||||||
grim -g "$g" - | wl-copy
|
|
||||||
kill "$wp" 2>/dev/null; rm -f "$p" ;;
|
|
||||||
output)
|
output)
|
||||||
grim -o "$(mmsg get cursorpos | jq -r .monitor)" - | wl-copy;;
|
grim -o "$(mmsg get cursorpos | jq -r .monitor)" - | wl-copy;;
|
||||||
*) grim - | wl-copy;;
|
*) grim - | wl-copy;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue