dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit e293e15df72fd44775b134fee10e2c0b5b3bb10f
parent 23eb464d0dbdb31f09426188d63269df4e4315f2
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Sun, 10 Jul 2022 14:11:13 +0200

Merge branch 'notwobug'

Diffstat:
Malacritty/.config/alacritty/alacritty.yml | 21++++++---------------
Mastroid/.config/astroid/poll.sh | 2+-
Mfeh/.fehbg | 2+-
Mfish/.config/fish/functions/aur-update-devel.fish | 2+-
Mgit/.gitconfig | 2++
Agoimapnotify/.config/goimapnotify/config.json | 17+++++++++++++++++
Mi3/.i3/config.d/bindsyms | 4++--
Mi3/.i3/config.d/execs | 5++---
Mi3/.i3/config.in | 10+++++++---
Mi3/.i3/start.sh | 2+-
Mmpv/.config/mpv/mpv.conf | 1-
Mnvim/.config/nvim/init.vim | 12++++++++++++
Mpolybar/.config/polybar/config | 13+++++++------
Mxorg/.xprofile | 2++
14 files changed, 61 insertions(+), 34 deletions(-)

diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml @@ -14,24 +14,12 @@ env: # `infocmp xterm-256color`. TERM: xterm-256color -# Window dimensions in character columns and lines -# Falls back to size specified by window manager if set to 0x0. -# (changes require restart) -window.dimensions: - columns: 80 - lines: 24 # Scrollback buffer scrollback: enabled: true max_lines: 10000 -# Adds this many blank pixels of padding around the window -# Units are physical pixels; this is not DPI aware. -# (change requires restart) -window.padding: - x: 0 - y: 0 # When true, bold text is drawn using the bright variant of colors. draw_bold_text_with_bright_colors: false @@ -96,7 +84,8 @@ font: use_thin_strokes: false # Should display the render timer -debug.render_timer: false +debug: + render_timer: false colors: primary: @@ -178,7 +167,8 @@ mouse: selection: semantic_escape_chars: ",│`|:\"' ()[]{}<>" -mouse.hide_when_typing: false +mouse: + hide_when_typing: false # Style of the cursor # @@ -186,7 +176,8 @@ mouse.hide_when_typing: false # - Block # - Underline # - Beam -cursor.style: Block +cursor: + style: Block # Live config reload (changes require restart) live_config_reload: true diff --git a/astroid/.config/astroid/poll.sh b/astroid/.config/astroid/poll.sh @@ -46,7 +46,7 @@ movemail posteo note Notes mbsync posteo if ! notmuch new | grep "No new mail"; then notify-send "New mail - $(notmuch search tag:new | sed 's/^thread:[0-9a-z]*[ ]*//')" + $(notmuch search tag:new | sed 's/^thread:[0-9a-z]*[ ]*//')" | true fi tag +posteo path:"posteo/**" diff --git a/feh/.fehbg b/feh/.fehbg @@ -2,7 +2,7 @@ WP=$(find Pictures/Desktopography/2014/ -type f | shuf -n 1) convert -resize 1920x1080 $WP ~/.i3/BG.png & -if [[ "$1" == "Sway" ]]; then +if type swaymsg; then swaymsg "output * background $WP fill" else feh --no-fehbg --bg-fill $WP diff --git a/fish/.config/fish/functions/aur-update-devel.fish b/fish/.config/fish/functions/aur-update-devel.fish @@ -1,5 +1,5 @@ function aur-update-devel - set packages (aur vercmp-devel | cut -d: -f1) + set packages (aur vercmp-devel | cut -d' ' -f1) if not test -z "$packages" aur sync $packages --no-ver-argv end diff --git a/git/.gitconfig b/git/.gitconfig @@ -6,3 +6,5 @@ [core] editor = nvim autocrlf = input +[init] + defaultBranch = main diff --git a/goimapnotify/.config/goimapnotify/config.json b/goimapnotify/.config/goimapnotify/config.json @@ -0,0 +1,17 @@ +{ + "host": "posteo.de", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": false + }, + "username": "szymon.mikulicz@posteo.net", + "password": "", + "passwordCmd": "~/.config/astroid/get_pass.py \"https://posteo.de\"", + "onNewMail": "~/.config/astroid/poll.sh", + "onNewMailPost": "", + "boxes": [ + "INBOX" + ] +} + diff --git a/i3/.i3/config.d/bindsyms b/i3/.i3/config.d/bindsyms @@ -61,9 +61,9 @@ bindsym $mod+Shift+8 move container to workspace 8 bindsym $mod+Shift+9 move container to workspace 9 bindsym $mod+Shift+0 move container to workspace 10 -bindsym $mod+Shift+c exec cpp ~/.i3/config.in > ~/.i3/config && i3-msg 'reload' +bindsym $mod+Shift+c exec cpp ~/.i3/config.in > ~/.i3/config && sleep 1 && i3-msg 'reload' -bindsym $mod+Shift+r exec cpp ~/.i3/config.in > ~/.i3/config; restart +bindsym $mod+Shift+r exec cpp ~/.i3/config.in > ~/.i3/config && sleep 1 && i3-msg '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'" diff --git a/i3/.i3/config.d/execs b/i3/.i3/config.d/execs @@ -1,8 +1,7 @@ // vim: filetype=i3config -exec ~/.screenlayout/default.sh exec --no-startup-id picom --experimental-backends exec --no-startup-id xss-lock -l -- ~/.i3/lock.sh exec --no-startup-id nm-applet +exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent exec --no-startup-id redshift-gtk -exec_always --no-startup-id ~/.config/polybar/launch.sh -exec sleep 1 && ~/.fehbg +exec sleep 1 && ~/.screenlayout/default.sh && ~/.fehbg && ~/.config/polybar/launch.sh diff --git a/i3/.i3/config.in b/i3/.i3/config.in @@ -9,16 +9,20 @@ floating_modifier $mod bindsym $mod+Return exec alacritty bindsym $mod+d exec rofi -modi drun -show drun -bindsym $mod+Shift+d exec xhost + N-20L6PF16PQSK; mode "remote" +bindsym $mod+Shift+d exec xhost + 192.168.100.103; mode "remote" mode "remote" { - bindsym $mod+d exec ssh mikulicz@N-20L6PF16PQSK env DISPLAY=SKRADAK:0 rofi -modi drun -show drun - bindsym $mod+Return exec alacritty -e ssh -t mikulicz@N-20L6PF16PQSK env DISPLAY=SKRADAK:0 '$SHELL' + bindsym $mod+d exec ssh mikulicz@192.168.100.103 env DISPLAY=192.168.100.102:0 rofi -modi drun -show drun + bindsym $mod+Return exec alacritty -e ssh -t mikulicz@192.168.100.103 env DISPLAY=192.168.100.102:0 '$SHELL' #include "config.d/bindsyms" bindsym $mod+Shift+d mode "default" } +workspace 1 output eDP1 +workspace 2 output DP1 +workspace 3 output HDMI2 + #include "config.d/bindsyms" #include "config.d/modes" #include "config.d/windows" diff --git a/i3/.i3/start.sh b/i3/.i3/start.sh @@ -1,4 +1,4 @@ #!/bin/sh -cpp ~/.i3/config.in > ~/.i3/config +cpp $HOME/.i3/config.in > $HOME/.i3/config exec i3 diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf @@ -1,6 +1,5 @@ interpolation tscale=catmull_rom - video-sync=display-resample-vdrop vo=gpu diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim @@ -21,6 +21,8 @@ function! PackInit() abort call minpac#add('lervag/vimtex', {'type': 'opt'}) call minpac#add('PietroPate/vim-tex-conceal', {'type': 'opt'}) + call minpac#add('davisdude/vim-love-docs', {'type': 'opt', 'branch': 'build'}) + call minpac#add('rust-lang/rust.vim', {'type': 'opt'}) call minpac#add('dag/vim-fish', {'type': 'opt'}) @@ -145,6 +147,11 @@ gcct:close() clang:close() EOF +lua require'lspconfig'.rust_analyzer.setup{} +lua require'lspconfig'.jedi_language_server.setup{} +" lua require'lspconfig'.sumneko_lua.setup{cmd={"lua-language-server"}} +lua require'lspconfig'.texlab.setup{} + " Deoplete inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>" inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>" @@ -259,6 +266,11 @@ function SetI3Options() packadd i3config.vim endfunction +autocmd Filetype lua call SetLuaOptions() +function SetLuaOptions() + packadd vim-love-docs +endfunction + au BufReadPost APKBUILD set syntax=sh noexpandtab autocmd Filetype markdown call SetMDOptions() diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config @@ -36,7 +36,7 @@ height = 20 ;offset-y = 1% radius = 0.0 fixed-center = false -bottom = true +bottom = false background = ${colors.background} foreground = ${colors.foreground} @@ -53,12 +53,13 @@ padding-right = 2 module-margin-left = 1 module-margin-right = 2 -font-0 = "Noto Mono:pixelsize=9;1" -font-1 = "Siji:pixelsize=10;1" +font-0 = "Noto Sans Mono:pixelsize=9;1" +font-1 = "Noto Sans Mono CJK JP:pixelsize=9;1" +font-2 = "Siji:pixelsize=10;1" modules-left = i3 -modules-center = cmus mpd -modules-right = filesystem memory cpu ibacklight pipewire-simple eth docketh wlan vpn battery0 xkeyboard date +modules-center = cmus +modules-right = filesystem memory cpu backlight-acpi volume eth wlan battery xkeyboard date tray-position = left tray-padding = 2 @@ -311,7 +312,7 @@ format-underline = ${colors.blue} label = %date% %time% [module/volume] -type = internal/volume +type = internal/pulseaudio format-volume = <label-volume> <bar-volume> label-volume =  diff --git a/xorg/.xprofile b/xorg/.xprofile @@ -1,5 +1,7 @@ #!/bin/sh +xinput --set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1 +xrandr --dpi 96 xrdb -merge ~/.Xresources export QT_QPA_PLATFORMTHEME="qt5ct" export NVIM_GTK_NO_HEADERBAR=1