diff --git a/.config/Xresources b/.config/Xresources deleted file mode 100644 index 611f39ab..00000000 --- a/.config/Xresources +++ /dev/null @@ -1,156 +0,0 @@ -!! Transparency (0-1): -*.alpha: 0.8 - -!! Set a default font and font size as below: -*.font: monospace:size=10 - -/* name dark light */ -/* black 0 8 */ -/* red 1 9 */ -/* green 2 10 */ -/* yellow 3 11 */ -/* blue 4 12 */ -/* purple 5 13 */ -/* cyan 6 14 */ -/* white 7 15 */ - -/* !! gruvbox: */ -/* *.color0: #1d2021 */ -/* *.color1: #cc241d */ -/* *.color2: #98971a */ -/* *.color3: #d79921 */ -/* *.color4: #458588 */ -/* *.color5: #b16286 */ -/* *.color6: #689d6a */ -/* *.color7: #a89984 */ -/* *.color8: #928374 */ -/* *.color9: #fb4934 */ -/* *.color10: #b8bb26 */ -/* *.color11: #fabd2f */ -/* *.color12: #83a598 */ -/* *.color13: #d3869b */ -/* *.color14: #8ec07c */ -/* *.color15: #ebdbb2 */ -/* *.color256: #1d2021 */ -/* *.color257: #ebdbb2 */ - -/* !! gruvbox light: */ -/* *.color0: #fbf1c7 */ -/* *.color1: #cc241d */ -/* *.color2: #98971a */ -/* *.color3: #d79921 */ -/* *.color4: #458588 */ -/* *.color5: #b16286 */ -/* *.color6: #689d6a */ -/* *.color7: #7c6f64 */ -/* *.color8: #928374 */ -/* *.color9: #9d0006 */ -/* *.color10: #79740e */ -/* *.color11: #b57614 */ -/* *.color12: #076678 */ -/* *.color13: #8f3f71 */ -/* *.color14: #427b58 */ -/* *.color15: #3c3836 */ -/* *.background: #fbf1c7 */ -/* *.foreground: #282828 */ -/* st.alpha: 0.9 */ - -/* !! brogrammer: */ -/* *.foreground: #d6dbe5 */ -/* *.background: #131313 */ -/* *.color0: #1f1f1f */ -/* *.color8: #d6dbe5 */ -/* *.color1: #f81118 */ -/* *.color9: #de352e */ -/* *.color2: #2dc55e */ -/* *.color10: #1dd361 */ -/* *.color3: #ecba0f */ -/* *.color11: #f3bd09 */ -/* *.color4: #2a84d2 */ -/* *.color12: #1081d6 */ -/* *.color5: #4e5ab7 */ -/* *.color13: #5350b9 */ -/* *.color6: #1081d6 */ -/* *.color14: #0f7ddb */ -/* *.color7: #d6dbe5 */ -/* *.color15: #ffffff */ -/* *.colorBD: #d6dbe5 */ - -/* ! base16 */ -/* *.color0: #181818 */ -/* *.color1: #ab4642 */ -/* *.color2: #a1b56c */ -/* *.color3: #f7ca88 */ -/* *.color4: #7cafc2 */ -/* *.color5: #ba8baf */ -/* *.color6: #86c1b9 */ -/* *.color7: #d8d8d8 */ -/* *.color8: #585858 */ -/* *.color9: #ab4642 */ -/* *.color10: #a1b56c */ -/* *.color11: #f7ca88 */ -/* *.color12: #7cafc2 */ -/* *.color13: #ba8baf */ -/* *.color14: #86c1b9 */ -/* *.color15: #f8f8f8 */ - -/* !! solarized */ -/* *.color0: #073642 */ -/* *.color1: #dc322f */ -/* *.color2: #859900 */ -/* *.color3: #b58900 */ -/* *.color4: #268bd2 */ -/* *.color5: #d33682 */ -/* *.color6: #2aa198 */ -/* *.color7: #eee8d5 */ -/* *.color9: #cb4b16 */ -/* *.color8: #fdf6e3 */ -/* *.color10: #586e75 */ -/* *.color11: #657b83 */ -/* *.color12: #839496 */ -/* *.color13: #6c71c4 */ -/* *.color14: #93a1a1 */ -/* *.color15: #fdf6e3 */ - -/* !! xterm */ -/* *.color0: #000000 */ -/* *.color1: #cd0000 */ -/* *.color2: #00cd00 */ -/* *.color3: #cdcd00 */ -/* *.color4: #0000cd */ -/* *.color5: #cd00cd */ -/* *.color6: #00cdcd */ -/* *.color7: #e5e5e5 */ -/* *.color8: #4d4d4d */ -/* *.color9: #ff0000 */ -/* *.color10: #00ff00 */ -/* *.color11: #ffff00 */ -/* *.color12: #0000ff */ -/* *.color13: #ff00ff */ -/* *.color14: #00ffff */ -/* *.color15: #aabac8 */ -/* *.background: #000000 */ - -/* ! Dracula Xresources palette */ -/* *.foreground: #F8F8F2 */ -/* *.background: #282A36 */ -/* *.color0: #000000 */ -/* *.color8: #4D4D4D */ -/* *.color1: #FF5555 */ -/* *.color9: #FF6E67 */ -/* *.color2: #50FA7B */ -/* *.color10: #5AF78E */ -/* *.color3: #F1FA8C */ -/* *.color11: #F4F99D */ -/* *.color4: #BD93F9 */ -/* *.color12: #CAA9FA */ -/* *.color5: #FF79C6 */ -/* *.color13: #FF92D0 */ -/* *.color6: #8BE9FD */ -/* *.color14: #9AEDFE */ -/* *.color7: #BFBFBF */ -/* *.color15: #E6E6E6 */ - -/* *.background: .color0 */ -/* *.color256: 0#1d2021 */ -/* *.color257: 15#ebdbb2 */ diff --git a/.config/aliasrc b/.config/aliasrc index 468483ac..b8911e61 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -9,14 +9,12 @@ alias \ mv="mv -iv" \ rm="rm -vI" \ mkd="mkdir -pv" \ - yt="youtube-dl --add-metadata -i" \ - yta="yt -x -f bestaudio/best" \ ffmpeg="ffmpeg -hide_banner" # Colorize commands when possible. alias \ - ls="ls -hN --color=auto --group-directories-first" \ - grep="grep --color=auto" \ + ls="ls --literal -l --human-readable --color=auto --group-directories-first" \ + grep="grep -n --color=auto" \ diff="diff --color=auto" \ ccat="highlight --out-format=ansi" @@ -24,20 +22,15 @@ alias \ alias \ ka="killall" \ g="git" \ - trem="transmission-remote" \ - YT="youtube-viewer" \ sdn="sudo shutdown -h now" \ f="$FILE" \ e="$EDITOR" \ v="$EDITOR" \ p="sudo pacman" \ - xi="sudo xbps-install" \ - xr="sudo xbps-remove -R" \ - xq="xbps-query" \ z="zathura" alias \ magit="nvim -c MagitOnly" \ ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/zshnameddirrc" \ - weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \ tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf" \ + weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \ diff --git a/.local/share/larbs/larbs.png b/.config/assets/arch-user.png similarity index 100% rename from .local/share/larbs/larbs.png rename to .config/assets/arch-user.png diff --git a/.config/assets/lockscreen.png b/.config/assets/lockscreen.png new file mode 100644 index 00000000..8462bd10 Binary files /dev/null and b/.config/assets/lockscreen.png differ diff --git a/.config/assets/system_screenshot.png b/.config/assets/system_screenshot.png new file mode 100644 index 00000000..f533f6a8 Binary files /dev/null and b/.config/assets/system_screenshot.png differ diff --git a/.config/assets/wallpaper.png b/.config/assets/wallpaper.png new file mode 100644 index 00000000..937977e3 Binary files /dev/null and b/.config/assets/wallpaper.png differ diff --git a/.config/bspwm/bspwm/bspwmrc b/.config/bspwm/bspwm/bspwmrc deleted file mode 100755 index c0f45d15..00000000 --- a/.config/bspwm/bspwm/bspwmrc +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# If refreshing bspwm, remove all previous rules to prevent doubling up. -bspc rule -r "*" - -xsetroot -cursor_name left_ptr - -# We look for a non-laptop monitor to use for default, but use the laptop -# screen (LVDS) if there's nothing else. This is because I assume that if you -# have an extra screen attached to a laptop, you want to use that. -mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)" - -# if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then -# xrandr --output "$mainmonitor" --auto --output LVDS1 --off -# else -# mainmonitor="LVDS1" -# xrandr --output LVDS1 --auto -# fi - -# Start workspaces on the main monitor. -bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 -bspc desktop -f 1 - -# If you want a multi-monitor display or something else, I leave that to you to -# arrange. I have this sensible default for most people's use cases. - -bspc config border_width 3 -bspc config window_gap 15 -bspc config top_padding 24 # top_padding I set equal to polybar's height -bspc config focus_follows_pointer true - -bspc rule -a Zathura state=tiled - -dropdownname="dropdown" -bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 & -bspc rule -a St:$dropdownname hidden=on -bspc rule -a St:$dropdownname sticky=on -bspc rule -a St:$dropdownname state=floating - -bspc config external_rules_command "$(which floaters)" diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc deleted file mode 100755 index 1a4c639a..00000000 --- a/.config/bspwm/bspwmrc +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -# If refreshing bspwm, remove all previous rules to prevent doubling up. -bspc rule -r "*" - -# We look for a non-laptop monitor to use for default, but use the laptop -# screen (LVDS) if there's nothing else. This is because I assume that if you -# have an extra screen attached to a laptop, you want to use that. -mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)" - -if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then - xrandr --output "$mainmonitor" --auto --output LVDS1 --off -fi - -# Start workspaces on the main monitor. -bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 -bspc desktop -f 1 - -# If you want a multi-monitor display or something else, I leave that to you to -# arrange. I have this sensible default for most people's use cases. - - -bspc config border_width 3 -bspc config window_gap 15 -bspc config top_padding 24 # top_padding I set equal to polybar's height -bspc config focus_follows_pointer true - -dropdownname="dropdown" -bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 & -bspc rule -a St:$dropdownname hidden=on -bspc rule -a St:$dropdownname sticky=on -bspc rule -a St:$dropdownname state=floating - -bspc config external_rules_command "$(which floaters)" diff --git a/.config/directories b/.config/directories index 879219c8..28630222 100644 --- a/.config/directories +++ b/.config/directories @@ -1,11 +1,11 @@ # You can add comments to these files with # -h ~/ -d ~/Documents -D ~/Downloads -m ~/Music -pp ~/Pictures -vv ~/Videos cf ${XDG_CONFIG_HOME:-$HOME/.config} cac ${XDG_CACHE_HOME:-$HOME/.cache} -sc ~/.local/bin +d ~/downloads +gh ~/github +h ~/ +lb ~/.local/bin mn /mnt +psc ~/.local/bin/polybar_scripts +pp ~/pictures +sc ~/.local/bin diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index abf55860..56cb908b 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,7 +1,7 @@ [global] monitor = 0 follow = keyboard - geometry = "350x5-0+24" + geometry = "400x5-0+24" indicate_hidden = yes shrink = yes transparency = 20 diff --git a/.config/files b/.config/files index 6e074998..021eb991 100644 --- a/.config/files +++ b/.config/files @@ -1,15 +1,8 @@ -bf ${XDG_CONFIG_HOME:-$HOME/.config}/files -bd ${XDG_CONFIG_HOME:-$HOME/.config}/directories -bw ${XDG_CONFIG_HOME:-$HOME/.config}/bookmarks -cfa ${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc -cfz $ZDOTDIR/.zshrc -cfv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim -cfm ${XDG_CONFIG_HOME:-$HOME/.config}/mutt/muttrc -cfx ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources -cfu ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/urls -cfn ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/config -cfmb ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/bindings -cfmc ${XDG_CONFIG_HOME:-$HOME/.config}/ncmpcpp/config -cfk ${XDG_CONFIG_HOME:-$HOME/.config}/sxhkd/sxhkdrc -cfi ${XDG_CONFIG_HOME:-$HOME/.config}/i3/config -cfb ${XDG_CONFIG_HOME:-$HOME/.config}/i3blocks/config +bf ${XDG_CONFIG_HOME:-$HOME/.config}/files +bd ${XDG_CONFIG_HOME:-$HOME/.config}/directories +cfa ${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc +cfz $ZDOTDIR/.zshrc +cfv ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/init.vim +cfi ${XDG_CONFIG_HOME:-$HOME/.config}/i3/config +cft $~/.tmux.conf +cfp $~/.config/polybar/config diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 2d58803c..dd614184 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -4,32 +4,25 @@ serif - Linux Libertine - Joy Pixels - Noto Color Emoji + Source Code Pro sans-serif - Linux Biolinum - Joy Pixels - Noto Color Emoji + Source Code Pro sans - Linux Biolinum - Joy Pixels - Noto Color Emoji + Source Code Pro monospace - Noto Sans Mono - Liberation Mono + Source Code Pro diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 00000000..22070480 --- /dev/null +++ b/.config/git/config @@ -0,0 +1,34 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + editor = vim + excludesfile = ~/.gitignore +[user] + name = Vlad Doster + email = mvdoster@gmail.com +[color] + status = auto + commit = auto + diff = auto + branch = auto +[alias] + a = add + au = add -u + p = push + pu = pull + st = status -uno + co = checkout + cm = commit -m + br = branch + ff = merge origin + diff = diff --ignore-space-change + dst = diff --staged +[apply] + whitespace = strip + whitespace = nowarn +[push] + default = simple +[credential] + helper = cache --timeout=28800 diff --git a/.config/git/ignore b/.config/git/ignore new file mode 100644 index 00000000..41352c50 --- /dev/null +++ b/.config/git/ignore @@ -0,0 +1,19 @@ +.cache/ +.local/lib/python3.7/ +.local/lib/python3.8/ +.local/share/jupyter/ +.local/share/Trash/ +.nv/ +.PyCharm20[0-9][0-9].[0-9]/ +.rstudio-desktop/ +Code - OSS/ +downloads/ +discord/ +GitKraken/ +github/ +google-chrome/ +libreoffice/ +pulse/ +Slack/ +LICENSE +README.md diff --git a/.config/i3/config b/.config/i3/config deleted file mode 100644 index ed7e7a59..00000000 --- a/.config/i3/config +++ /dev/null @@ -1,359 +0,0 @@ -# vim: filetype=i3 -# File originally by Luke Smith - -# This config file will use environmental variables such as $BROWSER and $TERMINAL. -# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below: -# -# export TERMINAL="st" - -# #---Basic Definitions---# # -set $inner_gaps 15 -set $outer_gaps 15 -set $term --no-startup-id $TERMINAL -set $mod Mod4 -set $stoprec --no-startup-id dmenurecord kill -set $shutdown sudo -A shutdown -h now -set $reboot sudo -A reboot -set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager -set $hibernate sudo -A systemctl suspend - -# #---Gaps---# # -for_window [class="^.*"] border pixel 2 -gaps inner $inner_gaps -gaps outer $outer_gaps - -# #---Dropdown Windows---# # -# General dropdown window traits. The order can matter. -for_window [instance="dropdown_*"] floating enable -for_window [instance="dropdown_*"] move scratchpad -for_window [instance="dropdown_*"] sticky enable -for_window [instance="dropdown_*"] scratchpad show -for_window [instance="dropdown_tmuxdd"] resize set 625 450 -for_window [instance="dropdown_dropdowncalc"] resize set 800 300 -for_window [instance="dropdown_tmuxdd"] border pixel 3 -for_window [instance="dropdown_dropdowncalc"] border pixel 2 -for_window [instance="dropdown_*"] move position center - -bar { - font pango:mono 10 - status_command i3blocks - position top - mode dock - modifier None -} - -# #---Basic Bindings---# # -bindsym $mod+Return exec $term -bindsym $mod+Shift+Return exec --no-startup-id samedir - -bindsym $mod+Shift+space floating toggle -bindsym $mod+space focus mode_toggle - -bindsym $mod+Escape workspace prev -bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3 exit" - -# bindsym $mod+BackSpace -bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot" - -bindsym $mod+grave exec --no-startup-id dmenuunicode -##bindsym $mod+asciitilde - -#STOP/HIDE EVERYTHING: -bindsym $mod+Shift+Delete exec --no-startup-id pulsemixer --mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e lf - -# Show selection: -bindsym $mod+Insert exec --no-startup-id showclip -##bindsym $mod+Pause - -# #---Letter Key Bindings---# # -bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill -bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid` - -bindsym $mod+w exec --no-startup-id $BROWSER -bindsym $mod+Shift+w exec $term -e nmtui - -bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks -bindsym $mod+Shift+e exec --no-startup-id tutorialvids - -bindsym $mod+r exec $term -e lf -bindsym $mod+Shift+r exec --no-startup-id winresize - -bindsym $mod+t split toggle -bindsym $mod+Shift+t gaps inner current set $inner_gaps; gaps outer current set $outer_gaps - -bindsym $mod+y exec $term -e calcurse -bindsym $mod+Shift+y exec --no-startup-id i3resize left - -bindsym $mod+u exec --no-startup-id ddspawn tmuxdd -bindsym $mod+Shift+u exec --no-startup-id i3resize down - -bindsym $mod+i exec $term -e htop -bindsym $mod+Shift+i exec --no-startup-id i3resize up - -bindsym $mod+o sticky toggle -bindsym $mod+Shift+o exec --no-startup-id i3resize right - -bindsym $mod+p exec --no-startup-id mpc toggle -bindsym $mod+Shift+p exec --no-startup-id mpc pause - -bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+Shift+a exec $term -e pulsemixer - -bindsym $mod+s gaps inner current plus 5 -bindsym $mod+Shift+s gaps inner current minus 5 - -bindsym $mod+d exec --no-startup-id dmenu_run -bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0 - -set $freeze Distraction-free mode (super+shift+f to reactivate bindings) -mode "$freeze" { bindsym $mod+Shift+f mode "default" -} - -bindsym $mod+f fullscreen toggle -bindsym $mod+Shift+f mode "$freeze" ;; exec --no-startup-id notify-send "Distraction-free mode activated." "Press Super+Shift+f to return." - -bindsym $mod+g workspace prev -bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5 - -bindsym $mod+h focus left -bindsym $mod+Shift+h move left 30 -bindsym $mod+Ctrl+h move workspace to output left - -bindsym $mod+j focus down -bindsym $mod+Shift+j move down 30 -bindsym $mod+Ctrl+j move workspace to output down - -bindsym $mod+k focus up -bindsym $mod+Shift+k move up 30 -bindsym $mod+Ctrl+k move workspace to output up - -bindsym $mod+l focus right -bindsym $mod+Shift+l move right 30 -bindsym $mod+Ctrl+l move workspace to output right - -bindsym $mod+z gaps outer current plus 5 -bindsym $mod+Shift+z gaps outer current minus 5 - -bindsym $mod+x exec --no-startup-id xset dpms force off && mpc pause && pauseallmpv && slock & -bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown" - -bindsym $mod+c exec --no-startup-id cabl -bindsym $mod+Shift+c exec --no-startup-id camtoggle - -bindsym $mod+v exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex" -#bindsym $mod+Shift+v - -bindsym $mod+b bar mode toggle -bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left - -bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks -bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right - -bindsym $mod+m exec --no-startup-id $term -e ncmpcpp -bindsym $mod+Shift+m exec --no-startup-id pulsemixer --toggle-mute && pkill -RTMIN+10 i3blocks - -# #---Workspace Bindings---# # -bindsym $mod+Home workspace $ws1 -bindsym $mod+Shift+Home move container to workspace $ws1 -bindsym $mod+End workspace $ws10 -bindsym $mod+Shift+End move container to workspace $ws10 -bindsym $mod+Prior workspace prev -bindsym $mod+Shift+Prior move container to workspace prev -bindsym $mod+Next workspace next -bindsym $mod+Shift+Next move container to workspace next -bindsym $mod+Tab workspace back_and_forth -bindsym $mod+XF86Back workspace prev -bindsym $mod+Shift+XF86Back move container to workspace prev -bindsym $mod+XF86Forward workspace next -bindsym $mod+Shift+XF86Forward move container to workspace next -bindsym $mod+semicolon workspace next -bindsym $mod+apostrophe split horizontal ;; exec $term -bindsym $mod+slash split vertical ;; exec $term -bindsym $mod+Shift+slash kill -bindsym $mod+backslash workspace back_and_forth - -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -for_window [class="Pinentry"] sticky enable -for_window [class="sent"] border pixel 0px -for_window [title="GIMP Startup"] move workspace $ws5 -for_window [class="Gimp"] move workspace $ws5 -for_window [window_role="GtkFileChooserDialog"] resize set 800 600 -for_window [window_role="GtkFileChooserDialog"] move position center -for_window [title="Default - Wine desktop"] floating enable - -# Bindings to make the webcam float and stick. -for_window [title="mpvfloat"] floating enable -for_window [title="mpvfloat"] sticky enable -for_window [title="mpvfloat"] border pixel 0 -no_focus [title="mpvfloat"] - -# #---Function Buttons---# # -bindsym $mod+F1 exec --no-startup-id groff -mom ${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom -Tpdf | zathura - -bindsym $mod+F2 restart -bindsym $mod+F3 exec --no-startup-id displayselect -bindsym $mod+F4 exec --no-startup-id prompt "Hibernate computer?" "$hibernate" -bindsym $mod+F5 exec --no-startup-id $netrefresh -bindsym $mod+F6 exec --no-startup-id torwrap -bindsym $mod+F7 exec --no-startup-id td-toggle -bindsym $mod+F8 exec --no-startup-id mailsync -bindsym $mod+F9 exec --no-startup-id dmenumount -bindsym $mod+F10 exec --no-startup-id dmenuumount -bindsym $mod+F11 exec --no-startup-id ducksearch -bindsym $mod+F12 exec $term -e nmtui -bindsym $mod+Shift+F1 exec --no-startup-id toggle-welcome - -# #---Arrow Keys---# # -bindsym $mod+Left focus left -bindsym $mod+Shift+Left move left -bindsym $mod+Ctrl+Left move workspace to output left -bindsym $mod+Down focus down -bindsym $mod+Shift+Down move down -bindsym $mod+Ctrl+Down move workspace to output down -bindsym $mod+Up focus up -bindsym $mod+Shift+Up move up -bindsym $mod+Ctrl+Up move workspace to output up -bindsym $mod+Right focus right -bindsym $mod+Shift+Right move right -bindsym $mod+Ctrl+Right move workspace to output right - -# #---Media Keys---# # -# Volume keys -bindsym $mod+plus exec --no-startup-id pulsemixer --change-volume +5 && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id pulsemixer --change-volume +15 && pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id pulsemixer --change-volume -5 && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id pulsemixer --change-volume -15 && pkill -RTMIN+10 i3blocks -bindsym $mod+less exec --no-startup-id mpc prev -bindsym $mod+Shift+less exec --no-startup-id mpc seek 0% -bindsym $mod+greater exec --no-startup-id mpc next -bindsym $mod+Shift+greater exec --no-startup-id mpc next - -# For advancing forward/backward in an mpd song -bindsym $mod+bracketleft exec --no-startup-id mpc seek -10 -bindsym $mod+Shift+bracketleft exec --no-startup-id mpc seek -120 -bindsym $mod+bracketright exec --no-startup-id mpc seek +10 -bindsym $mod+Shift+bracketright exec --no-startup-id mpc seek +120 - -# For screenshots and recording -bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" -bindsym Shift+Print exec --no-startup-id maimpick -bindsym $mod+Print exec --no-startup-id dmenurecord -bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey" -bindsym $mod+Delete exec $stoprec -bindsym XF86Launch1 exec --no-startup-id xset dpms force off - -# #---Extra XF86 Keys---# # -bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute && pkill -RTMIN+10 i3blocks -bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 && pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -10 && pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -1 && pkill -RTMIN+10 i3blocks -bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 && pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +10 && pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +1 && pkill -RTMIN+10 i3blocks -bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown" -##bindsym XF86Copy exec -##bindsym XF86Open exec -##bindsym XF86Paste exec -##bindsym XF86Cut exec -##bindsym XF86MenuKB exec -bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -##bindsym XF86Sleep This binding is typically mapped by systemd automatically. -##bindsym XF86WakeUp exec -bindsym XF86Explorer exec $term -e lf -##bindsym XF86Send exec -##bindsym XF86Xfer exec -bindsym XF86WWW exec --no-startup-id $BROWSER -##bindsym XF86DOS exec -bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen -##bindsym XF86RotateWindows exec -##bindsym XF86TaskPane exec -##bindsym XF86Favorites exec -bindsym XF86MyComputer exec $term -e lf -##bindsym XF86Back exec -##bindsym XF86Forward exec -bindsym XF86Eject exec --no-startup-id dmenuumount -bindsym XF86AudioNext exec --no-startup-id mpc next -bindsym XF86AudioPlay exec --no-startup-id mpc toggle -bindsym XF86AudioPrev exec --no-startup-id mpc prev -bindsym XF86AudioStop exec --no-startup-id mpc toggle -##bindsym XF86AudioRecord -bindsym XF86AudioRewind exec --no-startup-id mpc seek -10 -bindsym XF86AudioForward exec --no-startup-id mpc seek +10 -##bindsym XF86Phone exec -##bindsym XF86Tools exec -bindsym XF86HomePage exec $BROWSER https://lukesmith.xyz -bindsym XF86Reload restart -##bindsym XF86ScrollUp exec -##bindsym XF86ScrollDown exec -##bindsym XF86New exec -##bindsym XF86LaunchA exec -##bindsym XF86LaunchB exec -##bindsym XF86Launch2 exec -##bindsym XF86Launch3 exec -##bindsym XF86Launch4 exec -##bindsym XF86Launch5 exec -##bindsym XF86Launch6 exec -##bindsym XF86Launch7 exec -##bindsym XF86Launch8 exec -##bindsym XF86Launch9 exec -#bindsym XF86AudioMicMute exec $micmute -bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad -bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0 -bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1 -bindsym XF86Suspend exec --no-startup-id lockscreen -bindsym XF86Close kill -bindsym XF86WebCam exec --no-startup-id camtoggle -bindsym XF86Mail exec $term -e neomutt && pkill -RTMIN+12 i3blocks -bindsym XF86Messenger exec $term -e weechat -bindsym XF86Search exec $BROWSER https://duckduckgo.com -##bindsym XF86Go exec -##bindsym XF86Finance exec -##bindsym XF86Game exec -bindsym XF86Shop exec $BROWSER https://ebay.com -bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15 -bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15 -bindsym XF86AudioMedia exec --no-startup-id $term -e ncmpcpp -bindsym XF86Display exec --no-startup-id displayselect -#bindsym XF86KbdLightOnOff exec -#bindsym XF86KbdBrightnessDown exec -#bindsym XF86KbdBrightnessUp exec -##bindsym XF86Reply exec -##bindsym XF86MailForward exec -##bindsym XF86Save exec -bindsym XF86Documents exec $term -e lf ~/Documents -##bindsym XF86Battery exec -##bindsym XF86Bluetooth exec -bindsym XF86WLAN exec $netrefresh diff --git a/.config/i3blocks/config b/.config/i3blocks/config deleted file mode 100644 index e83de5a0..00000000 --- a/.config/i3blocks/config +++ /dev/null @@ -1,68 +0,0 @@ -command=~/.local/bin/statusbar/$BLOCK_NAME -separator_block_width=15 -markup=pango - -[record] -command=cat /tmp/recordingicon -interval=once -signal=9 - -[music] -label=🎼 -interval=once -signal=11 - -[news] -interval=once -signal=6 - -#[iplocate] -#interval=30 - -[pacpackages] -interval=once -signal=8 - -[torrent] -interval=20 -signal=7 - -[weather] -interval=18000 -signal=5 - -[mailbox] -interval=180 -signal=12 - -#[memory] -#interval=30 - -#[cpu] -#interval=15 - -[volume] -interval=once -signal=10 - -#[disk] -#interval=60 -#command=disk / - -#[disk] -#interval=60 -#command=disk /home - -[battery] -command=battery BAT0 -interval=5 - -[clock] -label=📅 -interval=30 - -[internet] -interval=10 - -[help-icon] -interval=once diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index e3c72730..00000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,88 +0,0 @@ -# Luke's lf settings - -# Basic vars -set shell bash -set shellopts '-eu' -set ifs "\n" -set scrolloff 10 -set color256 -set icons -set period 1 - -# Vars that depend on environmental variables -$lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope" - -# cmds/functions -cmd open ${{ - case $(file --mime-type $f -b) in - image/vnd.djvu|application/pdf|application/octet-stream) setsid zathura $fx >/dev/null 2>&1 & ;; - text/troff) man ./ $f;; - text/*) $EDITOR $fx;; - image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;; - image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\)\(_large\)*$" | setsid sxiv -aio 2>/dev/null | lf-select & ;; - audio/*) mpv $f ;; - video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;; - application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;; - *) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;; - esac -}} - -cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" - -cmd delete ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - printf "%s\n\t" "$fx" - printf "delete?[y/N]" - read ans - [ $ans = "y" ] && rm -rf $fx -}} - -cmd moveto ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - clear; echo "Move to where?" - dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" && - eval mv -iv $fx $dest && - notify-send "🚚 File(s) moved." "File(s) moved to $dest." -}} - -cmd copyto ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - clear; echo "Copy to where?" - dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" && - eval cp -ivr $fx $dest && - notify-send "📋 File(s) copied." "File(s) copies to $dest." -}} - -cmd bulkrename ${{ - vidir -}} - -# Bindings -map $lf -remote "send $id select '$(fzf)'" -map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" -map gh -map g top -map D delete -map C copyto -map M moveto -map push :mkdir -map reload -map shell -map x $$f -map X !$f -map o &mimeopen $f -map O $mimeopen --ask $f - -map A rename # at the very end -map c push A # new rename -map I push A # at the very beginning -map i push A # before extention -map a push A # after extention -map b bulkrename - -map down -map up -map V push :!nvim diff --git a/.config/lf/scope b/.config/lf/scope deleted file mode 100755 index 45f9f338..00000000 --- a/.config/lf/scope +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -set -C -f -u -#IFS=$'\n' -IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}" - -# ANSI color codes are supported. -# STDIN is disabled, so interactive scripts won't work properly - -# This script is considered a configuration file and must be updated manually. - -# Meanings of exit codes: -# code | meaning | action of ranger -# -----+------------+------------------------------------------- -# 0 | success | Display stdout as preview -# 1 | no preview | Display no preview at all -# 2 | plain text | Display the plain content of the file - -# Script arguments -FILE_PATH="${1}" # Full path of the highlighted file -HEIGHT="${2}" - -#FILE_EXTENSION="${FILE_PATH##*.}" -#FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]') - -# Settings -HIGHLIGHT_SIZE_MAX=262143 # 256KiB -HIGHLIGHT_TABWIDTH=8 -HIGHLIGHT_STYLE='pablo' - - -handle_mime() { - local mimetype="${1}" - case "${mimetype}" in - text/html) w3m -dump "${FILE_PATH}" ;; - text/troff) man ./ "${FILE_PATH}" | col -b ;; - text/* | */xml) - if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then - exit 2 - fi - if [ "$( tput colors )" -ge 256 ]; then - local highlight_format='xterm256' - else - local highlight_format='ansi' - fi - highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \ - --style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" ;; - application/zip) atool --list -- "${FILE_PATH}" ;; - image/*) chafa --fill=block --symbols=block -c 256 -s 80x"${HEIGHT}" "${FILE_PATH}" || exit 1;; - video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" || exit 1;; - */pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;; - *opendocument*) odt2txt "${FILE_PATH}" ;; - esac -} - -MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )" -handle_mime "${MIMETYPE}" -exit 1 diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 30988ccf..fb42cd50 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -17,3 +17,7 @@ application/rss+xml=rss.desktop video/x-matroska=video.desktop x-scheme-handler/lbry=lbry.desktop inode/directory=file.desktop + +[Added Associations] +text/plain=code-oss.desktop; +application/x-shellscript=code-oss.desktop; diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf deleted file mode 100644 index bf329d61..00000000 --- a/.config/mpd/mpd.conf +++ /dev/null @@ -1,21 +0,0 @@ -music_directory "~/Music" -playlist_directory "~/.config/mpd/playlists" - -auto_update "yes" -bind_to_address "127.0.0.1" -restore_paused "yes" -max_output_buffer_size "16384" - -audio_output { - type "pulse" - name "pulse" - #type "alsa" - #name "ALSA" -} - -audio_output { - type "fifo" - name "Visualizer feed" - path "/tmp/mpd.fifo" - format "44100:16:2" -} diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf deleted file mode 100644 index d614b151..00000000 --- a/.config/mpv/input.conf +++ /dev/null @@ -1,5 +0,0 @@ -l seek 5 -h seek -5 -j seek -60 -k seek 60 -S cycle sub diff --git a/.config/mpv/scripts/modules.lua b/.config/mpv/scripts/modules.lua deleted file mode 100644 index 37b69b30..00000000 --- a/.config/mpv/scripts/modules.lua +++ /dev/null @@ -1,3 +0,0 @@ -local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/" -function load(relative_path) dofile(mpv_scripts_dir_path .. relative_path) end -load("mpvSockets/mpvSockets.lua") diff --git a/.config/mpv/scripts/mpvSockets b/.config/mpv/scripts/mpvSockets deleted file mode 160000 index 8415a08d..00000000 --- a/.config/mpv/scripts/mpvSockets +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8415a08d99a46213c918613cfe1e088071018db9 diff --git a/.config/ncmpcpp/bindings b/.config/ncmpcpp/bindings deleted file mode 100644 index 645e41fe..00000000 --- a/.config/ncmpcpp/bindings +++ /dev/null @@ -1,479 +0,0 @@ -############################################################## -## This is the example bindings file. Copy it to ## -## ~/.ncmpcpp/bindings or $XDG_CONFIG_HOME/ncmpcpp/bindings ## -## and set up your preferences ## -############################################################## -# -#def_key "mouse" -# mouse_event -# -#def_key "up" -# scroll_up -# -#def_key "shift-up" -# select_item -# scroll_up -# -#def_key "down" -# scroll_down -# -#def_key "shift-down" -# select_item -# scroll_down -# -#def_key "[" -# scroll_up_album -# -#def_key "]" -# scroll_down_album -# -#def_key "{" -# scroll_up_artist -# -#def_key "}" -# scroll_down_artist -# -#def_key "page_up" -# page_up -# -#def_key "page_down" -# page_down -# -#def_key "home" -# move_home -# -#def_key "end" -# move_end -# -#def_key "insert" -# select_item -# -#def_key "enter" -# enter_directory -# -#def_key "enter" -# toggle_output -# -#def_key "enter" -# run_action -# -#def_key "enter" -# play_item -# -#def_key "space" -# add_item_to_playlist -# -#def_key "space" -# toggle_lyrics_update_on_song_change -# -#def_key "space" -# toggle_visualization_type -# -#def_key "delete" -# delete_playlist_items -# -#def_key "delete" -# delete_browser_items -# -#def_key "delete" -# delete_stored_playlist -# -#def_key "right" -# next_column -# -#def_key "right" -# slave_screen -# -#def_key "right" -# volume_up -# -#def_key "+" -# volume_up -# -#def_key "left" -# previous_column -# -#def_key "left" -# master_screen -# -#def_key "left" -# volume_down -# -#def_key "-" -# volume_down -# -#def_key ":" -# execute_command -# -#def_key "tab" -# next_screen -# -#def_key "shift-tab" -# previous_screen -# -#def_key "f1" -# show_help -# -#def_key "1" -# show_playlist -# -#def_key "2" -# show_browser -# -#def_key "2" -# change_browse_mode -# -#def_key "3" -# show_search_engine -# -#def_key "3" -# reset_search_engine -# -#def_key "4" -# show_media_library -# -#def_key "4" -# toggle_media_library_columns_mode -# -#def_key "5" -# show_playlist_editor -# -#def_key "6" -# show_tag_editor -# -#def_key "7" -# show_outputs -# -#def_key "8" -# show_visualizer -# -#def_key "=" -# show_clock -# -#def_key "@" -# show_server_info -# -#def_key "s" -# stop -# -#def_key "p" -# pause -# -#def_key ">" -# next -# -#def_key "<" -# previous -# -#def_key "ctrl-h" -# jump_to_parent_directory -# -#def_key "ctrl-h" -# replay_song -# -#def_key "backspace" -# jump_to_parent_directory -# -#def_key "backspace" -# replay_song -# -#def_key "f" -# seek_forward -# -#def_key "b" -# seek_backward -# -#def_key "r" -# toggle_repeat -# -#def_key "z" -# toggle_random -# -#def_key "y" -# save_tag_changes -# -#def_key "y" -# start_searching -# -#def_key "y" -# toggle_single -# -#def_key "R" -# toggle_consume -# -#def_key "Y" -# toggle_replay_gain_mode -# -#def_key "T" -# toggle_add_mode -# -#def_key "|" -# toggle_mouse -# -#def_key "#" -# toggle_bitrate_visibility -# -#def_key "Z" -# shuffle -# -#def_key "x" -# toggle_crossfade -# -#def_key "X" -# set_crossfade -# -#def_key "u" -# update_database -# -#def_key "ctrl-s" -# sort_playlist -# -#def_key "ctrl-s" -# toggle_browser_sort_mode -# -#def_key "ctrl-s" -# toggle_media_library_sort_mode -# -#def_key "ctrl-r" -# reverse_playlist -# -#def_key "ctrl-f" -# apply_filter -# -#def_key "ctrl-_" -# select_found_items -# -#def_key "/" -# find -# -#def_key "/" -# find_item_forward -# -#def_key "?" -# find -# -#def_key "?" -# find_item_backward -# -#def_key "." -# next_found_item -# -#def_key "," -# previous_found_item -# -#def_key "w" -# toggle_find_mode -# -#def_key "e" -# edit_song -# -#def_key "e" -# edit_library_tag -# -#def_key "e" -# edit_library_album -# -#def_key "e" -# edit_directory_name -# -#def_key "e" -# edit_playlist_name -# -#def_key "e" -# edit_lyrics -# -#def_key "i" -# show_song_info -# -#def_key "I" -# show_artist_info -# -#def_key "g" -# jump_to_position_in_song -# -#def_key "l" -# show_lyrics -# -#def_key "ctrl-v" -# select_range -# -#def_key "v" -# reverse_selection -# -#def_key "V" -# remove_selection -# -#def_key "B" -# select_album -# -#def_key "a" -# add_selected_items -# -#def_key "c" -# clear_playlist -# -#def_key "c" -# clear_main_playlist -# -#def_key "C" -# crop_playlist -# -#def_key "C" -# crop_main_playlist -# -#def_key "m" -# move_sort_order_up -# -#def_key "m" -# move_selected_items_up -# -#def_key "n" -# move_sort_order_down -# -#def_key "n" -# move_selected_items_down -# -#def_key "M" -# move_selected_items_to -# -#def_key "A" -# add -# -#def_key "S" -# save_playlist -# -#def_key "o" -# jump_to_playing_song -# -#def_key "G" -# jump_to_browser -# -#def_key "G" -# jump_to_playlist_editor -# -#def_key "~" -# jump_to_media_library -# -#def_key "E" -# jump_to_tag_editor -# -#def_key "U" -# toggle_playing_song_centering -# -#def_key "P" -# toggle_display_mode -# -#def_key "\\" -# toggle_interface -# -#def_key "!" -# toggle_separators_between_albums -# -#def_key "L" -# toggle_lyrics_fetcher -# -#def_key "F" -# fetch_lyrics_in_background -# -#def_key "alt-l" -# toggle_fetching_lyrics_in_background -# -#def_key "ctrl-l" -# toggle_screen_lock -# -#def_key "`" -# toggle_library_tag_type -# -#def_key "`" -# refetch_lyrics -# -#def_key "`" -# add_random_items -# -#def_key "ctrl-p" -# set_selected_items_priority -# -#def_key "q" -# quit -# -# -#def_key "f" -# find -#def_key "f" -# find_item_forward - -def_key "+" - show_clock -def_key "=" - volume_up - -def_key "j" - scroll_down -def_key "k" - scroll_up - -def_key "ctrl-u" - page_up -#push_characters "kkkkkkkkkkkkkkk" -def_key "ctrl-d" - page_down -#push_characters "jjjjjjjjjjjjjjj" -def_key "u" - page_up -#push_characters "kkkkkkkkkkkkkkk" -def_key "d" - page_down -#push_characters "jjjjjjjjjjjjjjj" -def_key "h" - previous_column -def_key "l" - next_column - -def_key "." - show_lyrics - -def_key "n" - next_found_item -def_key "N" - previous_found_item - -# not used but bound -def_key "J" - move_sort_order_down -def_key "K" - move_sort_order_up -def_key "h" - jump_to_parent_directory -def_key "l" - enter_directory -def_key "l" - run_action -def_key "l" - play_item -def_key "m" - show_media_library -def_key "m" - toggle_media_library_columns_mode -def_key "t" - show_tag_editor -def_key "v" - show_visualizer -def_key "G" - move_end -def_key "g" - move_home -#jump_to_position_in_song -def_key "U" - update_database -def_key "s" - reset_search_engine -def_key "s" - show_search_engine -def_key "f" - show_browser -def_key "f" - change_browse_mode -def_key "x" - delete_playlist_items -def_key "P" - show_playlist diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config deleted file mode 100644 index 36324960..00000000 --- a/.config/ncmpcpp/config +++ /dev/null @@ -1,32 +0,0 @@ -# vim: filetype=conf - -ncmpcpp_directory = "~/.config/ncmpcpp" -lyrics_directory = "~/.local/share/lyrics" -mpd_music_dir = "~/Music" -message_delay_time = "1" -visualizer_type = "spectrum" -song_list_format = {$4%a - }{%t}|{$8%f$9}$R{$3(%l)$9} -song_status_format = $b{{$8"%t"}} $3by {$4%a{ $3in $7%b{ (%y)}} $3}|{$8%f} -song_library_format = {%n - }{%t}|{%f} -alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b -alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} -current_item_prefix = $(cyan)$r$b -current_item_suffix = $/r$(end)$/b -current_item_inactive_column_prefix = $(magenta)$r -current_item_inactive_column_suffix = $/r$(end) -playlist_display_mode = columns -browser_display_mode = columns -progressbar_look = -> -media_library_primary_tag = album_artist -media_library_albums_split_by_date = no -startup_screen = "media_library" -display_volume_level = no -ignore_leading_the = yes -external_editor = nvim -use_console_editor = yes -empty_tag_color = magenta -main_window_color = white -progressbar_color = black:b -progressbar_elapsed_color = blue:b -statusbar_color = red -statusbar_time_color = cyan:b diff --git a/.config/newsboat/config b/.config/newsboat/config deleted file mode 100644 index 3da9b5ea..00000000 --- a/.config/newsboat/config +++ /dev/null @@ -1,52 +0,0 @@ -#show-read-feeds no -auto-reload yes - -external-url-viewer "urlscan -dc -r 'linkhandler {}'" - -bind-key j down -bind-key k up -bind-key j next articlelist -bind-key k prev articlelist -bind-key J next-feed articlelist -bind-key K prev-feed articlelist -bind-key G end -bind-key g home -bind-key d pagedown -bind-key u pageup -bind-key l open -bind-key h quit -bind-key a toggle-article-read -bind-key n next-unread -bind-key N prev-unread -bind-key D pb-download -bind-key U show-urls -bind-key x pb-delete - -color listnormal cyan default -color listfocus black yellow standout bold -color listnormal_unread blue default -color listfocus_unread yellow default bold -color info red black bold -color article white default bold - -browser linkhandler -macro , open-in-browser -macro t set browser "qndl"; open-in-browser ; set browser linkhandler -macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler -macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler -macro w set browser "lynx"; open-in-browser ; set browser linkhandler -macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler -macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkhandler - -highlight all "---.*---" yellow -highlight feedlist ".*(0/0))" black -highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold -highlight article "(^Link:.*|^Date:.*)" default default -highlight article "https?://[^ ]+" green default -highlight article "^(Title):.*$" blue default -highlight article "\\[[0-9][0-9]*\\]" magenta default bold -highlight article "\\[image\\ [0-9]+\\]" green default bold -highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold -highlight article ":.*\\(link\\)$" cyan default -highlight article ":.*\\(image\\)$" blue default -highlight article ":.*\\(embedded flash\\)$" magenta default diff --git a/.config/newsboat/urls b/.config/newsboat/urls deleted file mode 100644 index d6514598..00000000 --- a/.config/newsboat/urls +++ /dev/null @@ -1,4 +0,0 @@ -http://lukesmith.xyz/rss.xml -https://notrelated.libsyn.com/rss -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (YouTube)" -https://www.archlinux.org/feeds/news/ "tech" diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 48635a4a..98c95ddb 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -8,12 +8,12 @@ if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autolo endif call plug#begin(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/plugged"')) +Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'tpope/vim-surround' Plug 'preservim/nerdtree' Plug 'junegunn/goyo.vim' Plug 'PotatoesMaster/i3-vim-syntax' Plug 'jreybert/vimagit' -Plug 'lukesmithxyz/vimling' Plug 'vimwiki/vimwiki' Plug 'bling/vim-airline' Plug 'tpope/vim-commentary' @@ -33,7 +33,7 @@ set clipboard+=unnamedplus filetype plugin on syntax on set encoding=utf-8 - set number relativenumber + set number " Enable autocompletion: set wildmode=longest,list,full " Disables automatic commenting on newline: @@ -57,13 +57,6 @@ set clipboard+=unnamedplus let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks' endif -" vimling: - nm d :call ToggleDeadKeys() - imap d :call ToggleDeadKeys()a - nm i :call ToggleIPA() - imap i :call ToggleIPA()a - nm q :call ToggleProse() - " Shortcutting split navigation, saving a keypress: map h map j @@ -76,10 +69,6 @@ set clipboard+=unnamedplus " Check file in shellcheck: map s :!clear && shellcheck % -" Open my bibliography file in split - map b :vsp$BIB - map r :vsp$REFER - " Replace all is aliased to S. nnoremap S :%s//g @@ -120,6 +109,47 @@ set clipboard+=unnamedplus " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd +" Code completion stuff +" ######################## +set nobackup +set nowritebackup + +" Use Microsoft python language server + +"python.jediEnabled": false + +" Use tab for trigger completion with characters ahead and navigate. +" Use command ':verbose imap ' to make sure tab is not mapped by other plugin. +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +" Add status line support, for integration with other plugin, checkout `:h coc-status` +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" You will have bad experience for diagnostic messages when it's default 4000. +set updatetime=300 + +" Autocomplete with control space, similiar to Pycharm +inoremap coc#refresh() + +" Use `:Format` to format current buffer +command! -nargs=0 Format :call CocAction('format') + +" Use `:Fold` to fold current buffer +command! -nargs=? Fold :call CocAction('fold', ) + +" use `:OR` for organize import of current buffer +command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') + + " Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. if &diff highlight! link DiffText MatchParen diff --git a/.config/polybar/config b/.config/polybar/config deleted file mode 100644 index d89c0164..00000000 --- a/.config/polybar/config +++ /dev/null @@ -1,413 +0,0 @@ -; vim:ft=dosini -;===================================================== -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;===================================================== - -[colors] -black = ${xrdb:color0:#1d2021} -darkred = ${xrdb:color1:#cc241d} -darkgreen = ${xrdb:color2:#98971a} -darkyellow = ${xrdb:color3:#d79921} -darkblue = ${xrdb:color4:#458588} -darkmagenta = ${xrdb:color5:#b16286} -darkcyan = ${xrdb:color6:#689d6a} -lightgray = ${xrdb:color7:#a89984} -gray = ${xrdb:color8:#928374} -red = ${xrdb:color9:#fb4934} -green = ${xrdb:color10:#b8bb26} -yellow = ${xrdb:color11:#fabd2f} -blue = ${xrdb:color12:#83a598} -magenta = ${xrdb:color13:#d3869b} -cyan = ${xrdb:color14:#8ec07c} -white = ${xrdb:color15:#ebdbb2} -background = ${xrdb:color256:#1d2021} -foreground = ${xrdb:color257:#ebdbb2} - -[bar/default] -;monitor = ${env:MONITOR:LVDS-1} -;monitor = ${env:MONITOR:HDMI-1} -enable-ipc = true -width = 100% -height = 24 -;offset-x = 1% -;offset-y = 1% -;radius = 6.0 -fixed-center = false - -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 3 -line-color = {$xrdb:red} - -border-size = 0 -border-color = ${colors.white} - -padding-left = 0 -padding-right = 0 - -module-margin-left = 1 -module-margin-right = 1 - -font-0 = mono:pixelsize=9;1 -font-1 = Inconsolata Nerd Font:size=8;1 -font-2 = Noto Color Emoji:scale=10:style=Regular;2 -font-3 = Symbola:pixelsize=9;1 - - -; Other modules: xkeyboard filesystem xbacklight backlight-acpi cpu memory temperature powermenu weather -modules-left = bspwm xwindow -;modules-center = -modules-right = mpd volume mutt-wizard wlan eth battery date - -tray-position = right -tray-padding = 0 - -wm-restack = bspwm - -;override-redirect = true - -scroll-up = bspwm-desknext -scroll-down = bspwm-deskprev - -[module/mutt-wizard] - -type = custom/script -exec = mailbox -interval = 5 -format-prefix = " " -format-underline = ${colors.red} - -click-left = $TERMINAL -e neomutt - - -[module/weather] - -type = custom/script -exec = weather -interval = 5000 -;format-underline = - -[module/xwindow] -type = internal/xwindow -label = %title:0:45:...% -format-foreground = ${colors.blue} - -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = " " -format-prefix-foreground = ${colors.gray} -format-prefix-underline = ${colors.darkmagenta} - -label-layout = %layout% -label-layout-underline = ${colors.darkmagenta} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.darkmagenta} -label-indicator-underline = ${colors.darkmagenta} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / -mount-1 = /home - -label-mounted-underline = ${colors.cyan} -label-mounted = /: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.gray} - -[module/bspwm] -type = internal/bspwm - -label-focused = %index% -label-focused-foreground = ${colors.black} -label-focused-background = ${colors.blue} -label-focused-underline= ${colors.yellow} -label-focused-padding = 1 - -label-occupied = %index% -label-occupied-underline = ${colors.blue} -label-occupied-padding = 1 - -label-urgent = %index%! -label-urgent-background = ${colors.red} -label-urgent-padding = 1 - -label-empty = %index% -label-empty-foreground = ${colors.lightgray} -label-empty-padding = 1 - -[module/i3] -type = internal/i3 -format = -index-sort = true -wrapping-scroll = false - -; Only show workspaces on the same output as the bar -;pin-workspaces = true - -label-mode-padding = 2 -label-mode-foreground = ${colors.white} -label-mode-background = ${colors.darkyellow} - -; focused = Active workspace on focused monitor -label-focused = %index% -label-focused-background = ${colors:black} -;label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} -label-focused-padding = ${module/bspwm.label-focused-padding} - -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-padding = ${module/bspwm.label-occupied-padding} - -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} - -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${module/bspwm.label-urgent-background} -label-urgent-padding = ${module/bspwm.label-urgent-padding} - -[module/mpd] -type = internal/mpd -format-online = - -click-left = $TERMINAL -e ncmpcpp -click-right = mpc toggle - -label-song = %artist% - %title% -label-song-maxlen = 70 -label-song-ellipsis = true - -format-paused-foreground = ${colors.gray} - -[module/xbacklight] -type = internal/xbacklight - -format =