diff --git a/.bashrc b/.bashrc index 73e4a9e..e3596f6 100644 --- a/.bashrc +++ b/.bashrc @@ -129,3 +129,8 @@ export SQLITE_HISTORY="/home/naiji/.local/share/sqlite3/.sqlite_history" alias nsxiv="nsxiv -ap" alias cal="cal -3 -m" alias fzvim=". fzvim" +alias kdeconnect-file="kdeconnect-cli -n Pixel\ 10a --share" + +echo "" +echo "CLEAN GIT STATUS IN ~" +echo "" diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 483460c..3858530 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -2,21 +2,21 @@ size = 9.0 #offset = { x = 0, y = 2 } -#[font.bold] -#family = "Terminus" -#style = "Bold" -# -#[font.bold_italic] -#family = "Terminus" -#style = "Bold Italic" -# -#[font.italic] -#family = "Terminus" -#style = "Italic" -# -#[font.normal] -#family = "Terminus" -#style = "Regular" +[font.bold] +family = "Terminus" +style = "Bold" + +[font.bold_italic] +family = "Terminus" +style = "Bold Italic" + +[font.italic] +family = "Terminus" +style = "Italic" + +[font.normal] +family = "Terminus" +style = "Regular" # # Default colors [colors.primary] diff --git a/.config/htop/htoprc b/.config/htop/htoprc index f8e5f1b..2ea73ff 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -1,6 +1,6 @@ # Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. -htop_version=3.4.0-dev-3.4.0 +htop_version=3.5.1-1-arch config_reader_min_version=3 fields=0 48 17 18 38 39 40 2 46 47 49 1 hide_kernel_threads=1 @@ -23,6 +23,7 @@ header_margin=1 screen_tabs=1 detailed_cpu_time=0 cpu_count_from_one=0 +show_cpu_smt_labels=0 show_cpu_usage=1 show_cpu_frequency=0 show_cpu_temperature=0 @@ -41,18 +42,18 @@ column_meters_1=Tasks LoadAverage Uptime column_meter_modes_1=2 2 2 tree_view=1 sort_key=46 -tree_sort_key=47 +tree_sort_key=46 sort_direction=-1 -tree_sort_direction=1 +tree_sort_direction=-1 tree_view_always_by_pid=0 all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command .sort_key=PERCENT_CPU -.tree_sort_key=PERCENT_MEM +.tree_sort_key=PERCENT_CPU .tree_view_always_by_pid=0 .tree_view=1 .sort_direction=-1 -.tree_sort_direction=1 +.tree_sort_direction=-1 .all_branches_collapsed=0 screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command .sort_key=IO_RATE diff --git a/.config/i3/config b/.config/i3/config index 866fe61..9e3ca07 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -15,8 +15,8 @@ default_floating_border normal # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -# font xos4:terminus 9 -font pango:DejaVu Sans Mono 8 + font xos4:terminus 9 +#font pango:DejaVu Sans Mono 8 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart @@ -25,19 +25,22 @@ exec --no-startup-id dex --autostart --environment i3 # control mpd bindsym $mod+Left exec --no-startup-id mpc prev && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" bindsym $mod+Right exec --no-startup-id mpc next && notify-send -e -t 800 -i music "Now playing" "$(mpc | head -n 1)" +bindcode $mod+82 exec --no-startup-id mpc seek +00:00:05 +bindcode $mod+63 exec --no-startup-id mpc seek -00:00:05 bindsym $mod+p exec --no-startup-id mpc toggle bindsym $mod+Up exec --no-startup-id mpc volume +5 bindsym $mod+Down exec --no-startup-id mpc volume -5 bindsym $mod+o exec --no-startup-id alacritty -e ncmpcpp exec --no-startup-id /home/naiji/.local/bin/update-now-playing -exec --no-startup-id /home/naiji/.local/bin/update-monero-price +exec --no-startup-id /home/naiji/.local/bin/update-crypto-price +exec --no-startup-id /home/naiji/.local/bin/update-keyboard-layout +exec --no-startup-id copyq +exec --no-startup-id redshift -l 0:0 -t 4500:4500 +exec --no-startup-id /usr/lib/notification-daemon-1.0/notification-daemon + # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork - # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet @@ -158,7 +161,8 @@ bindsym $mod+Ctrl+j resize shrink height 5 px or 5 ppt bindsym $mod+Ctrl+h resize grow width 5 px or 5 ppt bindsym $mod+F1 exec /home/naiji/.local/bin/dkill -bindsym $mod+F2 exec librewolf +bindsym $mod+F2 exec /home/naiji/.local/bin/helium-0.11.7.1-x86_64.AppImage +bindsym $mod+F3 exec /home/naiji/Mounts/hdd2/ZWIBooks/Linux/ZWIBook.AppImage bindsym $mod+F4 exec alacritty -e newsboat bindsym $mod+F5 exec keepassxc @@ -231,17 +235,19 @@ mode "$mode_music" { } bindsym $mod+Shift+B mode "$mode_explorer" -set $mode_explorer (b)ooks, (y)outube, (m)ovies, (a)udiobooks +set $mode_explorer (b)ooks, (y)outube, (m)ovies, (a)udiobooks, a(r)t mode "$mode_explorer" { bindsym m exec /home/naiji/.local/bin/dexplorer m dmenu, mode "default" bindsym y exec /home/naiji/.local/bin/dexplorer y dmenu, mode "default" bindsym b exec /home/naiji/.local/bin/dexplorer b dmenu, mode "default" bindsym a exec /home/naiji/.local/bin/dexplorer a dmenu, mode "default" + bindsym r exec /home/naiji/.local/bin/dexplorer r dmenu, mode "default" # exit system mode: "Enter" or "Escape" bindsym Return mode "default" bindsym Escape mode "default" } -bindsym $mod+Print exec --no-startup-id maim -s | xclip -selection clipboard -t image/png -i -bindsym Print exec --no-startup-id maim | xclip -selection clipboard -t image/png -i +bindsym $mod+Print exec --no-startup-id maim -s | copyq copy image/png - +bindsym Print exec --no-startup-id maim | copyq copy image/png - + diff --git a/.config/i3status/config b/.config/i3status/config index 35d7cdf..99ba551 100644 --- a/.config/i3status/config +++ b/.config/i3status/config @@ -28,6 +28,11 @@ order += "disk /home/naiji/Mounts/hdd2/" # order += "load" order += "memory" order += "tztime local" +order += "read_file language" + +read_file "language" { + path = "/home/naiji/.local/share/i3status/now-language" +} read_file "now-playing" { path = "/home/naiji/.local/share/i3status/now-playing" diff --git a/.config/ncmpcpp/bindings b/.config/ncmpcpp/bindings index 2d798ad..31b57e1 100644 --- a/.config/ncmpcpp/bindings +++ b/.config/ncmpcpp/bindings @@ -11,8 +11,6 @@ def_key "ctrl-f" page_down def_key "ctrl-b" page_up -def_key "n" - next def_key "P" previous def_key "space" @@ -43,20 +41,12 @@ def_key "J" select_item def_key "K" select_item -def_key "ctrl-e" - move_end def_key "t" move_home def_key "down" scroll_down def_key "up" scroll_up -def_key "shift-up" - move_selected_items_up -def_key "N" - move_sort_order_down -def_key "shift-down" - move_selected_items_down def_key "F" apply_filter def_key "*" diff --git a/.config/newsboat/urls b/.config/newsboat/urls index 4240924..780de18 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -1,4 +1,6 @@ +https://feeds.fireside.fm/easyfrench/rss https://www.freelists.org/feed/i3-announce +https://life-can-be-a-dream.net/rss.xml https://archlinux.org/feeds/news/ https://selfprivacy.org/blog/index.xml https://lukesmith.xyz/index.xml diff --git a/.config/profile/profile b/.config/profile/profile index 4b71a07..f81d683 100644 --- a/.config/profile/profile +++ b/.config/profile/profile @@ -49,5 +49,4 @@ unset TERMCAP # Man is much better than us at figuring this out unset MANPATH -alias vim="nvim" diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 4eebfb1..c3bd894 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -1,4 +1,5 @@ colorscheme shine +autocmd BufWritePre *.c normal gg=G set viminfo+=n~/.config/vim/viminfo set omnifunc=syntaxcomplete#Complete set gp=git\ grep\ -n @@ -21,6 +22,8 @@ inoremap inoremap inoremap +vnoremap :w !xclip -i -sel c + call plug#begin() Plug 'prabirshrestha/vim-lsp' @@ -29,41 +32,41 @@ Plug 'dense-analysis/ale' call plug#end() if executable('pylsp') - " pip install python-lsp-server - au User lsp_setup call lsp#register_server({ - \ 'name': 'pylsp', - \ 'cmd': {server_info->['pylsp']}, - \ 'allowlist': ['python'], - \ }) + " pip install python-lsp-server + au User lsp_setup call lsp#register_server({ + \ 'name': 'pylsp', + \ 'cmd': {server_info->['pylsp']}, + \ 'allowlist': ['python'], + \ }) endif function! s:on_lsp_buffer_enabled() abort - setlocal omnifunc=lsp#complete - setlocal signcolumn=yes - if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif - nmap gd (lsp-definition) - nmap gs (lsp-document-symbol-search) - nmap gS (lsp-workspace-symbol-search) - nmap gr (lsp-references) - nmap gi (lsp-implementation) - nmap gt (lsp-type-definition) - nmap rn (lsp-rename) - nmap [g (lsp-previous-diagnostic) - nmap ]g (lsp-next-diagnostic) - nmap K (lsp-hover) - nnoremap lsp#scroll(+4) - nnoremap lsp#scroll(-4) + setlocal omnifunc=lsp#complete + setlocal signcolumn=yes + if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif + nmap gd (lsp-definition) + nmap gs (lsp-document-symbol-search) + nmap gS (lsp-workspace-symbol-search) + nmap gr (lsp-references) + nmap gi (lsp-implementation) + nmap gt (lsp-type-definition) + nmap rn (lsp-rename) + nmap [g (lsp-previous-diagnostic) + nmap ]g (lsp-next-diagnostic) + nmap K (lsp-hover) + nnoremap lsp#scroll(+4) + nnoremap lsp#scroll(-4) - let g:lsp_format_sync_timeout = 1000 - autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') + let g:lsp_format_sync_timeout = 1000 + autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') - " refer to doc to add more commands + " refer to doc to add more commands endfunction augroup lsp_install - au! - " call s:on_lsp_buffer_enabled only for languages that has the server registered. - autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() + au! + " call s:on_lsp_buffer_enabled only for languages that has the server registered. + autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END let g:lsp_diagnostics_echo_cursor = 1 diff --git a/.local/bin/dexplorer b/.local/bin/dexplorer index 6ea04c5..43fe9ca 100755 --- a/.local/bin/dexplorer +++ b/.local/bin/dexplorer @@ -8,3 +8,4 @@ app="fzf" [ $1 == "y" ] && mpv --force-window=yes "$(find ~/Mounts/hdd2/YouTube/ -type f | $app)"; [ $1 == "m" ] && mpv --force-window=yes "$(find ~/Mounts/hdd2/Movies\ \&\ Series/ -type f | $app)"; [ $1 == "a" ] && mpv --force-window=yes "$(find ~/Mounts/hdd2/Audiobooks/ | $app)"; +[ $1 == "r" ] && nsxiv -ap "$(find ~/Mounts/hdd2/Art/ | $app)"; diff --git a/.local/share/backgrounds/full.png b/.local/share/backgrounds/full.png index 4ea3846..19d3696 100644 Binary files a/.local/share/backgrounds/full.png and b/.local/share/backgrounds/full.png differ diff --git a/.local/share/backgrounds/levitan.png b/.local/share/backgrounds/levitan.png new file mode 100644 index 0000000..9b95afd Binary files /dev/null and b/.local/share/backgrounds/levitan.png differ diff --git a/.local/share/backgrounds/wallpaper.png b/.local/share/backgrounds/wallpaper.png index 3bbfd6b..0a74782 100644 Binary files a/.local/share/backgrounds/wallpaper.png and b/.local/share/backgrounds/wallpaper.png differ