mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 20:10:23 +10:00
Minor alterations.
This commit is contained in:
@@ -180,7 +180,7 @@ def init_keys():
|
|||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod], "KP_End", # Keypad 1
|
[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")
|
# lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
|
|||||||
@@ -5,17 +5,12 @@ urxvtd -q -o -f &
|
|||||||
|
|
||||||
dte(){
|
dte(){
|
||||||
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
|
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
|
||||||
echo -e "📅 $dte"
|
echo -e "$dte"
|
||||||
}
|
|
||||||
|
|
||||||
upd(){
|
|
||||||
upd=`checkupdates | wc -l`
|
|
||||||
echo -e "⟳ $upd updates"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mem(){
|
mem(){
|
||||||
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
|
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
|
||||||
echo -e "🖪 $mem"
|
echo -e "🖪 $mem"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu(){
|
cpu(){
|
||||||
@@ -25,7 +20,7 @@ cpu(){
|
|||||||
read cpu a b c idle rest < /proc/stat
|
read cpu a b c idle rest < /proc/stat
|
||||||
total=$((a+b+c+idle))
|
total=$((a+b+c+idle))
|
||||||
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
||||||
echo -e "💻 $cpu% cpu"
|
echo -e "💻 $cpu% cpu"
|
||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ static Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||||
|
|
||||||
/* Apps Launched with <SUPER> + <KEYPAD 1-9> */
|
/* 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_Down, spawn, CMD("st -e sh ./scripts/googler-script.sh") },
|
||||||
{ MODKEY, XK_KP_Page_Down, spawn, CMD("st -e newsboat") },
|
{ MODKEY, XK_KP_Page_Down, spawn, CMD("st -e newsboat") },
|
||||||
{ MODKEY, XK_KP_Left, spawn, CMD("st -e rtv") },
|
{ MODKEY, XK_KP_Left, spawn, CMD("st -e rtv") },
|
||||||
|
|||||||
Reference in New Issue
Block a user