diff --git a/global/.config/nvim/lua/core/keymaps.lua b/global/.config/nvim/lua/core/keymaps.lua index fd48b30..51d62ee 100644 --- a/global/.config/nvim/lua/core/keymaps.lua +++ b/global/.config/nvim/lua/core/keymaps.lua @@ -1,5 +1,11 @@ local mapkey = require("utils.keymapper").mapvimkey +-- remap default +-- Don't touch unnamed register when pasting over visual selection +vim.keymap.set("x", "p", function() + return 'pgv"' .. vim.v.register .. "y" +end, { expr = true, noremap = true, silent = true }) + -- Buffer Navigation mapkey("bn", "bnext", "n") -- Next buffer mapkey("bp", "bprevious", "n") -- Prev buffer diff --git a/global/.zshrc b/global/.zshrc index bc6fee3..0af178d 100644 --- a/global/.zshrc +++ b/global/.zshrc @@ -122,6 +122,8 @@ alias cclear="reset && tmux clear-history && cd" ## git alias s_diary="cd ~/PKM/diary/ && git commit -am \"\$(date +%Y%m%d)\" && git push origin master ; cd ~" alias s_ledger="cd ~/PKM/ledger/ && git commit -am \"\$(date +%Y%m%d)\" && git push origin master ; cd ~" +## screenshots +alias scrn="screenshot.sh" # Preferred editor for local and remote sessions export EDITOR='nvim' diff --git a/linux/.config/i3/autostart.sh b/linux/.config/i3/autostart.sh index 910e64d..e06aab7 100755 --- a/linux/.config/i3/autostart.sh +++ b/linux/.config/i3/autostart.sh @@ -15,6 +15,9 @@ xrdb -merge ~/.Xresources & # PolicyKit Authentication Agent - Gnome /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +# +# bar +~/.config/polybar/launch.sh & # Notifications dunst & @@ -37,12 +40,16 @@ picom --config ~/.picom.conf & # NetworkManager applet nm-applet & -# bar -~/.config/polybar/launch.sh & - # wallpapers nitrogen --restore & +# Dropbox +dropbox & +# ~/.dropbox-dist/dropboxd & + +# firewall +opensnitch-ui & + # keyboard layout switcher setxkbmap -layout us,ru -option 'grp:alt_space_toggle' @@ -53,5 +60,4 @@ xss-lock --transfer-sleep-lock -- i3lock --nofork # xinput --set-prop "pointer:Logitech MX Ergo Multi-Device Trackball " 'libinput Accel Speed' -0.2 # xbacklight -set 90 & # only for intel # blueman-applet & -# ~/.dropbox-dist/dropboxd & # xfce4-power-manager & diff --git a/linux/.config/i3/config b/linux/.config/i3/config index 6f9959f..ec85f2f 100644 --- a/linux/.config/i3/config +++ b/linux/.config/i3/config @@ -176,6 +176,8 @@ bindsym $mod+Shift+r restart bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # i3lock bindsym $mod+Shift+x exec --no-startup-id ~/.config/i3/i3lock +# screen +bindsym $mod+Shift+s exec --no-startup-id ~/scripts/bin/screenshot.sh full # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode diff --git a/linux/.config/polybar/config.ini b/linux/.config/polybar/config.ini index 008c0f0..91fde34 100644 --- a/linux/.config/polybar/config.ini +++ b/linux/.config/polybar/config.ini @@ -125,10 +125,10 @@ label-unfocused-padding = 2 ; label-visible-underline = #555555 ; label-visible-padding = 2 -; label-urgent = %icon% -; label-urgent-foreground = #000000 -; label-urgent-background = #bd2c40 -; label-urgent-padding = 2 +label-urgent = %icon% +label-urgent-foreground = #000000 +label-urgent-background = #bd2c40 +label-urgent-padding = 2 ; label-mode-padding = 2 diff --git a/linux/.config/solaar/config.yaml b/linux/.config/solaar/config.yaml index 4358f4e..3cc80a4 100644 --- a/linux/.config/solaar/config.yaml +++ b/linux/.config/solaar/config.yaml @@ -7,12 +7,12 @@ adc_power_management] _battery: 4096 _modelId: B01D406F0000 - _sensitive: {pointer_speed: false} + _sensitive: {pointer_speed: true, speed-change: false} _unitId: E8D30D23 change-host: null divert-keys: {82: 0, 83: 0, 86: 0, 91: 0, 93: 0, 237: 0} lowres-scroll-mode: false persistent-remappable-keys: null - pointer_speed: 181 + pointer_speed: 180 reprogrammable-keys: {80: 80, 81: 81, 82: 82, 83: 83, 86: 86, 91: 91, 93: 93, 237: 237} speed-change: 0 diff --git a/linux/.mbsyncrc b/linux/.mbsyncrc new file mode 100644 index 0000000..ec05130 --- /dev/null +++ b/linux/.mbsyncrc @@ -0,0 +1,59 @@ +IMAPAccount gmail +Host imap.gmail.com +Port 993 +User foozzione@gmail.com +PassCmd "gpg -dq --for-your-eyes-only --no-tty ~/.config/mutt/gmail_isync.gpg" +TLSType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt +AuthMechs LOGIN + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +Subfolders Verbatim +Path ~/.local/share/email/foozzione_gmail/ +INBOX ~/.local/share/email/foozzione_gmail/INBOX +Flatten . + +Channel gmail +Far :gmail-remote: +Near :gmail-local: +Patterns * +# Automatically create missing mailboxes, both locally and on the server +Create Both +# Sync the movement of messages between folders and deletions, add after making sure the sync works +Expunge Both +# Save the synchronization state files in the relevant directory +SyncState * +MaxMessages 0 + + +IMAPAccount posteo-remote +Host posteo.de +Port 993 +User fz0x1@posteo.net +PassCmd "gpg -dq --for-your-eyes-only --no-tty ~/.config/mutt/posteo_isync.gpg" +TLSType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore posteo-remote +Account posteo-remote + +MaildirStore posteo-local +Subfolders Verbatim +Path ~/.local/share/email/fz0x1_posteo/ +INBOX ~/.local/share/email/fz0x1_posteo/INBOX +Flatten . + +Channel posteo +Far :posteo-remote: +Near :posteo-local: +Patterns * +# Automatically create missing mailboxes, both locally and on the server +Create Both +# Sync the movement of messages between folders and deletions, add after making sure the sync works +Expunge Both +# Save the synchronization state files in the relevant directory +SyncState * +MaxMessages 0 diff --git a/linux/.msmtprc b/linux/.msmtprc new file mode 100644 index 0000000..c4c428d --- /dev/null +++ b/linux/.msmtprc @@ -0,0 +1,28 @@ +# Set default values for all following accounts. +defaults +auth on +tls on +tls_starttls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile ~/.config/msmtp/msmtp.log + +# Gmail +account gmail +host smtp.gmail.com +port 465 +tls_starttls off +from foozzione@gmail.com +user foozzione@gmail.com +passwordeval "gpg -dq $HOME/.config/mutt/gmail_isync.gpg" + +# Posteo +account posteo +host posteo.de +port 465 +tls_starttls off +from fz0x1@posteo.net +user fz0x1@posteo.net +passwordeval "gpg -dq $HOME/.config/mutt/posteo_isync.gpg" + +# Set a default account +account default: posteo diff --git a/linux/.zshrc-additional b/linux/.zshrc-additional index 12dc29f..3f9cea6 100644 --- a/linux/.zshrc-additional +++ b/linux/.zshrc-additional @@ -10,6 +10,6 @@ alias cop='xsel --clipboard --input' ## docker #export DOCKER_HOST=unix:///run/user/1000/docker.sock -export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.soc +export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock ## Flatpak export PATH=$PATH:/var/lib/flatpak/exports/bin diff --git a/global/.mbsyncrc b/macos/.mbsyncrc similarity index 100% rename from global/.mbsyncrc rename to macos/.mbsyncrc diff --git a/global/.msmtprc b/macos/.msmtprc similarity index 100% rename from global/.msmtprc rename to macos/.msmtprc