1
0
Fork 0
mirror of https://gitlab.com/dwt1/dotfiles.git synced 2023-02-13 20:55:19 -05:00

Minor alterations.

This commit is contained in:
Derek Taylor 2019-04-24 23:47:06 -05:00
parent 55a74259a4
commit 43210314f8
3 changed files with 5 additions and 10 deletions

View file

@ -180,7 +180,7 @@ def init_keys():
),
Key(
[mod], "KP_End", # Keypad 1
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube")
# lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
),
Key(

View file

@ -5,17 +5,12 @@ urxvtd -q -o -f &
dte(){
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
echo -e "📅 $dte"
}
upd(){
upd=`checkupdates | wc -l`
echo -e "⟳ $upd updates"
echo -e "$dte"
}
mem(){
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
echo -e "🖪 $mem"
echo -e "🖪 $mem"
}
cpu(){
@ -25,7 +20,7 @@ cpu(){
read cpu a b c idle rest < /proc/stat
total=$((a+b+c+idle))
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
echo -e "💻 $cpu% cpu"
echo -e "💻 $cpu% cpu"
}
while true; do

View file

@ -116,7 +116,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
/* Apps Launched with <SUPER> + <KEYPAD 1-9> */
{ MODKEY, XK_KP_End, spawn, CMD("st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com") },
{ MODKEY, XK_KP_End, spawn, CMD("st -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube") },
{ MODKEY, XK_KP_Down, spawn, CMD("st -e sh ./scripts/googler-script.sh") },
{ MODKEY, XK_KP_Page_Down, spawn, CMD("st -e newsboat") },
{ MODKEY, XK_KP_Left, spawn, CMD("st -e rtv") },