mb-obthemes update
parent
6ec137c037
commit
b85fa4148d
|
@ -238,7 +238,7 @@ OK="--button=OK:0"
|
||||||
IMGCMD="viewnior" # application command to view screenshot
|
IMGCMD="viewnior" # application command to view screenshot
|
||||||
MENUMODIFIER="super+space" # keybind for show root-menu
|
MENUMODIFIER="super+space" # keybind for show root-menu
|
||||||
MOUSECMD="click 3" # mouse r-click
|
MOUSECMD="click 3" # mouse r-click
|
||||||
KEYDOWN=9 # adjust this for where "Preferences" is in the menu
|
KEYDOWN=4 # adjust this for where "Preferences" is in the menu
|
||||||
#### END VARIABLES #####################################################
|
#### END VARIABLES #####################################################
|
||||||
|
|
||||||
### FUNCTIONS ##########################################################
|
### FUNCTIONS ##########################################################
|
||||||
|
@ -477,6 +477,17 @@ function getNitrogen(){ # get Nitrogen saved backgrounds
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyConky(){
|
||||||
|
if [[ $(pidof conky) ]];then
|
||||||
|
mkdir -p "$CONFIGDIR/conky"
|
||||||
|
rm "$CONFIGDIR/conky/*conkyrc"
|
||||||
|
pgrep -a conky | while read a b c conkyfile;do
|
||||||
|
cp $conkyfile "$CONFIGDIR/conky/"
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function getConky(){
|
function getConky(){
|
||||||
CONKYCMD=""
|
CONKYCMD=""
|
||||||
LISTMSGTXT=""
|
LISTMSGTXT=""
|
||||||
|
@ -484,6 +495,7 @@ function getConky(){
|
||||||
CONKYTEMP=$(mktemp --tmpdir blob.XXXX)
|
CONKYTEMP=$(mktemp --tmpdir blob.XXXX)
|
||||||
if [[ $(pidof conky) ]];then # get full command of running conkys
|
if [[ $(pidof conky) ]];then # get full command of running conkys
|
||||||
> "$CONKYTEMP"
|
> "$CONKYTEMP"
|
||||||
|
copyConky
|
||||||
pgrep -a conky | while read pid CMD;do
|
pgrep -a conky | while read pid CMD;do
|
||||||
echo "$CMD;" >> "$CONKYTEMP"
|
echo "$CMD;" >> "$CONKYTEMP"
|
||||||
done
|
done
|
||||||
|
@ -1122,6 +1134,9 @@ function restoreSettings(){
|
||||||
CONKYCMD=$(echo $line | cut -d ' ' -f2-)
|
CONKYCMD=$(echo $line | cut -d ' ' -f2-)
|
||||||
# write to conky session file...
|
# write to conky session file...
|
||||||
echo $CONKYCMD | awk -F';' '{for(i=1; i<=NF; i++) print $i}' >> "$CONKYSESSION"
|
echo $CONKYCMD | awk -F';' '{for(i=1; i<=NF; i++) print $i}' >> "$CONKYSESSION"
|
||||||
|
if [ -d "$FPATH/conky" ];then
|
||||||
|
rsync -a $FPATH/conky/* ~/.config/conky/
|
||||||
|
fi
|
||||||
killall conky
|
killall conky
|
||||||
source "$CONKYSESSION"
|
source "$CONKYSESSION"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue