upd
This commit is contained in:
parent
825eee2c37
commit
7d2a960acc
@ -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
|
||||
|
@ -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
|
2
.config/mpv/mpv.conf
Normal file
2
.config/mpv/mpv.conf
Normal file
@ -0,0 +1,2 @@
|
||||
geometry=150x150+1750+905
|
||||
audio-pitch-correction=no
|
@ -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"
|
27
.cwmrc
27
.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 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
|
||||
|
4
.exrc
4
.exrc
@ -1,5 +1,5 @@
|
||||
set autoindent
|
||||
set beautify
|
||||
set ai
|
||||
set bf
|
||||
set extended
|
||||
set iclower
|
||||
set report=1
|
||||
|
34
.profile
34
.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
|
||||
|
@ -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
|
||||
|
9
README
9
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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user