commit 520f99f916434324f8e37663b1ba947f9eefcc9e
parent e8a5e5e4a5cf9264441712c3b7a0cb47a63493b0
Author: jacob@nzxt <jacobouno@protonmail.com>
Date: Mon, 2 Mar 2020 23:06:13 -0800
Merge branch 'master' of https://github.com/jacobs-github/.dotfiles
multiple changes in multiple places...
Diffstat:
11 files changed, 198 insertions(+), 36 deletions(-)
diff --git a/aliases/.aliases b/aliases/.aliases
@@ -19,7 +19,7 @@ alias hibernate='systemctl hibernate'
alias pacman='pacman-c'
# locations
-alias log='cd ~/data/logs/'
+alias logs='cd ~/own/text/logs/'
# etc
alias ncmpcpp='ncmpcpp -q'
@@ -47,7 +47,15 @@ alias l="$PAGER"
t(){ sleep $( calc -d "$1" \* 60 ) ; $2 ;}
# find and edit
-fe(){ find / -name "$1" -exec "$EDITOR" '{}' \; 2>/dev/null ;}
+fe(){
+if [ -d "$1" ]; then
+ printf "searching '$1' for '$2'\n"
+ find "$1" -name "$2" -exec "$EDITOR" '{}' \; 2>/dev/null
+else
+ printf "searching ~/ for '$1'\n"
+ find ~/ -name "$1" -exec "$EDITOR" '{}' \; 2>/dev/null
+fi
+}
# dictinary search
ds(){ curl "dict://dict.org/m:$1" ;}
diff --git a/backup/.config/backup/thinkpad.conf b/backup/.config/backup/thinkpad.conf
@@ -14,8 +14,7 @@ hostname=backup
location=/home/backup/mirrors/$HOSTNAME/
[exclude]
-Downloads
-downloads
+download
.cache/mozilla/
.cache/yay/
video/anime
diff --git a/lemonbar/bin/lemon b/lemonbar/bin/lemon
@@ -135,7 +135,7 @@ if [ "$profile" = 'laptop' ]; then
gettime="$( gettime )"
ws="$( bspwm_workspace )"
memory="$( memory_meg )"
- timesince="$( daterelitive "$LOG" )"
+ timesince="$( log "$LOG" )"
bat="$( battery )"
mpd="$( mpd_playing )"
#cpu="$( cpu )"
diff --git a/mksh/.mkshrc b/mksh/.mkshrc
@@ -5,9 +5,10 @@ source ~/.profile
source ~/.aliases
# history
-export HISTFILE="$HOME/.mksh-hist"
+#export HISTFILE="$HOME/.mksh-hist"
export HISTSIZE='820000'
+
# bindings
bind '^L=clear-screen'
diff --git a/profile/.profile b/profile/.profile
@@ -8,6 +8,13 @@ export BROWSER='qutebrowser'
export COMPOSITOR='xcompmgr'
export PAGER='less'
export LOCKER='slock'
+export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
+export HISTFILE="$HOME/.hist-$0"
+
+# variables for my scripts
+export WALLPAPERS="$HOME/image/wallpapers"
+export NOTES="$HOME/own/text/notes"
+export STICKY="$HOME/own/text/sticky"
# i'll clean it up later.
@@ -29,16 +36,7 @@ else
fi
-# variables for my scripts
-export WALLPAPERS="$HOME/wallpapers"
-export DATAHOME="$HOME/data"
-export NOTES="$DATAHOME/notes"
-export STICKY="$DATAHOME/sticky"
-
-
-if [ "$SSH" -ne 1 ] && [ "$Xorg" -eq 1 ]; then
- xrdb -load ~/.Xresources
-elif [ "$Xorg" -ne 1 ] && [ "$SSH" -ne 1 ]; then
+if [ "$Xorg" -ne 1 ] && [ "$SSH" -ne 1 ]; then
setfont /usr/share/kbd/consolefonts/Lat2-Terminus16.psfu.gz
#setfont /usr/share/kbd/consolefonts/972.cp.gz -16 # handwritten look
setterm -blength 0
diff --git a/qutebrowser/.config/qutebrowser/autoconfig.yml b/qutebrowser/.config/qutebrowser/autoconfig.yml
@@ -6,18 +6,5 @@
config_version: 2
settings:
- bindings.commands:
- global:
- normal:
- <Ctrl+j>: scroll-px 0 40
- <Ctrl+k>: scroll-px 0 -40
- <Ctrl+o>: open -p
- <F11>: nop
- M: nop
- Z: zoom-out
- b: spawn -u bookmarks --open
- ctrl: o open -p
- ctrl+j: scroll-px 0 40
- ctrl+o: open -p
- m: nop
- z: zoom-in
+ downloads.location.directory:
+ global: ~/download
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
@@ -138,6 +138,10 @@ config.set('content.javascript.enabled', True, 'file://*')
# Enable JavaScript.
# Type: Bool
+c.content.javascript.enabled = True
+
+# Enable JavaScript.
+# Type: Bool
config.set('content.javascript.enabled', True, 'chrome-devtools://*')
# Enable JavaScript.
@@ -152,10 +156,6 @@ config.set('content.javascript.enabled', True, 'chrome://*/*')
# Type: Bool
config.set('content.javascript.enabled', True, 'qute://*/*')
-# Enable JavaScript.
-# Type: Bool
-c.content.javascript.enabled = True
-
# Allow websites to show notifications.
# Type: BoolAsk
# Valid values:
@@ -204,6 +204,11 @@ c.completion.scrollbar.width = 0
# Type: Int
c.completion.scrollbar.padding = 0
+# Directory to save downloads to. If unset, a sensible OS-specific
+# default is used.
+# Type: Directory
+c.downloads.location.directory = '~/download'
+
# Show a filebrowser in upload/download prompts.
# Type: Bool
c.prompt.filebrowser = False
diff --git a/w3m/.w3m/config b/w3m/.w3m/config
@@ -0,0 +1,154 @@
+tabstop 8
+indent_incr 4
+pixel_per_char 10
+pixel_per_line 23
+frame 0
+target_self 0
+open_tab_blank 0
+open_tab_dl_list 0
+display_link 0
+display_link_number 0
+decode_url 0
+display_lineinfo 1
+ext_dirlist 1
+dirlist_cmd file:///$LIB/dirlist.cgi
+use_dictcommand 1
+dictcommand file:///$LIB/w3mdict.cgi
+multicol 0
+alt_entity 0
+graphic_char 0
+display_borders 0
+fold_textarea 0
+display_ins_del 1
+ignore_null_img_alt 1
+view_unseenobject 0
+display_image 1
+pseudo_inlines 1
+auto_image 1
+max_load_image 4
+ext_image_viewer 1
+image_scale 100
+imgdisplay w3mimgdisplay
+image_map_list 1
+fold_line 0
+show_lnum 0
+show_srch_str 1
+label_topline 0
+nextpage_topline 0
+color 1
+basic_color terminal
+anchor_color blue
+image_color green
+form_color red
+mark_color cyan
+bg_color terminal
+active_style 0
+active_color cyan
+visited_anchor 0
+visited_color magenta
+pagerline 10000
+use_history 1
+history 100
+save_hist 1
+confirm_qq 1
+close_tab_back 0
+mark 0
+emacs_like_lineedit 0
+vi_prec_num 0
+mark_all_pages 0
+wrap_search 0
+ignorecase_search 1
+use_mouse 0
+reverse_mouse 0
+relative_wheel_scroll 0
+relative_wheel_scroll_ratio 30
+fixed_wheel_scroll_count 5
+clear_buffer 1
+decode_cte 0
+auto_uncompress 0
+preserve_timestamp 1
+keymap_file keymap
+document_root
+personal_document_root
+cgi_bin
+index_file
+mime_types ~/.mime.types, /usr/etc/mime.types
+mailcap ~/.w3m/mailcap, /usr/etc/w3m/mailcap
+urimethodmap ~/.w3m/urimethodmap, /usr/etc/w3m/urimethodmap
+editor /usr/bin/vi
+mailto_options 1
+mailer /usr/bin/mail
+extbrowser /usr/bin/firefox
+extbrowser2
+extbrowser3
+extbrowser4
+extbrowser5
+extbrowser6
+extbrowser7
+extbrowser8
+extbrowser9
+bgextviewer 1
+use_lessopen 0
+passwd_file ~/.w3m/passwd
+disable_secret_security_check 0
+ftppasswd
+ftppass_hostnamegen 1
+pre_form_file ~/.w3m/pre_form
+siteconf_file ~/.w3m/siteconf
+user_agent
+no_referer 0
+accept_language en;q=1.0
+accept_encoding gzip, compress, bzip, bzip2, deflate
+accept_media text/html, text/*;q=0.5, image/*
+argv_is_url 1
+retry_http 1
+default_url 1
+follow_redirection 10
+meta_refresh 0
+dns_order 0
+nntpserver
+nntpmode
+max_news 50
+use_proxy 1
+http_proxy
+https_proxy
+ftp_proxy
+no_proxy
+noproxy_netaddr 1
+no_cache 0
+ssl_forbid_method 2, 3
+ssl_verify_server 1
+ssl_cert_file
+ssl_key_file
+ssl_ca_path
+ssl_ca_file
+use_cookie 1
+show_cookie 0
+accept_cookie 1
+accept_bad_cookie 0
+cookie_reject_domains
+cookie_accept_domains
+cookie_avoid_wrong_number_of_dots
+display_charset UTF-8
+document_charset US-ASCII
+auto_detect 2
+system_charset UTF-8
+follow_locale 1
+ext_halfdump 0
+use_wide 1
+use_combining 1
+east_asian_width 0
+use_language_tag 1
+ucs_conv 1
+pre_conv 0
+search_conv 1
+fix_width_conv 1
+use_gb12345_map 0
+use_jisx0201 0
+use_jisc6226 0
+use_jisx0201k 0
+use_jisx0212 0
+use_jisx0213 0
+strict_iso2022 1
+gb18030_as_ucs 0
+simple_preserve_space 0
diff --git a/w3m/.w3m/keymap b/w3m/.w3m/keymap
@@ -0,0 +1,9 @@
+keymap C-m MARK
+keymap C-h BACK
+keymap C-d NEXT_PAGE
+keymap C-u PREV_PAGE
+
+keymap k PREV_LINK
+keymap j NEXT_LINK
+keymap l GOTO_LINK
+keymap h BACK
diff --git a/xinitrc/.xinitrc b/xinitrc/.xinitrc
@@ -32,6 +32,7 @@ fi
#}}}
# X utilitys
+xrdb -load ~/.Xresources &
xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 13 &
xwallpaper --zoom $HOME/.wallpaper &
diff --git a/zsh/.zshrc b/zsh/.zshrc
@@ -80,7 +80,7 @@ fi
# history
HISTCONTROL='erasedups'
-HISTFILE="$HOME/.history-zsh"
+#HISTFILE="$HOME/.history-zsh"
HISTSIZE=1500000
SAVEHIST=1500000