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"))
|
||||
|
||||
(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
|
||||
(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
|
||||
(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 corfu
|
||||
:ensure t
|
||||
:init
|
||||
(setq corfu-auto t
|
||||
corfu-auto-prefix 1
|
||||
corfu-auto-delay 0.2)
|
||||
(global-corfu-mode))
|
||||
(use-package
|
||||
corfu
|
||||
:ensure t
|
||||
:init
|
||||
(setq
|
||||
corfu-auto t
|
||||
corfu-auto-prefix 1
|
||||
corfu-auto-delay 0.2)
|
||||
(global-corfu-mode))
|
||||
|
||||
(setq tab-always-indent 'complete)
|
||||
(use-package cape
|
||||
:ensure t
|
||||
:bind ("C-c p" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
|
||||
:init
|
||||
(add-hook 'completion-at-point-functions #'cape-file)
|
||||
)
|
||||
(use-package
|
||||
cape
|
||||
:ensure t
|
||||
:bind ("C-c p" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
|
||||
:init (add-hook 'completion-at-point-functions #'cape-file))
|
||||
(setq corfu-auto-prefix 2)
|
||||
(use-package qml-mode :ensure t)
|
||||
(use-package lua-mode :ensure t)
|
||||
(use-package elcord :ensure t
|
||||
:init (elcord-mode))
|
||||
(use-package elcord :ensure t :init (elcord-mode))
|
||||
|
||||
(add-to-list 'display-buffer-alist
|
||||
'("\\*compilation\\*"
|
||||
(display-buffer-reuse-window display-buffer-below-selected)
|
||||
(window-height . 0.3)))
|
||||
(add-to-list
|
||||
'display-buffer-alist
|
||||
'("\\*compilation\\*" (display-buffer-reuse-window
|
||||
display-buffer-below-selected)
|
||||
(window-height . 0.3)))
|
||||
|
||||
|
||||
;; remove useless shit and set default opts
|
||||
|
|
@ -50,21 +65,13 @@
|
|||
(load custom-file 'noerror)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;; lsp shit
|
||||
(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)
|
||||
(with-eval-after-load 'eglot
|
||||
(add-to-list 'eglot-server-programs
|
||||
'(nix-mode . ("nixd")))
|
||||
(add-to-list 'eglot-server-programs
|
||||
'(qml-mode . ("qmlls"))))
|
||||
(add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))
|
||||
(add-to-list 'eglot-server-programs '(qml-mode . ("qmlls"))))
|
||||
|
||||
;; keybindings
|
||||
(keymap-global-set "C-c f" 'eglot-format)
|
||||
|
|
|
|||
|
|
@ -8,33 +8,15 @@ cursor_size=24
|
|||
exec-once = qs
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
# env shit
|
||||
env=GTK_THEME,adw-gtk3-dark
|
||||
blur=0
|
||||
blur_layer=0
|
||||
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
|
||||
env=WLR_RENDERER,vulkan
|
||||
hdr_depth = 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
|
||||
unfocused_opacity=1.0
|
||||
|
||||
|
|
@ -44,23 +26,23 @@ animations=1
|
|||
layer_animations=1
|
||||
animation_type_open=slide
|
||||
animation_type_close=slide
|
||||
animation_fade_in=1
|
||||
animation_fade_out=1
|
||||
animation_fade_in=0
|
||||
animation_fade_out=0
|
||||
tag_animation_direction=1
|
||||
zoom_initial_ratio=0.4
|
||||
zoom_end_ratio=0.8
|
||||
fadein_begin_opacity=0.5
|
||||
fadeout_begin_opacity=0.8
|
||||
fadein_begin_opacity=0
|
||||
fadeout_begin_opacity=0
|
||||
animation_duration_move=500
|
||||
animation_duration_open=400
|
||||
animation_duration_tag=350
|
||||
animation_duration_close=800
|
||||
animation_duration_focus=0
|
||||
animation_curve_open=0.46,1.0,0.29,1
|
||||
animation_curve_move=0.46,1.0,0.29,1
|
||||
animation_curve_tag=0.46,1.0,0.29,1
|
||||
animation_curve_close=0.08,0.92,0,1
|
||||
animation_curve_focus=0.46,1.0,0.29,1
|
||||
animation_curve_open=0.23,1.0,0.32,1.05
|
||||
animation_curve_move=0.23,1.0,0.32,1
|
||||
animation_curve_tag=0.23,1.0,0.32,1.03
|
||||
animation_curve_close=0.23,1.0,0.32,1
|
||||
animation_curve_focus=0.23,1.0,0.32,1
|
||||
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
||||
animation_curve_opafadein=0.46,1.0,0.29,1
|
||||
|
||||
|
|
@ -105,8 +87,8 @@ swipe_min_threshold=1
|
|||
# mouse
|
||||
# need relogin to make it apply
|
||||
mouse_natural_scrolling=0
|
||||
mouse_accel_profile = 0
|
||||
mouse_accel_speed = -0.2
|
||||
mouse_accel_profile = 1
|
||||
mouse_accel_speed = -0.4
|
||||
# Appearance
|
||||
gappih=5
|
||||
gappiv=5
|
||||
|
|
@ -143,7 +125,7 @@ bind=SUPER,Return,spawn,foot
|
|||
bind=SUPER+SHIFT,q,quit
|
||||
bind=SUPER,q,killclient,
|
||||
# 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+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
|
||||
mousebind=SUPER,btn_left,moveresize,curmove
|
||||
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
||||
mousebind=SUPER,btn_right,moveresize,curresize
|
||||
mousebind=ALT,btn_left,moveresize,curresize
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
mkdir -p "$HOME/Pictures/Screenshots"
|
||||
filepath="$HOME/Pictures/Screenshots/$(date +%Y%m%d%H%M%S).png"
|
||||
|
||||
case "${1:-fullscreen}" in
|
||||
region)
|
||||
|
|
@ -11,18 +9,6 @@ case "${1:-fullscreen}" in
|
|||
g=$(mmsg get focusing-client | jq -r '"\(.x),\(.y) \(.width)x\(.height)"')
|
||||
[ -z "$g" ] && exit 1
|
||||
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)
|
||||
grim -o "$(mmsg get cursorpos | jq -r .monitor)" - | wl-copy;;
|
||||
*) grim - | wl-copy;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue