diff --git a/.config/aliasrc b/.config/aliasrc index e07ee7a8..38906b0b 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -16,8 +16,8 @@ alias \ # 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" @@ -32,9 +32,6 @@ alias \ e="$EDITOR" \ v="$EDITOR" \ p="sudo pacman" \ - xi="sudo xbps-install" \ - xr="sudo xbps-remove -R" \ - xq="xbps-query" # This alias is important. It enables the `pauseallmpv` command. alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)" 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/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/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 24bdd218..6ce17ab1 100644 --- a/.config/directories +++ b/.config/directories @@ -1,10 +1,9 @@ # You can add comments to these files with # -h ~/ -d ~/Documents -D ~/Downloads -m ~/Music -pp ~/Pictures -vv ~/Videos cf ~/.config -sc ~/.local/bin +d ~/downloads +gh ~/github +h ~/ mn /mnt +psc ~/.local/bin/polybar_scripts +pp ~/pictures +sc ~/.local/bin diff --git a/.config/files b/.config/files index b34f1849..f7020c11 100644 --- a/.config/files +++ b/.config/files @@ -1,15 +1,12 @@ -bf ~/.config/files -bd ~/.config/directories -bw ~/.config/bookmarks -cfa ~/.config/aliasrc -cfz $ZDOTDIR/.zshrc -cfv ~/.config/nvim/init.vim -cfm ~/.config/mutt/muttrc -cfd ~/.Xdefaults -cfu ~/.config/newsboat/urls -cfn ~/.config/newsboat/config -cfmb ~/.config/ncmpcpp/bindings -cfmc ~/.config/ncmpcpp/config -cfk ~/.config/sxhkd/sxhkdrc -cfi ~/.config/i3/config -cfb ~/.config/i3blocks/config +bd ~/.config/directories +bf ~/.config/files +bw ~/.config/bookmarks +cfa ~/.config/aliasrc +cfd ~/.Xdefaults +cfi ~/.config/i3/config +cfk ~/.config/sxhkd/sxhkdrc +cfm ~/.config/mutt/muttrc +cfp ~/.config/polybar/config +cfs ~/.config/sxhkd/sxhkdrc +cfv ~/.config/nvim/init.vim +cfz $ZDOTDIR/.zshrc diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 6a78c257..a541b2bb 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -4,19 +4,19 @@ serif - Linux Libertine + Source Code Pro sans-serif - Linux Biolinum + Source Code Pro sans - Linux Biolinum + Source Code Pro monospace - Inconsolata + Source Code Pro diff --git a/.config/i3/config b/.config/i3/config index 44019281..49f13236 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,23 +1,19 @@ # 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 FILE="ranger" -# export TERMINAL="st" + +# Polybar +exec_always --no-startup-id launch_polybar # #---Basic Definitions---# # for_window [class="^.*"] border pixel 2 -gaps inner 15 -gaps outer 15 +gaps inner 2 +gaps outer 2 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 +set $stoprec --no-startup-id dmenurecord kill # #---Dropdown Windows---# # # General dropdown window traits. The order can matter. @@ -31,14 +27,6 @@ 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 @@ -48,18 +36,10 @@ bindsym $mod+space focus mode_toggle bindsym $mod+Escape workspace prev -# 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 amixer sset Master 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 $FILE # 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 @@ -68,11 +48,7 @@ bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec - bindsym $mod+w exec $term -e nmtui bindsym $mod+Shift+w exec --no-startup-id $BROWSER -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 $FILE -bindsym $mod+Shift+r exec --no-startup-id winresize bindsym $mod+t split toggle bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15 @@ -89,9 +65,6 @@ 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 @@ -106,7 +79,6 @@ 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 @@ -130,22 +102,9 @@ 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 mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off -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 amixer sset Master toggle; pkill -RTMIN+10 i3blocks # #---Workspace Bindings---# # @@ -205,8 +164,6 @@ 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 @@ -223,13 +180,8 @@ 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 # #---Arrow Keys---# # bindsym $mod+Left focus left @@ -245,110 +197,9 @@ 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 amixer sset Master 5%+; pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+; pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 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 amixer sset Master toggle; pkill -RTMIN+10 i3blocks -bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%-; pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%-; pkill -RTMIN+10 i3blocks -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+; pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+; pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 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 $FILE -##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 $FILE -##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 $FILE ~/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 393ea862..00000000 --- a/.config/i3blocks/config +++ /dev/null @@ -1,73 +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] -label=📰 -interval=once -signal=6 - -#[iplocate] -#interval=30 - -[pacpackages] -label=📦 -interval=once -signal=8 - -[torrent] -interval=20 -signal=7 - -[weather] -interval=18000 -signal=5 - -[mailbox] -label=📬 -interval=180 -signal=12 - -#[memory] -#interval=30 -#label=🧠 - -#[cpu] -#interval=15 -#label=💻 - -[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] -interval=once diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index 18a7e53a..00000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,74 +0,0 @@ -# Luke's lf settings - -# Basic vars -set shell sh -set previewer ~/.config/lf/scope -set shellopts '-eu' -set ifs "\n" -set scrolloff 10 -set color256 -set icons # Enable icons. Requires nerd fonts and LF_ICONS variable. - -# cmds/functions -cmd open ${{ - case $(file --mime-type $f -b) in - text/troff) man ./ $f;; - text/*) $EDITOR $fx;; - image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;; - image/*) rotdir $f | setsid sxiv -aio 2>/dev/null | lf-select & ;; - audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;; - video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $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 rename %[ -e $1 ] && printf "file exists" || mv $f $1 - -cmd delete ${{ - set -f - printf "%s\n\t" "$fx" - printf "delete?[y/N]" - read ans - [ $ans = "y" ] && rm -rf $fx -}} - -cmd moveto ${{ - set -f - clear; echo "Move to where?" - dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" && - eval mv -iv $fx $dest && - notify-send "🚚 File(s) moved." "File(s) moved to $dest." -}} - -cmd copyto ${{ - set -f - clear; echo "Copy to where?" - dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" && - eval cp -ivr $fx $dest && - notify-send "📋 File(s) copied." "File(s) copies to $dest." -}} - -cmd bulkrename ${{ - vidir -}} - -# Bindings -map c $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)" -map $lf -remote "send $id select '$(fzf)'" -map J $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)" -map gh -map g top -map D delete -map C copyto -map M moveto -map a push %mkdir -map r push :rename -map R $lf -remote "send $id push :rename$f" -map b bulkrename -map reload -map shell -map x $$f -map X !$f -map o &mimeopen $f -map O $mimeopen --ask $f 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/mpd/mpd.conf b/.config/mpd/mpd.conf deleted file mode 100644 index a0548ecd..00000000 --- a/.config/mpd/mpd.conf +++ /dev/null @@ -1,26 +0,0 @@ -db_file "~/.config/mpd/database" -log_file "~/.config/mpd/log" -music_directory "~/Music" -playlist_directory "~/.config/mpd/playlists" -pid_file "~/.config/mpd/pid" -state_file "~/.config/mpd/state" -sticker_file "~/.config/mpd/sticker.sql" - -auto_update "yes" - -bind_to_address "127.0.0.1" -restore_paused "yes" -max_output_buffer_size "16384" - -audio_output { - type "alsa" - name "alsa for audio soundcard" - mixer_type "software" -} - -audio_output { -type "fifo" -name "toggle_visualizer" -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/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 2c9eda4c..00000000 --- a/.config/ncmpcpp/config +++ /dev/null @@ -1,537 +0,0 @@ -############################################################################## -## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ## -## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences. ## -############################################################################## -# -ncmpcpp_directory = ~/.config/ncmpcpp -# -## -## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other -## MPD clients (eg. ncmpc) also use that location. -## -# -lyrics_directory = ~/.local/share/lyrics -# -##### connection settings ##### -# -#mpd_host = localhost -# -#mpd_port = 6600 -# -#mpd_connection_timeout = 5 -# -## Needed for tag editor and file operations to work. -## -mpd_music_dir = "~/Music" -# -#mpd_crossfade_time = 5 -# -##### music visualizer ##### -## -## Note: In order to make music visualizer work you'll need to use mpd fifo -## output, whose format parameter has to be set to 44100:16:1 for mono -## visualization or 44100:16:2 for stereo visualization. Example configuration -## (it has to be put into mpd.conf): -## -## audio_output { -## type "fifo" -## name "Visualizer feed" -## path "/tmp/mpd.fifo" -## format "44100:16:2" -## } -## -# -#visualizer_fifo_path = /tmp/mpd.fifo -# -## -## Note: Below parameter is needed for ncmpcpp to determine which output -## provides data for visualizer and thus allow syncing between visualization and -## sound as currently there are some problems with it. -## -# -#visualizer_output_name = Visualizer feed -# -## -## If you set format to 44100:16:2, make it 'yes'. -## -#visualizer_in_stereo = yes -# -## -## Note: Below parameter defines how often ncmpcpp has to "synchronize" -## visualizer and audio outputs. 30 seconds is optimal value, but if you -## experience synchronization problems, set it to lower value. Keep in mind -## that sane values start with >=10. -## -# -#visualizer_sync_interval = 30 -# -## -## Note: To enable spectrum frequency visualization you need to compile ncmpcpp -## with fftw3 support. -## -# -## Available values: spectrum, wave, wave_filled, ellipse. -## -visualizer_type = spectrum -# -#visualizer_look = ●卐 -#visualizer_look = 卐 -# -#visualizer_color = blue, cyan, green, yellow, magenta, red -# -## Alternative subset of 256 colors for terminals that support it. -## -#visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161 -# -##### system encoding ##### -## -## ncmpcpp should detect your charset encoding but if it failed to do so, you -## can specify charset encoding you are using here. -## -## Note: You can see whether your ncmpcpp build supports charset detection by -## checking output of `ncmpcpp --version`. -## -## Note: Since MPD uses UTF-8 by default, setting this option makes sense only -## if your encoding is different. -## -# -#system_encoding = "" -# -##### delays ##### -# -## Time of inactivity (in seconds) after playlist highlighting will be disabled -## (0 = always on). -## -#playlist_disable_highlight_delay = 5 -# -## Defines how long messages are supposed to be visible. -## -message_delay_time = 1 -# -##### song format ##### -## -## For a song format you can use: -## -## %l - length -## %f - filename -## %D - directory -## %a - artist -## %A - album artist -## %t - title -## %b - album -## %y - date -## %n - track number (01/12 -> 01) -## %N - full track info (01/12 -> 01/12) -## %g - genre -## %c - composer -## %p - performer -## %d - disc -## %C - comment -## %P - priority -## $R - begin right alignment -## -## If you want to make sure that a part of the format is displayed only when -## certain tags are present, you can archieve it by grouping them with brackets, -## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are -## present or '' otherwise. It is also possible to define a list of -## alternatives by providing several groups and separating them with '|', -## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is -## not present. -## -## Note: If you want to set limit on maximal length of a tag, just put the -## appropriate number between % and character that defines tag type, e.g. to -## make album take max. 20 terminal cells, use '%20b'. -## -## In addition, formats support markers used for text attributes. They are -## followed by character '$'. After that you can put: -## -## - 0 - default window color (discards all other colors) -## - 1 - black -## - 2 - red -## - 3 - green -## - 4 - yellow -## - 5 - blue -## - 6 - magenta -## - 7 - cyan -## - 8 - white -## - 9 - end of current color -## - b - bold text -## - u - underline text -## - r - reverse colors -## - a - use alternative character set -## -## If you don't want to use a non-color attribute anymore, just put it again, -## but this time insert character '/' between '$' and attribute character, -## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with -## reversed colors. -## -## If you want to use 256 colors and/or background colors in formats (the naming -## scheme is described below in section about color definitions), it can be done -## with the syntax $(COLOR), e.g. to set the artist tag to one of the -## non-standard colors and make it have yellow background, you need to write -## $(197_yellow)%a$(end). Note that for standard colors this is interchangable -## with attributes listed above. -## -## Note: colors can be nested. -## -# -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) -# -#now_playing_prefix = $b -# -#now_playing_suffix = $/b -# -#browser_playlist_prefix = "$2playlist$9 " -# -#selected_item_prefix = $6 -# -#selected_item_suffix = $9 -# -#modified_item_prefix = $3> $9 -# -## -## Note: attributes are not supported for the following variables. -## -#song_window_title_format = {%a - }{%t}|{%f} -## -## Note: Below variables are used for sorting songs in browser. The sort mode -## determines how songs are sorted, and can be used in combination with a sort -## format to specify a custom sorting format. Available values for -## browser_sort_mode are "name", "mtime", "format" and "noop". -## -# -#browser_sort_mode = name -# -#browser_sort_format = {%a - }{%t}|{%f} {(%l)} -# -##### columns settings ##### -## -## syntax of song columns list format is "column column etc." -## -## - syntax for each column is: -## -## (width of the column)[color of the column]{displayed tag} -## -## Note: Width is by default in %, if you want a column to have fixed size, add -## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of -## screen (so the real width will depend on actual screen size), whereas -## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen -## is. -## -## - color is optional (if you want the default one, leave the field empty). -## -## Note: You can give a column additional attributes by putting appropriate -## character after displayed tag character. Available attributes are: -## -## - r - column will be right aligned -## - E - if tag is empty, empty tag marker won't be displayed -## -## You can also: -## -## - give a column custom name by putting it after attributes, separated with -## character ':', e.g. {lr:Length} gives you right aligned column of lengths -## named "Length". -## -## - define sequence of tags, that have to be displayed in case predecessor is -## empty in a way similar to the one in classic song format, i.e. using '|' -## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to -## display artist tag and then composer and performer if previous ones are not -## available. -## -# -#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l} -# -##### various settings ##### -# -## -## Note: Custom command that will be executed each time song changes. Useful for -## notifications etc. -## -#execute_on_song_change = "" -# -## -## Note: Custom command that will be executed each time player state -## changes. The environment variable MPD_PLAYER_STATE is set to the current -## state (either unknown, play, pause, or stop) for its duration. -## -# -#execute_on_player_state_change = "" -# -#playlist_show_mpd_host = no -# -#playlist_show_remaining_time = no -# -#playlist_shorten_total_times = no -# -#playlist_separate_albums = no -# -## -## Note: Possible display modes: classic, columns. -## -playlist_display_mode = columns -# -browser_display_mode = columns -# -#search_engine_display_mode = classic -# -#playlist_editor_display_mode = classic -# -#discard_colors_if_item_is_selected = yes -# -#show_duplicate_tags = true -# -#incremental_seeking = yes -# -#seek_time = 1 -# -#volume_change_step = 2 -# -#autocenter_mode = no -# -#centered_cursor = no -# -## -## Note: You can specify third character which will be used to build 'empty' -## part of progressbar. -## -progressbar_look = -> -# -## Available values: database, playlist. -## -#default_place_to_search_in = database -# -## Available values: classic, alternative. -## -#user_interface = classic -# -#data_fetching_delay = yes -# -## Available values: artist, album_artist, date, genre, composer, performer. -## -media_library_primary_tag = album_artist -# -media_library_albums_split_by_date = no -# -## Available values: wrapped, normal. -## -#default_find_mode = wrapped -# -#default_tag_editor_pattern = %n - %t -# -#header_visibility = yes -# -#statusbar_visibility = yes -# -#titles_visibility = yes -# -#header_text_scrolling = yes -# -#cyclic_scrolling = no -# -#lines_scrolled = 2 -# -#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet -# -#follow_now_playing_lyrics = no -# -#fetch_lyrics_for_current_song_in_background = no -# -#store_lyrics_in_song_dir = no -# -#generate_win32_compatible_filenames = yes -# -#allow_for_physical_item_deletion = no -# -## -## Note: If you set this variable, ncmpcpp will try to get info from last.fm in -## language you set and if it fails, it will fall back to english. Otherwise it -## will use english the first time. -## -## Note: Language has to be expressed as an ISO 639 alpha-2 code. -## -#lastfm_preferred_language = en -# -#space_add_mode = add_remove -# -#show_hidden_files_in_local_browser = no -# -## -## How shall screen switcher work? -## -## - "previous" - switch between the current and previous screen. -## - "screen1,...,screenN" - switch between given sequence of screens. -## -## Screens available for use: help, playlist, browser, search_engine, -## media_library, playlist_editor, tag_editor, outputs, visualizer, clock, -## lyrics, last_fm. -## -#screen_switcher_mode = playlist, browser -# -## -## Note: You can define startup screen by choosing screen from the list above. -## -startup_screen = media_library -# -## -## Note: You can define startup slave screen by choosing screen from the list -## above or an empty value for no slave screen. -## -#startup_slave_screen = "" -# -#startup_slave_screen_focus = no -# -## -## Default width of locked screen (in %). Acceptable values are from 20 to 80. -## -# -#locked_screen_width_part = 50 -# -#ask_for_locked_screen_width_part = yes -# -#jump_to_now_playing_song_at_start = yes -# -#ask_before_clearing_playlists = yes -# -#clock_display_seconds = no -# -display_volume_level = no -# -#display_bitrate = no -# -#display_remaining_time = no -# -## Available values: none, basic, extended, perl. -## -#regular_expressions = perl -# -## -## Note: if below is enabled, ncmpcpp will ignore leading "The" word while -## sorting items in browser, tags in media library, etc. -## -ignore_leading_the = yes -# -## -## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and -## filtering lists. This takes an effect only if boost was compiled with ICU -## support. -## -#ignore_diacritics = no -# -#block_search_constraints_change_if_items_found = yes -# -#mouse_support = yes -# -#mouse_list_scroll_whole_page = yes -# -#empty_tag_marker = -# -#tags_separator = " | " -# -#tag_editor_extended_numeration = no -# -#media_library_sort_by_mtime = no -# -#enable_window_title = yes -# -## -## Note: You can choose default search mode for search engine. Available modes -## are: -## -## - 1 - use mpd built-in searching (no regexes, pattern matching) -## -## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but -## if your mpd is on a remote machine, downloading big database to process -## it can take a while -## -## - 3 - match only exact values (this mode uses mpd function for searching in -## database and local one for searching in current playlist) -## -# -#search_engine_default_search_mode = 1 -# -external_editor = vim -# -## Note: set to yes if external editor is a console application. -## -use_console_editor = yes -# -##### colors definitions ##### -## -## It is possible to set a background color by setting a color value -## "_", e.g. red_black will set foregound color to red -## and background color to black. -## -## In addition, for terminals that support 256 colors it is possible to set one -## of them by using a number in range [1, 256] instead of color name, -## e.g. numerical value corresponding to red_black is 2_1. To find out if the -## terminal supports 256 colors, run ncmpcpp and check out the bottom of the -## help screen for list of available colors and their numerical values. -## -## What is more, there are two special values for the background color: -## "transparent" and "current". The first one explicitly sets the background to -## be transparent, while the second one allows you to preserve current -## background color and change only the foreground one. It's used implicitly -## when background color is not specified. -## -## Moreover, it is possible to attach format information to selected color -## variables by appending to their end a colon followed by one or more format -## flags, e.g. black:b or red:ur. The following variables support this syntax: -## visualizer_color, color1, color2, empty_tag_color, volume_color, -## state_line_color, state_flags_color, progressbar_color, -## progressbar_elapsed_color, player_state_color, statusbar_time_color, -## alternative_ui_separator_color. -## -## Note: due to technical limitations of older ncurses version, if 256 colors -## are used there is a possibility that you'll be able to use only colors with -## transparent background. -# -#colors_enabled = yes -# -empty_tag_color = magenta -# -#header_window_color = magenta -# -#volume_color = default -# -#state_line_color = default -# -#state_flags_color = default:b -# -main_window_color = white -# -#color1 = white -# -#color2 = green -# -progressbar_color = black:b -# -progressbar_elapsed_color = blue:b -# -statusbar_color = red -# -statusbar_time_color = cyan:b -# -#player_state_color = default:b -# -#alternative_ui_separator_color = black:b -# -#window_border_color = green -# -#active_window_border = red -# diff --git a/.config/newsboat/config b/.config/newsboat/config deleted file mode 100644 index 5366202f..00000000 --- a/.config/newsboat/config +++ /dev/null @@ -1,39 +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 cyan default - -browser linkhandler -macro , open-in-browser -macro t set browser "tsp youtube-dl --add-metadata -ic"; 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 "w3m"; 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 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 2bdca65c..218a1f07 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -8,12 +8,12 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim')) endif call plug#begin('~/.config/nvim/plugged') +Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'tpope/vim-surround' Plug 'scrooloose/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' @@ -32,7 +32,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: @@ -51,13 +51,6 @@ set clipboard+=unnamedplus map n :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | 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 @@ -67,10 +60,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 @@ -110,6 +99,43 @@ set clipboard+=unnamedplus " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd +" Code completion stuff +" ######################## +set nobackup +set nowritebackup + +" 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 index d89c0164..9cc22fec 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,49 +1,34 @@ ; 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} +background = #1d2021 +black = #1d2021 +blue = #83a598 +darkyellow = #d79921 +foreground = #ebdbb2 +gray = #928374 +green = #b8bb26 +orange = #ffa500 +red = #ff0000 +white = #ebdbb2 +yellow = #fabd2f -[bar/default] -;monitor = ${env:MONITOR:LVDS-1} -;monitor = ${env:MONITOR:HDMI-1} +[bar/main] enable-ipc = true -width = 100% -height = 24 -;offset-x = 1% -;offset-y = 1% -;radius = 6.0 fixed-center = false +height = 20 +monitor = ${env:MONITOR:} +width = 100% + +; allow scrolling workspaces +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 -line-color = {$xrdb:red} +line-size = 2 +line-color = ${colors.red} border-size = 0 border-color = ${colors.white} @@ -54,225 +39,63 @@ 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 +font-0 = "Sauce Code Pro:size=9;1" +font-1 = "Sauce Code Pro:size=8;1" +font-2 = "Sauce Code Pro:scale=10:style=Regular;2" +font-3 = "Sauce Code Pro:size=9;1" +wm-restack = i3 -; 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 +modules-left = i3 +modules-center = xwindow +modules-right = sys_updates sys_temp cpu memory volume wifi ethernet 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] - +[module/sys_updates] +exec = ~/.local/bin/polybar_scripts/aur_updates +format =