Merge branch 'master' of gitlab.com:chriscochrun/dotfiles
This commit is contained in:
commit
7a6190e415
10 changed files with 43 additions and 23 deletions
|
@ -4,4 +4,4 @@
|
|||
# echo 100 - $(mpstat | rg all | cut -d \ -f43) | bc
|
||||
cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')"
|
||||
|
||||
echo " $cpu | color=#5af78e"
|
||||
echo " $cpu | color=#5af78e font='VictorMono Nerd Font' size=11"
|
7
scripts/laptopdet
Executable file
7
scripts/laptopdet
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/fish
|
||||
#detect whether running on laptop or not
|
||||
if hostname = "syl"
|
||||
echo true
|
||||
else
|
||||
echo false
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Get the percentage of used memory and print it
|
||||
read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}')
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Get the percentage of used memory and print it
|
||||
read used total <<< $(free -m | awk '/Mem/{printf $2" "$3}')
|
||||
|
||||
|
@ -7,4 +7,4 @@ percent=$(bc -l <<< "100 * $total / $used")
|
|||
mem=$(awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%sMi/%sMi %.1f% ", t, u, p}'| awk '{printf $2}')
|
||||
|
||||
|
||||
echo " $mem | color=#ff9f43"
|
||||
echo " $mem | color=#ff9f43 font='VictorMono Nerd Font' size=11"
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
muunread="$(mu find flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\" AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" | wc -l)"
|
||||
|
||||
echo " $muunread | color=#f3f99d"
|
||||
echo " $muunread | color=#f3f99d font='VictorMono Nerd Font' size=11"
|
||||
|
|
|
@ -13,6 +13,8 @@ list_passwords() {
|
|||
rbw list
|
||||
}
|
||||
|
||||
passwords=$(rbw list)
|
||||
|
||||
prompt='search for passwords...'
|
||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue