20241109
This commit is contained in:
parent
c4d3a5d9a6
commit
9a26e1370c
11 changed files with 114 additions and 11 deletions
|
@ -1,5 +1,11 @@
|
||||||
local mapkey = require("utils.keymapper").mapvimkey
|
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
|
-- Buffer Navigation
|
||||||
mapkey("<leader>bn", "bnext", "n") -- Next buffer
|
mapkey("<leader>bn", "bnext", "n") -- Next buffer
|
||||||
mapkey("<leader>bp", "bprevious", "n") -- Prev buffer
|
mapkey("<leader>bp", "bprevious", "n") -- Prev buffer
|
||||||
|
|
|
@ -122,6 +122,8 @@ alias cclear="reset && tmux clear-history && cd"
|
||||||
## git
|
## git
|
||||||
alias s_diary="cd ~/PKM/diary/ && git commit -am \"\$(date +%Y%m%d)\" && git push origin master ; cd ~"
|
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 ~"
|
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
|
# Preferred editor for local and remote sessions
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
|
|
|
@ -15,6 +15,9 @@ xrdb -merge ~/.Xresources &
|
||||||
|
|
||||||
# PolicyKit Authentication Agent - Gnome
|
# PolicyKit Authentication Agent - Gnome
|
||||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
|
#
|
||||||
|
# bar
|
||||||
|
~/.config/polybar/launch.sh &
|
||||||
|
|
||||||
# Notifications
|
# Notifications
|
||||||
dunst &
|
dunst &
|
||||||
|
@ -37,12 +40,16 @@ picom --config ~/.picom.conf &
|
||||||
# NetworkManager applet
|
# NetworkManager applet
|
||||||
nm-applet &
|
nm-applet &
|
||||||
|
|
||||||
# bar
|
|
||||||
~/.config/polybar/launch.sh &
|
|
||||||
|
|
||||||
# wallpapers
|
# wallpapers
|
||||||
nitrogen --restore &
|
nitrogen --restore &
|
||||||
|
|
||||||
|
# Dropbox
|
||||||
|
dropbox &
|
||||||
|
# ~/.dropbox-dist/dropboxd &
|
||||||
|
|
||||||
|
# firewall
|
||||||
|
opensnitch-ui &
|
||||||
|
|
||||||
# keyboard layout switcher
|
# keyboard layout switcher
|
||||||
setxkbmap -layout us,ru -option 'grp:alt_space_toggle'
|
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
|
# xinput --set-prop "pointer:Logitech MX Ergo Multi-Device Trackball " 'libinput Accel Speed' -0.2
|
||||||
# xbacklight -set 90 & # only for intel
|
# xbacklight -set 90 & # only for intel
|
||||||
# blueman-applet &
|
# blueman-applet &
|
||||||
# ~/.dropbox-dist/dropboxd &
|
|
||||||
# xfce4-power-manager &
|
# xfce4-power-manager &
|
||||||
|
|
|
@ -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'"
|
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
|
# i3lock
|
||||||
bindsym $mod+Shift+x exec --no-startup-id ~/.config/i3/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)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
|
@ -125,10 +125,10 @@ label-unfocused-padding = 2
|
||||||
; label-visible-underline = #555555
|
; label-visible-underline = #555555
|
||||||
; label-visible-padding = 2
|
; label-visible-padding = 2
|
||||||
|
|
||||||
; label-urgent = %icon%
|
label-urgent = %icon%
|
||||||
; label-urgent-foreground = #000000
|
label-urgent-foreground = #000000
|
||||||
; label-urgent-background = #bd2c40
|
label-urgent-background = #bd2c40
|
||||||
; label-urgent-padding = 2
|
label-urgent-padding = 2
|
||||||
|
|
||||||
; label-mode-padding = 2
|
; label-mode-padding = 2
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
adc_power_management]
|
adc_power_management]
|
||||||
_battery: 4096
|
_battery: 4096
|
||||||
_modelId: B01D406F0000
|
_modelId: B01D406F0000
|
||||||
_sensitive: {pointer_speed: false}
|
_sensitive: {pointer_speed: true, speed-change: false}
|
||||||
_unitId: E8D30D23
|
_unitId: E8D30D23
|
||||||
change-host: null
|
change-host: null
|
||||||
divert-keys: {82: 0, 83: 0, 86: 0, 91: 0, 93: 0, 237: 0}
|
divert-keys: {82: 0, 83: 0, 86: 0, 91: 0, 93: 0, 237: 0}
|
||||||
lowres-scroll-mode: false
|
lowres-scroll-mode: false
|
||||||
persistent-remappable-keys: null
|
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}
|
reprogrammable-keys: {80: 80, 81: 81, 82: 82, 83: 83, 86: 86, 91: 91, 93: 93, 237: 237}
|
||||||
speed-change: 0
|
speed-change: 0
|
||||||
|
|
59
linux/.mbsyncrc
Normal file
59
linux/.mbsyncrc
Normal file
|
@ -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
|
28
linux/.msmtprc
Normal file
28
linux/.msmtprc
Normal file
|
@ -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
|
|
@ -10,6 +10,6 @@ alias cop='xsel --clipboard --input'
|
||||||
|
|
||||||
## docker
|
## docker
|
||||||
#export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
#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
|
## Flatpak
|
||||||
export PATH=$PATH:/var/lib/flatpak/exports/bin
|
export PATH=$PATH:/var/lib/flatpak/exports/bin
|
||||||
|
|
Loading…
Add table
Reference in a new issue