diff --git a/.Xdefaults b/.Xdefaults index 14214ee..f082cbc 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,5 +1,8 @@ ! $OpenBSD: dot.Xdefaults,v 1.3 2014/07/10 10:22:59 jasper Exp $ +Xft.hinting: true +Xft.hintstyle: hintfull + XTerm.termName: xterm-256color XTerm*loginShell:true XTerm*font: xft:DejaVu Sans Mono:size=11 diff --git a/.config/lemonbar/main.sh b/.config/lemonbar/main.sh deleted file mode 100755 index b439005..0000000 --- a/.config/lemonbar/main.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# -# dvonik's main.sh for lemonbar -# public domain -# - -mem() { - used="$(vmstat | awk 'END {printf $3}' | tr -d "M")" - all="$(( $(sysctl -n hw.physmem) / 1024 / 1024 ))" - echo "$used/$all" -} - -net() { - ip="216.21.3.77" - ping -s 2 -c 1 "$ip" > "/dev/null" & pid=$! # ip for openbsd - wait "$pid"; status="$?" - - case "$status" in - (0) echo "on"; ;; - (*) echo "off"; ;; - esac -} - -battery() { - case "$(apm -b)" in - (0) stat="+!"; ;; - (1) stat="-!"; ;; - (2) stat="--"; ;; - (3) stat="++"; ;; - esac - - echo "$(apm -l)% $stat" -} - -bg=111314 -fg=b7bbb7 -main() { - echo "%{F#$fg} $(date "+%F %H:%M %Z") %{r}$(uname -r) [$(uname -v)] $(net) [$(battery)] $(mem) " -} - -while true; do main; sleep 5; done diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..b423f09 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,2 @@ +geometry=150x150+1750+905 +audio-pitch-correction=no diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc deleted file mode 100644 index b4a111f..0000000 --- a/.config/zathura/zathurarc +++ /dev/null @@ -1,9 +0,0 @@ -set font "Anonymous Pro 12" -set adjust-open "width" -set pages-per-row 1 -set default-fg "#ebdbb2" -set default-bg "#282828" -set statusbar-fg "#ebdbb2" -set statusbar-bg "#282828" -set inputbar-fg "#ebdbb2" -set inputbar-bg "#282828" diff --git a/.cwmrc b/.cwmrc index 6de5c22..a25b281 100644 --- a/.cwmrc +++ b/.cwmrc @@ -1,4 +1,4 @@ -fontname "Anonymous Pro:size=12" +fontname "DejaVu Sans Mono:size=11" ignore bar autogroup 0 bar @@ -7,26 +7,33 @@ sticky yes borderwidth 2 -color font "#ebdbb2" -color selfont "#282828" -color menufg "#ebdbb2" -color menubg "#282828" -color activeborder "#ebdbb2" -color inactiveborder "#928374" +color font "#CAD3F5" +color selfont "#24273A" +color menufg "#CAD3F5" +color menubg "#24273A" +color activeborder "#CAD3F5" +color inactiveborder "#5B6078" command lock slock command Terminal xterm command Browser firefox -command "School Browser" "firefox -P school" -command "Tor Browser" tor-browser +command "School Browser" "firefox -P school" command Lock slock command Logout "pkill cwm" +unbind-key M-h +unbind-key M-j +unbind-key M-k +unbind-key M-l + +bind-key F4 "actl mute" +bind-key F5 "actl up" +bind-key F6 "actl down" + bind-key 4S-Return terminal bind-key 4S-b firefox -bind-key 4S-t tor-browser -bind-key 4S-s "firefox -P school" # s for school/soy/suck/sad :( +bind-key 4S-s "firefox -P school" bind-key 4S-Tab lock bind-key MS-r restart diff --git a/.exrc b/.exrc index f469c36..ff2741b 100644 --- a/.exrc +++ b/.exrc @@ -1,5 +1,5 @@ -set autoindent -set beautify +set ai +set bf set extended set iclower set report=1 diff --git a/.profile b/.profile index c565be8..cbad78a 100644 --- a/.profile +++ b/.profile @@ -1,35 +1,21 @@ # $OpenBSD: dot.profile,v 1.7 2020/01/24 02:09:51 okan Exp $ # # sh/ksh initialization -# dvonik 20220412 # -case $TERM in -rxvt*|st*|xterm*) LANG="en_US.UTF-8"; ;; -vt*) LANG="C"; ;; -esac - -CVSROOT="$HOME/cvs" +LANG="en_US.UTF-8" +EDITOR="nvi" HISTFILE="$HOME/.history" -HISTSIZE=64 -PATH=":$HOME/bin:$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:" -export PATH HOME LANG EDITOR CVSROOT HISTFILE HISTSIZE +HISTSIZE=2048 -[ -e "Downloads" ] && rm -rf "Downloads" -[ -e "Desktop" ] && rm -rf "Desktop" +# I like /usr/games +PATH=$HOME/bin:$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games +export PATH HOME LANG EDITOR HISTFILE HISTSIZE -alias mkdir="mkdir -p" -alias rm="rm -P" +[ -e "Desktop" ] && rm -r "Desktop" +[ -e "Downloads" ] && rm -r "Downloads" -fenc() { - openssl enc -aes-256-cbc -in $1 -out $2 -} - -denc() { - openssl enc -d -aes-256-cbc -in $1 -out $2 -} - -# done +alias vi="nvi" fortune -biff y +calendar -A0 -B0 diff --git a/.xsession b/.xsession index b9be11d..3a5e528 100644 --- a/.xsession +++ b/.xsession @@ -10,15 +10,15 @@ export DBUS_SESSION_BUS_ADDRESS="no" export MOZ_WEBRENDER=1 export MOZ_ACCELERATION=1 -xwallpaper --zoom "$HOME/share/pic/wall/m904ak26fcy91.jpg" -xidle -program "/usr/sbin/zzz" -timeout 600 & -picom --backend glx --xrender-sync-fence --vsync & +xwallpaper --zoom "$HOME/share/pic/wall/rostyslav-savchyn-sGald6o_yZE-unsplash.jpg" +xidle -program "/usr/sbin/zzz" -timeout 900 & +picom --vsync -fcI0.075 -O0.75& # xcompmgr -cfI 0.2 -O 0.2 & sct 4250 & curl -SsLo $HOME/share/misc/wttr "https://wttr.in/?m&format=%t%20%C" & "$HOME/bin/bar" | lemonbar-xft -g 1920x25 -B "#24273A" -F "#CAD3F5" -f "DejaVu Sans Mono:size=11" & # eyecandy -xeyes -outline "#24273a" -fg "#8aadf4" -bg "#b8c0e0" -geometry 150x100+10+960 & +# xeyes -outline "#24273a" -fg "#8aadf4" -center "#cad3f5" -geometry 150x100+10+960 & exec cwm diff --git a/README b/README index 74ca55e..bab059a 100644 --- a/README +++ b/README @@ -1,15 +1,14 @@ -hello CVS rslp.org - dotfiles -------- * apm * cwm -* picom * init +* ksh * lemonbar +* nvi +* obsdfreqd +* picom * ufetch -* vi * xenodm * xterm * xwallpaper -* zathura diff --git a/.config/lemonbar/main b/bin/bar similarity index 51% rename from .config/lemonbar/main rename to bin/bar index 803b768..e9162d6 100755 --- a/.config/lemonbar/main +++ b/bin/bar @@ -1,11 +1,14 @@ +inet_int=iwm0 + while true; do me=$(echo "$USER@$(hostname)") version=$(uname -rv) date=$(date "+%Y-%m-%d %H:%M") - chkinet=$(ping -c 1 192.168.1.1 >/dev/null && echo "up" || echo "off") + chkinet=$(ifconfig $inet_int | grep status | cut -d " " -f2-) used=$(vmstat | awk 'END {printf $3}' | tr -d "M") batt=$(apm -l) + wttr=$(cat "$HOME/share/misc/wttr") - echo " $date%{r}$me $version $chkinet $used $batt" + echo " $date $wttr%{r}$me $version $chkinet $used $batt% " sleep 1 done