diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/calcurse/conf | 25 | ||||
| -rw-r--r-- | .config/calcurse/keys | 47 | ||||
| -rw-r--r-- | .config/lf/lfrc | 11 | ||||
| -rw-r--r-- | .config/nvim/init.vim | 6 | ||||
| -rw-r--r-- | .config/shell/aliasrc | 11 | ||||
| -rw-r--r-- | .config/shell/profile | 6 | ||||
| -rw-r--r-- | .config/tmux/tmux.conf | 58 | ||||
| -rw-r--r-- | .config/wal/templates/zathurarc | 1 | ||||
| -rwxr-xr-x | .config/x11/xprofile | 4 | ||||
| -rw-r--r-- | .config/zathura/zathurarc | 1 |
10 files changed, 31 insertions, 139 deletions
diff --git a/.config/calcurse/conf b/.config/calcurse/conf deleted file mode 100644 index e829390..0000000 --- a/.config/calcurse/conf +++ /dev/null @@ -1,25 +0,0 @@ -appearance.calendarview=monthly -appearance.compactpanels=no -appearance.defaultpanel=calendar -appearance.layout=1 -appearance.notifybar=yes -appearance.sidebarwidth=1 -appearance.theme=red on default -appearance.todoview=show-completed -daemon.enable=no -daemon.log=no -format.inputdate=1 -format.notifydate=%a %F -format.notifytime=%T -format.outputdate=%D -general.autogc=no -general.autosave=yes -general.confirmdelete=yes -general.confirmquit=no -general.firstdayofweek=sunday -general.periodicsave=0 -general.progressbar=yes -general.systemdialogs=no -notification.command=printf '\a' -notification.notifyall=flagged-only -notification.warning=300 diff --git a/.config/calcurse/keys b/.config/calcurse/keys deleted file mode 100644 index 213a17b..0000000 --- a/.config/calcurse/keys +++ /dev/null @@ -1,47 +0,0 @@ -generic-cancel ESC -generic-select SPC -generic-credits @ -generic-help ? -generic-quit q Q -generic-save s S ^S -generic-reload R -generic-copy c -generic-paste p ^V -generic-change-view TAB -generic-import i I -generic-export x X -generic-goto g G -generic-other-cmd o O -generic-config-menu C -generic-redraw ^R -generic-add-appt ^A -generic-add-todo ^T -generic-prev-day T ^H -generic-next-day t ^L -generic-prev-week W ^K -generic-next-week w ^J -generic-prev-month M -generic-next-month m -generic-prev-year Y -generic-next-year y -generic-scroll-down ^N -generic-scroll-up ^P -generic-goto-today ^G -generic-command : -move-right l L RGT -move-left h H LFT -move-down j J DWN -move-up k K UP -start-of-week 0 -end-of-week $ -add-item a A -del-item d D -edit-item e E -view-item v V -pipe-item | -flag-item ! -repeat r -edit-note n N -view-note > -raise-priority + -lower-priority - diff --git a/.config/lf/lfrc b/.config/lf/lfrc index c571724..b05d511 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -29,6 +29,15 @@ cmd open ${{ cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" +cmd extract ${{ + clear; tput cup $(($(tput lines)/3)); tput bold + set -f + printf "%s\n\t" "$fx" + printf "extract?[y/N]" + read ans + [ $ans = "y" ] && ext $fx +}} + cmd delete ${{ clear; tput cup $(($(tput lines)/3)); tput bold set -f @@ -69,10 +78,12 @@ map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:-$HOME/.config} map gh map g top map D delete +map E extract map C copyto map M moveto map <c-n> push :mkdir<space> map <c-r> reload +map <c-s> set hidden! map <enter> shell map x $$f map X !$f diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 65883d7..ce0db87 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -113,13 +113,13 @@ set noshowcmd " Automatically deletes all trailing whitespace and newlines at end of file on save. autocmd BufWritePre * %s/\s\+$//e - autocmd BufWritePre * %s/\n\+\%$//e - autocmd BufWritePre *.[ch] %s/\%$/\r/e + autocmd BufWritePre * %s/\n\+\%$//e + autocmd BufWritePre *.[ch] %s/\%$/\r/e " When shortcut files are updated, renew bash and ranger configs with new material: autocmd BufWritePost bm-files,bm-dirs !shortcuts " Run xrdb whenever Xdefaults or Xresources are updated. - autocmd BufRead,BufNewFile xresources,xdefaults set filetype=xdefaults + autocmd BufRead,BufNewFile Xresources,Xdefaults,xresources,xdefaults set filetype=xdefaults autocmd BufWritePost Xresources,Xdefaults,xresources,xdefaults !xrdb % " Recompile dwmblocks on config edit. autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid -f dwmblocks } diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 39ac509..107ecb8 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -3,11 +3,20 @@ # Use neovim for vim if present. [ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d" +# Use $XINITRC variable if file exists. +[ -f "$XINITRC" ] && alias startx="startx $XINITRC" + +# sudo not required for some system commands +for x in mount umount sv pacman updatedb su ; do + alias $x="sudo $x" +done + # Verbosity and settings that you pretty much just always are going to want. alias \ cp="cp -iv" \ mv="mv -iv" \ rm="rm -vI" \ + bc="bc -ql" \ mkd="mkdir -pv" \ yt="youtube-dl --add-metadata -i" \ yta="yt -x -f bestaudio/best" \ @@ -27,7 +36,6 @@ alias \ trem="transmission-remote" \ YT="youtube-viewer" \ sdn="sudo shutdown -h now" \ - f="$FILE" \ e="$EDITOR" \ v="$EDITOR" \ p="sudo pacman" \ @@ -40,4 +48,3 @@ 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" \ diff --git a/.config/shell/profile b/.config/shell/profile index 06831cb..9515179 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -19,7 +19,7 @@ export BROWSER="brave" export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/share" export XDG_CACHE_HOME="$HOME/.cache" -#export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc" +export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc" #export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config" export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0" @@ -40,6 +40,8 @@ export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg" export UNISON="${XDG_DATA_HOME:-$HOME/.local/share}/unison" export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history" export WEECHAT_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/weechat" +export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config" +export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum" # Other program settings: export DICS="/usr/share/stardict/dic/" @@ -142,7 +144,7 @@ ex=🎯:\ if pacman -Qs libxft-bgra >/dev/null 2>&1; then # Start graphical server on user's current tty if not already running. - [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx + [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" else echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm. Please run: diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf deleted file mode 100644 index c74458e..0000000 --- a/.config/tmux/tmux.conf +++ /dev/null @@ -1,58 +0,0 @@ -set -g prefix C-a -setw -g mode-keys vi -setw -g mode-style bg=black -set-option -g default-terminal "xterm-256color" -set-option -g pane-active-border-style fg=green -set-window-option -g xterm-keys on # for vim -set-window-option -g mode-keys vi # vi key -set-window-option -g monitor-activity on -set-window-option -g window-status-current-style fg=white -setw -g window-status-current-style reverse -setw -g automatic-rename -set -g mouse on -set -g history-limit 30000 -set -g terminal-overrides 'xterm*:smcup@:rmcup@' -set -sg escape-time 20 # faster escape delay time -set-option -g status-justify right -set-option -g status-bg black # colour213 # pink -set-option -g status-fg cyan -set-option -g status-interval 5 -set-option -g status-left-length 30 -set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]' -set-option -g status-right '#[fg=red,bold][[ #(git branch) branch ]] #[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]' -set-option -g visual-activity on -set-option -g set-titles on -set-option -g set-titles-string '#H:#S.#I.#P #W #T' -unbind j -unbind C-b # unbind default leader key -unbind '"' # unbind horizontal split -unbind % # unbind vertical split -bind-key r source-file ~/.config/tmux/tmux.conf -bind-key c split-window -v # split pane horizontally -bind-key v split-window -h # split pane vertically -bind-key Space list-panes -bind-key Enter break-pane -bind-key Space command-prompt "joinp -t:%%" # %% = prompt for window.pane [-V|H] # vert|hor split -bind-key -n C-up prev -bind-key -n C-left prev -bind-key -n C-right next -bind-key -n C-down next -set-window-option -g window-status-current-style bg=red -bind C-c new-window -bind C-j previous-window -bind C-k next-window -#bind-key C-a last-window # C-a C-a for last active window -bind A command-prompt "rename-window %%" -setw -g aggressive-resize on -bind-key h select-pane -L -bind-key j select-pane -D -bind-key k select-pane -U -bind-key l select-pane -R -bind-key -r C-h resize-pane -L -bind-key -r C-j resize-pane -D -bind-key -r C-k resize-pane -U -bind-key -r C-l resize-pane -R -bind o select-layout "active-only" -bind M-- select-layout "even-vertical" -bind M-| select-layout "even-horizontal" -bind M-r rotate-window diff --git a/.config/wal/templates/zathurarc b/.config/wal/templates/zathurarc index 242bf9a..a12bbd3 100644 --- a/.config/wal/templates/zathurarc +++ b/.config/wal/templates/zathurarc @@ -2,6 +2,7 @@ set sandbox none set statusbar-h-padding 0 set statusbar-v-padding 0 set page-padding 1 +set selection-clipboard clipboard map u scroll half-up map d scroll half-down map D toggle_page_mode diff --git a/.config/x11/xprofile b/.config/x11/xprofile index b4db27b..f7182e1 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -3,10 +3,10 @@ # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. -mpd & # music player daemon-you might prefer it as a service though -remaps & # run the remaps script, switching caps/esc and more; check it for more info setbg & # set the background with the `setbg` script #xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & # Uncomment to use Xresources colors/settings on startup +mpd & # music player daemon-you might prefer it as a service though +remaps & # run the remaps script, switching caps/esc and more; check it for more info xcompmgr & # xcompmgr for transparency dunst & # dunst for notifications xset r rate 300 50 & # Speed xrate up diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index f1bae20..452e116 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -12,3 +12,4 @@ map K zoom in map J zoom out map i recolor map p print +map g goto top |
